Skip to content

Commit

Permalink
#145 - Fix displaying of ignore reasons for test methods in allure re…
Browse files Browse the repository at this point in the history
…port

removed sysout and added JavaDoc
  • Loading branch information
Marcel Pfotenhauer committed Oct 14, 2020
1 parent ead473f commit a3616a0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/test/java/com/xceptance/neodymium/tests/NeodymiumTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,15 @@ public void checkDescription(final Class<?> clazz, final String[] expectedTestDe
checkDescription(new NeodymiumRunner(clazz).getDescription(), expectedTestDescription);
}

/**
* Assert that the test method annotations are valid.
*
* @param clazz
* the class whose methods annotations should be tested
* @param expectedAnnotations
* expected test methods annotations as Map of method names as key and List of String containing the
* toString output of the annotations
*/
public void checkAnnotations(final Class<?> clazz, final Map<String, List<String>> expectedAnnotations) throws Throwable
{
final Map<FrameworkMethod, Description> compDescriptions = new NeodymiumRunner(clazz).getChildDescriptions();
Expand All @@ -230,10 +239,6 @@ public void checkAnnotations(final Class<?> clazz, final Map<String, List<String
List<String> expAnnotations = entry.getValue();

final List<String> compAnnotations = getAnnotationsForMethod(compDescriptions, methodName);
// TODO delete me
System.out.println("E: " + expAnnotations.toString());
System.out.println("C: " + compAnnotations.toString());

for (String expAnnotation : expAnnotations)
{
boolean expAnnotationFound = false;
Expand Down

0 comments on commit a3616a0

Please sign in to comment.