use of com.mvp4g.rebind.config.element.ServiceElement in project mvp4g by mvp4g.
the class ServicesAnnotationsLoaderTest method testPath.
@Test
public void testPath() throws Mvp4gAnnotationException {
List<JClassType> annotedClasses = new ArrayList<JClassType>();
annotedClasses.add(oracle.addClass(getSimpleClass()));
annotedClasses.add(oracle.addClass(getWithNameClass()));
Set<ServiceElement> services = getSet();
assertEquals(services.size(), 0);
loader.load(annotedClasses, configuration);
assertEquals(services.size(), 2);
for (ServiceElement service : services) {
assertEquals(service.getPath(), "path");
}
}
Aggregations