Search in sources :

Example 1 with DubboService

use of org.apache.dubbo.config.annotation.DubboService in project dubbo by alibaba.

the class AnnotationUtilsTest method testFindMetaAnnotations.

@Test
public void testFindMetaAnnotations() {
    List<DubboService> services = findMetaAnnotations(B.class, DubboService.class);
    assertEquals(1, services.size());
    DubboService service = services.get(0);
    assertEquals("", service.interfaceName());
    assertEquals(Cloneable.class, service.interfaceClass());
    services = findMetaAnnotations(Service5.class, DubboService.class);
    assertEquals(1, services.size());
    service = services.get(0);
    assertEquals("", service.interfaceName());
    assertEquals(Cloneable.class, service.interfaceClass());
}
Also used : DubboService(org.apache.dubbo.config.annotation.DubboService) Test(org.junit.jupiter.api.Test)

Example 2 with DubboService

use of org.apache.dubbo.config.annotation.DubboService in project dubbo by alibaba.

the class AnnotationUtilsTest method testFindMetaAnnotation.

@Test
public void testFindMetaAnnotation() {
    DubboService service = findMetaAnnotation(B.class, DubboService.class);
    assertEquals(Cloneable.class, service.interfaceClass());
    service = findMetaAnnotation(B.class, "org.apache.dubbo.config.annotation.DubboService");
    assertEquals(Cloneable.class, service.interfaceClass());
    service = findMetaAnnotation(Service5.class, DubboService.class);
    assertEquals(Cloneable.class, service.interfaceClass());
}
Also used : DubboService(org.apache.dubbo.config.annotation.DubboService) Test(org.junit.jupiter.api.Test)

Aggregations

DubboService (org.apache.dubbo.config.annotation.DubboService)2 Test (org.junit.jupiter.api.Test)2