src/test/java/com/xceptance/neodymium/tests/NeodymiumTest.java
/**
     * Assert that at least one test has failed.
     * 
     * @param result
     *            test result to validate
     * @param expectedRunCount
     *            expected number of run tests (including ignored)
     * @param expectedIgnoreCount
     *            expected number of ignored tests
     * @param expectedFailCount
     *            expected number of failed tests
     * @param expectedFailureMessage
     *            expected message of all failures (same message for each failure)
     */
Assert that at least one test has failed.


Assert that at least one test has failed .
public void checkFail(final Result result, final int expectedRunCount, final int expectedIgnoreCount, final int expectedFailCount,
                          final String expectedFailureMessage)
    {
        final HashMap<String, String> expectedFailureMessages = new HashMap<String, String>();
        for (Failure failure : result.getFailures())
        {
            expectedFailureMessages.put(failure.getDescription().getMethodName(), expectedFailureMessage);
        }
        check(result, false, expectedRunCount, expectedIgnoreCount, expectedFailCount, expectedFailureMessages);
    }
public void checkFail ( final Result result , final int expectedRunCount , final int expectedIgnoreCount , final int expectedFailCount , final String expectedFailureMessage ) { final HashMap < String , String > expectedFailureMessages = new HashMap < String , String > ( ) ; for ( Failure failure : result . getFailures ( ) ) { expectedFailureMessages . put ( failure . getDescription ( ) . getMethodName ( ) , expectedFailureMessage ) ; } check ( result , false , expectedRunCount , expectedIgnoreCount , expectedFailCount , expectedFailureMessages ) ; }
Assert that at least one test has failed.
Assert that at least one test has failed .