You need to sign in to do that
Don't have an account?
Ty Whitfield
Apex Text: Working with Global Variables
In my class I have 3 global variables that I set on page load. Then when a user clicks a button, those variables are used in a method that is invoked on click. This works fine. However, when writing my test class, I keep receiving attempt to dereference a null object and it is pointing to those three variables.
How do you set those variables within a test class?
Complete code
All Answers
ClassBame.val ='val';
giveme complete code
The public PageReference addEval() is what is showing the null values
My VFP
My Test Class
It comes back with null variables when I try to call the testAccPlan.addEval()
Complete code