Search in sources :

Example 1 with AnnotationProcessorsProvider

use of com.netflix.ribbon.proxy.processor.AnnotationProcessorsProvider in project ribbon by Netflix.

the class ServiceLoaderTest method testServiceLoader.

@Test
public void testServiceLoader() {
    AnnotationProcessorsProvider annotations = AnnotationProcessorsProvider.DEFAULT;
    List<AnnotationProcessor> processors = annotations.getProcessors();
    boolean hasEVCacheProcessor = false;
    for (AnnotationProcessor processor : processors) {
        Class<?> clazz = processor.getClass();
        if (clazz.equals(EVCacheAnnotationProcessor.class)) {
            hasEVCacheProcessor = true;
            break;
        }
    }
    assertTrue(hasEVCacheProcessor);
}
Also used : AnnotationProcessor(com.netflix.ribbon.proxy.processor.AnnotationProcessor) EVCacheAnnotationProcessor(com.netflix.ribbon.proxy.processor.EVCacheAnnotationProcessor) AnnotationProcessorsProvider(com.netflix.ribbon.proxy.processor.AnnotationProcessorsProvider) Test(org.junit.Test)

Aggregations

AnnotationProcessor (com.netflix.ribbon.proxy.processor.AnnotationProcessor)1 AnnotationProcessorsProvider (com.netflix.ribbon.proxy.processor.AnnotationProcessorsProvider)1 EVCacheAnnotationProcessor (com.netflix.ribbon.proxy.processor.EVCacheAnnotationProcessor)1 Test (org.junit.Test)1