Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
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
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