assertFalse( ReflectionHelper.isSearchAnnotation( annotation ) );
}
@Test
public void testIsSearchEnabled() throws Exception {
ReflectionManager reflectionManager = new JavaReflectionManager();
assertTrue(
"Should be a search enabled class",
ReflectionHelper.containsSearchAnnotations( reflectionManager.toXClass( A.class ) )
);
assertTrue(
"Should be a search enabled class",
ReflectionHelper.containsSearchAnnotations( reflectionManager.toXClass( B.class ) )
);
assertTrue(
"Should be a search enabled class",
ReflectionHelper.containsSearchAnnotations( reflectionManager.toXClass( C.class ) )
);
assertTrue(
"Should be a search enabled class",
ReflectionHelper.containsSearchAnnotations( reflectionManager.toXClass( D.class ) )
);
assertFalse(
"Should not be a search enabled class",
ReflectionHelper.containsSearchAnnotations( reflectionManager.toXClass( E.class ) )
);
}