You need to sign in to do that
Don't have an account?
Problem with trigger's test class..
Hey all, I have a trigger that is looping through all opportunities that have been updated and syncing the information to any contracts that are existing. I have a for loop going through each opportunity effected and then my test class is getting caught up on
newmonthcontracts = OppIDs[0].Term_Yrs__c.intValue() * 12;
I have the similar code in the test class that does this feature and have a systemassertequals to check it, but its still not covering the code.
Do I need to do something in perticular for the loop so that it validates? It seems to only be the code in the loop.
Hi,
It will be helpful if you could attach your completed script.
Cheers
hey sorry for the delay, this is the code and still having troubles with this loop!