Search in sources :

Example 6 with ServiceElement

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");
    }
}
Also used : JClassType(com.google.gwt.core.ext.typeinfo.JClassType) ArrayList(java.util.ArrayList) ServiceElement(com.mvp4g.rebind.config.element.ServiceElement) Test(org.junit.Test)

Aggregations

ServiceElement (com.mvp4g.rebind.config.element.ServiceElement)6 Test (org.junit.Test)3 JClassType (com.google.gwt.core.ext.typeinfo.JClassType)2 InjectedElement (com.mvp4g.rebind.config.element.InjectedElement)2 ArrayList (java.util.ArrayList)2 EventHandlerElement (com.mvp4g.rebind.config.element.EventHandlerElement)1 HistoryConverterElement (com.mvp4g.rebind.config.element.HistoryConverterElement)1 Mvp4gWithServicesElement (com.mvp4g.rebind.config.element.Mvp4gWithServicesElement)1 PresenterElement (com.mvp4g.rebind.config.element.PresenterElement)1