src/test/java/com/xceptance/neodymium/tests/NeodymiumTest.java
/**
     * 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
     */
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
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();
        boolean matching = true;
        for (Entry<String, List<String>> entry : expectedAnnotations.entrySet())
        {
            String methodName = entry.getKey();
            List<String> expAnnotations = entry.getValue();
            final List<String> compAnnotations = getAnnotationsForMethod(compDescriptions, methodName);
            for (String expAnnotation : expAnnotations)
            {
                boolean expAnnotationFound = false;
                for (String compAnnotation : compAnnotations)
                {
                    if (compAnnotation.equals(expAnnotation))
                    {
                        expAnnotationFound = true;
                        break;
                    }
                }
                matching &= expAnnotationFound;
            }
        }
        Assert.assertTrue(matching);
    }
public void checkAnnotations ( final Class < ? > clazz , final Map < String , List < String > > expectedAnnotations ) throws Throwable { final Map < FrameworkMethod , Description > compDescriptions = new NeodymiumRunner ( clazz ) . getChildDescriptions ( ) ; boolean matching = true ; for ( Entry < String , List < String > > entry : expectedAnnotations . entrySet ( ) ) { String methodName = entry . getKey ( ) ; List < String > expAnnotations = entry . getValue ( ) ; final List < String > compAnnotations = getAnnotationsForMethod ( compDescriptions , methodName ) ; for ( String expAnnotation : expAnnotations ) { boolean expAnnotationFound = false ; for ( String compAnnotation : compAnnotations ) { if ( compAnnotation . equals ( expAnnotation ) ) { expAnnotationFound = true ; break ; } } matching &= expAnnotationFound ; } } Assert . assertTrue ( matching ) ; }
Assert that the test method annotations are valid.
Assert that the test method annotations are valid .