function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
nmnbawanmnbawa 

Help promoting apex class

Mohith Kumar ShrivastavaMohith Kumar Shrivastava

I am sorry to say that you are writing test class as if your class is used in trigger.Looks like class is used as a visualforce controller class.Visualforce controllers are tested in different manner.

 

http://wiki.developerforce.com/page/How_to_Write_Good_Unit_Tests