Code example for TestMethod

0
     
    public void testMethodHasAnnotation() { 
        HasClassAnnotation predicate = new HasClassAnnotation(SimpleAnnotation.class);
         
        TestMethod withAnnotation = new TestMethod("testMethod", TestClassWithAnnotation.class);
        TestMethod noAnnotation = new TestMethod("testMethod", TestClassNoAnnotation.class);
        assertTrue(predicate.apply(withAnnotation));
        assertFalse(predicate.apply(noAnnotation));
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java