@Test public void shouldReturnCorrectElementList() throws Exception { File file = computeTestDataRoot(getClass()); String location = file.toURI().toURL().toString(); doReturn(location).when(bundle).getLocation(); doReturn(Sample.class).when(bundle).loadClass(Sample.class.getName()); doReturn(bundleWiring).when(bundle).adapt(BundleWiring.class); Set<? extends AnnotatedElement> actual = processor.getElementsToProcess(); assertEquals(6, actual.size()); assertContainsClass(actual, Sample.class.getName()); assertContainsClass(actual, RelatedSample.class.getName()); assertContainsClass(actual, AnotherSample.class.getName()); }
@Override protected Set<? extends AnnotatedElement> getElementsToProcess() { return ReflectionsUtil.getClasses(getAnnotationType(), getBundle()); }
EntityProcessor extends AbstractListProcessor<Entity, EntityDto> { @Override protected Set<? extends AnnotatedElement> getElementsToProcess() { return ReflectionsUtil.getClasses(getAnnotationType(), getBundle()); } }
EntityProcessor extends AbstractListProcessor<Entity, EntityDto> { @Override protected Set<? extends AnnotatedElement> getElementsToProcess() { return ReflectionsUtil.getClasses(getAnnotationType(), getBundle()); }  }
EntityProcessor extends AbstractListProcessor<Entity, EntityDto> { @Override protected Set<? extends AnnotatedElement> getElementsToProcess() { return ReflectionsUtil.getClasses(getAnnotationType(), getBundle()); }  @Override Class<Entity> getAnnotationType(); @Override List<EntityProcessorOutput> getProcessingResult(); @Autowired void setFieldProcessor(FieldProcessor fieldProcessor); @Autowired void setUIFilterableProcessor(UIFilterableProcessor uiFilterableProcessor); @Autowired void setUIDisplayableProcessor(UIDisplayableProcessor uiDisplayableProcessor); @Autowired void setRestIgnoreProcessor(RestIgnoreProcessor restIgnoreProcessor); @Autowired void setRestOperationsProcessor(RestOperationsProcessor restOperationsProcessor); @Autowired void setCrudEventsProcessor(CrudEventsProcessor crudEventsProcessor); @Autowired void setNonEditableProcessor(NonEditableProcessor nonEditableProcessor); }
EntityProcessor extends AbstractListProcessor<Entity, EntityDto> { @Override protected Set<? extends AnnotatedElement> getElementsToProcess() { return ReflectionsUtil.getClasses(getAnnotationType(), getBundle()); }  @Override Class<Entity> getAnnotationType(); @Override List<EntityProcessorOutput> getProcessingResult(); @Autowired void setFieldProcessor(FieldProcessor fieldProcessor); @Autowired void setUIFilterableProcessor(UIFilterableProcessor uiFilterableProcessor); @Autowired void setUIDisplayableProcessor(UIDisplayableProcessor uiDisplayableProcessor); @Autowired void setRestIgnoreProcessor(RestIgnoreProcessor restIgnoreProcessor); @Autowired void setRestOperationsProcessor(RestOperationsProcessor restOperationsProcessor); @Autowired void setCrudEventsProcessor(CrudEventsProcessor crudEventsProcessor); @Autowired void setNonEditableProcessor(NonEditableProcessor nonEditableProcessor);  }