1import org.junit.runner.JUnitCore;2import org.junit.runner.Result;3import org.junit.runner.notification.Failure;4public class TestRunner {5 public static void main(String[] args) {6 Result result = JUnitCore.runClasses(TestJunit.class);7 for (Failure failure : result.getFailures()) {8 System.out.println(failure.toString());9 }10 System.out.println(result.wasSuccessful());11 }12}13import org.junit.Test;14import static org.junit.Assert.assertEquals;15public class TestJunit {16 String message = "Robert"; 17 MessageUtil messageUtil = new MessageUtil(message);18 public void testPrintMessage() { 19 System.out.println("Inside testPrintMessage()"); 20 assertEquals(message,messageUtil.printMessage());21 }22}23public class MessageUtil {24 private String message;25 public MessageUtil(String message){26 this.message = message; 27 }28 public String printMessage(){29 System.out.println(message);30 return message;31 } 32}33public TestSuite()34public TestSuite(Class<?> theClass)35public TestSuite(String name)36public TestSuite(Class<?>... classes)37public TestSuite(Class<? extends TestCase> theClass, String name)38public TestSuite(Class<? extends TestCase> theClass, Class<? extends TestCase>... classes)39public TestSuite(Class<? extends TestCase> theClass, Class<? extends TestCase>... classes)40public TestSuite(Class<? extends TestCase> theClass, String name)41public TestSuite(Class<? extends TestCase> theClass, Class<? extends TestCase>... classes)42public TestSuite(Class<? extends TestCase> theClass, String name)43public TestSuite(Class<? extends TestCase> theClass, Class<? extends TestCase>... classes)44public TestSuite(Class<? extends TestCase> theClass, String name)45public TestSuite(Class<? extends TestCase> theClass, Class<? extends TestCase>... classes)46public TestSuite(Class<? extends TestCase> theClass, String name)47public TestSuite(Class<? extends TestCase> the