How To Wirte A Simple JUnit Test Class

  • 20 Jan, 2012

    This is a common test in a job interview. You should be able to write this simple test class with one test method:import org.junit.*; public class HelloTest { @Test public void testHello() { String message = "Hello World!"; Assert.assertEquals(12, message.length()); }}

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 All rights reserved.