Hello Folks, Hello Folks,
I think all of my questions cover the approach more than the technical detail or aspect. Here is another one, this one relates to force.com unit tests! I think all of my questions cover the approach more than the technical detail or aspect. Here is another one, this one relates to force.com unit tests!**
I know there have been significant improvements in the API v24.0 and greater regarding the unit tests but this might be a really simple use case which might help a lot of other people!** I know there have been significant improvements in the API v24.0 and greater regarding the unit tests but this might be a really simple use case which might help a lot of other people!
Please find the approach 1 and approach 2 both in the test class. The question is below: At times, approach would not give me code coverage, I do not know why?! Yes, the records are present in my org. But approach 2 gives me 100% code coverage. Does it really mean my code is covered?! Please find the approach 1 and approach 2 both in the test class. The question is below: At times, approach would not give me code coverage, I do not know why?! Yes, the records are present in my org. But approach 2 gives me 100% code coverage. Does it really mean my code is covered?!
I also want to know if its performing the delete test, how can I know if the test records are getting deleted? I also want to know if its performing the delete test, how can I know if the test records are getting deleted?
Thank you! Thank you!