Search in sources :

Example 1 with TraceMetadataProvider

use of com.navercorp.pinpoint.common.trace.TraceMetadataProvider in project pinpoint by naver.

the class ServiceTypeInitializerTest method testDuplicated3.

@Test(expected = RuntimeException.class)
public void testDuplicated3() {
    List<TraceMetadataProvider> providers = Arrays.<TraceMetadataProvider>asList(new TestProvider(TEST_TYPES, TEST_KEYS), new TestProvider(TEST_TYPES, new AnnotationKey[0]));
    TraceMetadataLoader loader = new TraceMetadataLoader();
    loader.load(providers);
}
Also used : TraceMetadataProvider(com.navercorp.pinpoint.common.trace.TraceMetadataProvider) TraceMetadataLoader(com.navercorp.pinpoint.common.trace.TraceMetadataLoader) AnnotationKey(com.navercorp.pinpoint.common.trace.AnnotationKey) Test(org.junit.Test)

Example 2 with TraceMetadataProvider

use of com.navercorp.pinpoint.common.trace.TraceMetadataProvider in project pinpoint by naver.

the class ServiceTypeInitializerTest method testDuplicated.

@Test(expected = RuntimeException.class)
public void testDuplicated() {
    List<TraceMetadataProvider> providers = Arrays.<TraceMetadataProvider>asList(new TestProvider(TEST_TYPES, TEST_KEYS), new TestProvider(new ServiceType[0], TEST_KEYS));
    TraceMetadataLoader loader = new TraceMetadataLoader();
    loader.load(providers);
}
Also used : TraceMetadataProvider(com.navercorp.pinpoint.common.trace.TraceMetadataProvider) ServiceType(com.navercorp.pinpoint.common.trace.ServiceType) TraceMetadataLoader(com.navercorp.pinpoint.common.trace.TraceMetadataLoader) Test(org.junit.Test)

Example 3 with TraceMetadataProvider

use of com.navercorp.pinpoint.common.trace.TraceMetadataProvider in project pinpoint by naver.

the class ServiceTypeInitializerTest method testDuplicated2.

@Test(expected = RuntimeException.class)
public void testDuplicated2() {
    List<TraceMetadataProvider> providers = Arrays.<TraceMetadataProvider>asList(new TestProvider(TEST_TYPES, TEST_KEYS), new TestProvider(TEST_TYPES, new AnnotationKey[0]));
    TraceMetadataLoader loader = new TraceMetadataLoader();
    loader.load(providers);
}
Also used : TraceMetadataProvider(com.navercorp.pinpoint.common.trace.TraceMetadataProvider) TraceMetadataLoader(com.navercorp.pinpoint.common.trace.TraceMetadataLoader) AnnotationKey(com.navercorp.pinpoint.common.trace.AnnotationKey) Test(org.junit.Test)

Aggregations

TraceMetadataLoader (com.navercorp.pinpoint.common.trace.TraceMetadataLoader)3 TraceMetadataProvider (com.navercorp.pinpoint.common.trace.TraceMetadataProvider)3 Test (org.junit.Test)3 AnnotationKey (com.navercorp.pinpoint.common.trace.AnnotationKey)2 ServiceType (com.navercorp.pinpoint.common.trace.ServiceType)1