Search Results

Search found 5 results on 1 pages for 'thomman'.

Page 1/1 | 1 

  • Cactus versus mock objects (jMock, Easy mock)

    - by Thomman
    I'm little confused with Cactus and mock objects (jMock, Easy mock). Could anyone please answer the following questions? When to use Cactus for testing? When not to use Cactus for testing? When to use mock objects for testing? When not to use mock objects for testing?

    Read the article

  • Servlet unit test

    - by Thomman
    Currently I'm using TestNG framework for testing application business logic, i added some Servlet classes recently. How do I unit test these Servlet classes in TestNg framework?

    Read the article

  • How do I test expectedExceptionsMessageRegExp (exception message) using TestNG?

    - by Thomman
    I'm using expectedExceptionsMessageRegExp annotation to test exception message, but the this is not executing correctly.please see the below code. Unit Test code: @Test (dependsOnMethods = "test1", expectedExceptions = IllegalArgumentException.class , expectedExceptionsMessageRegExp = "incorrect argument") public void testConverter() { try { currencyConverter = Converter.convert(val1,val2) } catch (MYException e) { e.printStackTrace(); } } Application code: if (val1 == null || val1.length() == 0) { throw new IllegalArgumentException("Val1 is incorrect"); } The unit test code should check the exception message , if both message are not matching , it should throw fail (unit test failed) . At present this is not happening , Am i doing something wrong?

    Read the article

1