+ 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