diff --git a/src/test/java/com/xceptance/neodymium/tests/NeodymiumTest.java b/src/test/java/com/xceptance/neodymium/tests/NeodymiumTest.java index 003f5697b..7335368be 100644 --- a/src/test/java/com/xceptance/neodymium/tests/NeodymiumTest.java +++ b/src/test/java/com/xceptance/neodymium/tests/NeodymiumTest.java @@ -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 testChildren = testDescription.getChildren(); @@ -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);