use of com.yahoo.elide.annotation.Exclude in project elide by yahoo.
the class EntityDictionaryTest method testGetFirstAnnotationConflict.
@Test
public void testGetFirstAnnotationConflict() {
@Exclude
@Include(rootLevel = false)
class Foo {
}
Annotation first = getFirstAnnotation(ClassType.of(Foo.class), Arrays.asList(Exclude.class, Include.class));
assertTrue(first instanceof Exclude);
}
use of com.yahoo.elide.annotation.Exclude in project elide by yahoo.
the class EntityDictionaryTest method testGetFirstAnnotation.
@Test
public void testGetFirstAnnotation() {
@Exclude
class Foo {
}
@Include(rootLevel = false)
class Bar extends Foo {
}
class Baz extends Bar {
}
Annotation first = getFirstAnnotation(ClassType.of(Baz.class), Arrays.asList(Exclude.class, Include.class));
assertTrue(first instanceof Include);
}
Aggregations