@Test public void valid_resource_specification() { Assertions.assertThat(underTest.test(AbstractResource.class)).isFalse(); Assertions.assertThat(underTest.test(ValidResource1.class)).isTrue(); Assertions.assertThat(underTest.test(ValidResource2.class)).isTrue(); Assertions.assertThat(underTest.test(ValidResource3.class)).isTrue(); Assertions.assertThat(underTest.test(InvalidResource1.class)).isFalse(); Assertions.assertThat(underTest.test(InvalidResource2.class)).isFalse(); Assertions.assertThat(underTest.test(InvalidResource3.class)).isFalse(); Assertions.assertThat(underTest.test(InvalidResource4.class)).isFalse(); }
@Override public boolean test(Class<?> candidate) { return ClassPredicates .classModifierIs(Modifier.ABSTRACT).negate() .and(AnnotationPredicates.elementAnnotatedWith(Path.class, false)) .test(candidate); }
JaxRsResourcePredicate implements Predicate<Class<?>> { @Override public boolean test(Class<?> candidate) { return ClassPredicates .classModifierIs(Modifier.ABSTRACT).negate() .and(AnnotationPredicates.elementAnnotatedWith(Path.class, false)) .test(candidate); } }
JaxRsResourcePredicate implements Predicate<Class<?>> { @Override public boolean test(Class<?> candidate) { return ClassPredicates .classModifierIs(Modifier.ABSTRACT).negate() .and(AnnotationPredicates.elementAnnotatedWith(Path.class, false)) .test(candidate); } private  JaxRsResourcePredicate(); }
JaxRsResourcePredicate implements Predicate<Class<?>> { @Override public boolean test(Class<?> candidate) { return ClassPredicates .classModifierIs(Modifier.ABSTRACT).negate() .and(AnnotationPredicates.elementAnnotatedWith(Path.class, false)) .test(candidate); } private  JaxRsResourcePredicate(); @Override boolean test(Class<?> candidate); }
JaxRsResourcePredicate implements Predicate<Class<?>> { @Override public boolean test(Class<?> candidate) { return ClassPredicates .classModifierIs(Modifier.ABSTRACT).negate() .and(AnnotationPredicates.elementAnnotatedWith(Path.class, false)) .test(candidate); } private  JaxRsResourcePredicate(); @Override boolean test(Class<?> candidate);  }