use of com.navercorp.pinpoint.common.service.AnnotationKeyRegistryService in project pinpoint by naver.
the class AnnotationKeyTest method testValueOf.
@Test
public void testValueOf() {
AnnotationKeyRegistryService annotationKeyRegistryService = new DefaultAnnotationKeyRegistryService();
annotationKeyRegistryService.findAnnotationKeyByName(AnnotationKey.ARGS0.getName());
AnnotationKey valueof = annotationKeyRegistryService.findAnnotationKeyByName(AnnotationKey.ARGS0.getName());
Assert.assertSame(AnnotationKey.ARGS0, valueof);
}
use of com.navercorp.pinpoint.common.service.AnnotationKeyRegistryService in project pinpoint by naver.
the class AnnotationKeyTest method getCode.
@Test
public void getCode() {
TraceMetadataLoaderService typeLoaderService = new DefaultTraceMetadataLoaderService();
AnnotationKeyRegistryService annotationKeyRegistryService = new DefaultAnnotationKeyRegistryService(typeLoaderService, StdoutCommonLoggerFactory.INSTANCE);
AnnotationKey annotationKey = annotationKeyRegistryService.findAnnotationKey(AnnotationKey.API.getCode());
Assert.assertEquals(annotationKey, AnnotationKey.API);
}
Aggregations