Skip to content

Commit

Permalink
#121: added java doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Pfotenhauer committed Sep 1, 2020
1 parent a4e192d commit 98dcbf8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/test/java/com/xceptance/neodymium/tests/NeodymiumTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,14 @@ public void checkFail(final Result result, final int expectedRunCount, final int
check(result, false, expectedRunCount, expectedIgnoreCount, expectedFailCount, expectedFailureMessages);
}

/**
* Assert that the test description is valid.
*
* @param testDescription
* the test description that should be tested
* @param expectedTestDescription
* expected test description as String array
*/
public void checkDescription(final Description testDescription, final String[] expectedTestDescription)
{
final ArrayList<Description> testChildren = testDescription.getChildren();
Expand All @@ -195,6 +203,14 @@ public void checkDescription(final Description testDescription, final String[] e
Assert.assertArrayEquals(expectedTestDescription, actualDescription);
}

/**
* Assert that the test description is valid.
*
* @param clazz
* the class whose description should be tested
* @param expectedTestDescription
* expected test description as String array
*/
public void checkDescription(final Class<?> clazz, final String[] expectedTestDescription) throws Throwable
{
checkDescription(new NeodymiumRunner(clazz).getDescription(), expectedTestDescription);
Expand Down

0 comments on commit 98dcbf8

Please sign in to comment.