I have two separate Junit test cases. I have designed one JSP page to get 6 values at a time from users.In servlet doPOST method, I'm designed to get these 6 values. After that I have written below code in servlet to execute Junit test cases,
Junit test cass -1 and 2:
Result result = JUnitCore.runClasses(Junit1.class);
for (Failure failure : result.getFailures())
{
System.out.println(failure.toString());
}
Result result = JUnitCore.runClasses(Junit2.class);
for (Failure failure : result.getFailures())
{
System.out.println(failure.toString());
}
With the above method, It's running one by one, not concurrently. Could anyone help me to execute both Junit test cases running at same time.