How to stop a test (while or if) the method and start again.
In short, how to stop the test method and start again.
I tried to call the method Testex (); more like it not for the rest of the method.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m going to take a wild guess and say that this is what you want:
http://www.junit.org/apidocs/org/junit/Assert.html
Assert will terminate the test and cause it to fail if the condition is not true.