You need to sign in to do that
Don't have an account?
Shubhangi Jadhav
Can anyone tell me how to cover these two lines in test class:
Can anyone tell me how to cover these two lines in test class:
for(id conId:mapContactPrimary.keyset()) { mapContactPrimary.get(conid).addError(System.Label.Tet_UniquePID); }
for(id conId:mapContactPrimary.keyset()) { mapContactPrimary.get(conid).addError(System.Label.Tet_UniquePID); }
Depends on the definition of your map. The code snippet is just based on the assumption
I suggest looking at this example
If you find this information helpful, please mark this answer as Best. It may help others in the community. Thank You!
Anudeep