Search in sources :

Example 1 with BookStore

use of org.apache.cxf.systest.jaxrs.tracing.BookStore in project cxf by apache.

the class HTraceTracingTest method testThatNewSpansAreCreatedWhenNotProvidedUsingMultipleAsyncClients.

@Test
public void testThatNewSpansAreCreatedWhenNotProvidedUsingMultipleAsyncClients() throws Exception {
    final WebClient client = createWebClient("/bookstore/books", htraceClientProvider);
    // The intention is to make a calls one after another, not in parallel, to ensure the
    // thread have trace contexts cleared out.
    final Collection<Response> responses = IntStream.range(0, 4).mapToObj(index -> client.async().get()).map(this::get).collect(Collectors.toList());
    for (final Response r : responses) {
        assertEquals(Status.OK.getStatusCode(), r.getStatus());
        assertTrue(r.getHeaders().containsKey(TracerHeaders.DEFAULT_HEADER_SPAN_ID));
    }
    assertThat(TestSpanReceiver.getAllSpans().size(), equalTo(12));
    IntStream.range(0, 4).map(index -> index * 3).forEach(index -> {
        assertThat(TestSpanReceiver.getAllSpans().get(index).getDescription(), equalTo("Get Books"));
        assertThat(TestSpanReceiver.getAllSpans().get(index + 1).getDescription(), equalTo("GET bookstore/books"));
        assertThat(TestSpanReceiver.getAllSpans().get(index + 2).getDescription(), equalTo("GET " + client.getCurrentURI()));
    });
}
Also used : Response(javax.ws.rs.core.Response) IntStream(java.util.stream.IntStream) SingletonResourceProvider(org.apache.cxf.jaxrs.lifecycle.SingletonResourceProvider) IsTimelineContaining.hasItem(org.apache.cxf.systest.jaxrs.tracing.htrace.IsTimelineContaining.hasItem) Arrays(java.util.Arrays) BeforeClass(org.junit.BeforeClass) CoreMatchers.equalTo(org.hamcrest.CoreMatchers.equalTo) TimeoutException(java.util.concurrent.TimeoutException) IsTimelineEmpty.empty(org.apache.cxf.systest.jaxrs.tracing.htrace.IsTimelineEmpty.empty) HashMap(java.util.HashMap) JacksonJsonProvider(com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider) TestSpanReceiver(org.apache.cxf.systest.htrace.TestSpanReceiver) TracerHeaders(org.apache.cxf.tracing.TracerHeaders) Future(java.util.concurrent.Future) MediaType(javax.ws.rs.core.MediaType) BookStore(org.apache.cxf.systest.jaxrs.tracing.BookStore) HTraceConfiguration(org.apache.htrace.core.HTraceConfiguration) Map(java.util.Map) Tracer(org.apache.htrace.core.Tracer) AbstractBusClientServerTestBase(org.apache.cxf.testutil.common.AbstractBusClientServerTestBase) AlwaysSampler(org.apache.htrace.core.AlwaysSampler) Status(javax.ws.rs.core.Response.Status) HTraceClientProvider(org.apache.cxf.tracing.htrace.jaxrs.HTraceClientProvider) Before(org.junit.Before) StandardOutSpanReceiver(org.apache.htrace.core.StandardOutSpanReceiver) JAXRSServerFactoryBean(org.apache.cxf.jaxrs.JAXRSServerFactoryBean) HasSpan.hasSpan(org.apache.cxf.systest.jaxrs.tracing.htrace.HasSpan.hasSpan) MalformedURLException(java.net.MalformedURLException) WebClient(org.apache.cxf.jaxrs.client.WebClient) Collection(java.util.Collection) Test(org.junit.Test) Collectors(java.util.stream.Collectors) ExecutionException(java.util.concurrent.ExecutionException) TimeUnit(java.util.concurrent.TimeUnit) TraceScope(org.apache.htrace.core.TraceScope) AbstractResourceInfo(org.apache.cxf.jaxrs.model.AbstractResourceInfo) HTraceFeature(org.apache.cxf.tracing.htrace.jaxrs.HTraceFeature) Response(javax.ws.rs.core.Response) Ignore(org.junit.Ignore) AbstractBusTestServerBase(org.apache.cxf.testutil.common.AbstractBusTestServerBase) SpanId(org.apache.htrace.core.SpanId) WebClient(org.apache.cxf.jaxrs.client.WebClient) Test(org.junit.Test)

Example 2 with BookStore

use of org.apache.cxf.systest.jaxrs.tracing.BookStore in project cxf by apache.

the class HTraceTracingTest method testThatNewSpansAreCreatedWhenNotProvidedUsingMultipleClients.

@Test
public void testThatNewSpansAreCreatedWhenNotProvidedUsingMultipleClients() throws Exception {
    final WebClient client = createWebClient("/bookstore/books", htraceClientProvider);
    // The intention is to make a calls one after another, not in parallel, to ensure the
    // thread have trace contexts cleared out.
    final Collection<Response> responses = IntStream.range(0, 4).mapToObj(index -> client.get()).collect(Collectors.toList());
    for (final Response r : responses) {
        assertEquals(Status.OK.getStatusCode(), r.getStatus());
        assertTrue(r.getHeaders().containsKey(TracerHeaders.DEFAULT_HEADER_SPAN_ID));
    }
    assertThat(TestSpanReceiver.getAllSpans().size(), equalTo(12));
    IntStream.range(0, 4).map(index -> index * 3).forEach(index -> {
        assertThat(TestSpanReceiver.getAllSpans().get(index).getDescription(), equalTo("Get Books"));
        assertThat(TestSpanReceiver.getAllSpans().get(index + 1).getDescription(), equalTo("GET bookstore/books"));
        assertThat(TestSpanReceiver.getAllSpans().get(index + 2).getDescription(), equalTo("GET " + client.getCurrentURI()));
    });
}
Also used : Response(javax.ws.rs.core.Response) IntStream(java.util.stream.IntStream) SingletonResourceProvider(org.apache.cxf.jaxrs.lifecycle.SingletonResourceProvider) IsTimelineContaining.hasItem(org.apache.cxf.systest.jaxrs.tracing.htrace.IsTimelineContaining.hasItem) Arrays(java.util.Arrays) BeforeClass(org.junit.BeforeClass) CoreMatchers.equalTo(org.hamcrest.CoreMatchers.equalTo) TimeoutException(java.util.concurrent.TimeoutException) IsTimelineEmpty.empty(org.apache.cxf.systest.jaxrs.tracing.htrace.IsTimelineEmpty.empty) HashMap(java.util.HashMap) JacksonJsonProvider(com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider) TestSpanReceiver(org.apache.cxf.systest.htrace.TestSpanReceiver) TracerHeaders(org.apache.cxf.tracing.TracerHeaders) Future(java.util.concurrent.Future) MediaType(javax.ws.rs.core.MediaType) BookStore(org.apache.cxf.systest.jaxrs.tracing.BookStore) HTraceConfiguration(org.apache.htrace.core.HTraceConfiguration) Map(java.util.Map) Tracer(org.apache.htrace.core.Tracer) AbstractBusClientServerTestBase(org.apache.cxf.testutil.common.AbstractBusClientServerTestBase) AlwaysSampler(org.apache.htrace.core.AlwaysSampler) Status(javax.ws.rs.core.Response.Status) HTraceClientProvider(org.apache.cxf.tracing.htrace.jaxrs.HTraceClientProvider) Before(org.junit.Before) StandardOutSpanReceiver(org.apache.htrace.core.StandardOutSpanReceiver) JAXRSServerFactoryBean(org.apache.cxf.jaxrs.JAXRSServerFactoryBean) HasSpan.hasSpan(org.apache.cxf.systest.jaxrs.tracing.htrace.HasSpan.hasSpan) MalformedURLException(java.net.MalformedURLException) WebClient(org.apache.cxf.jaxrs.client.WebClient) Collection(java.util.Collection) Test(org.junit.Test) Collectors(java.util.stream.Collectors) ExecutionException(java.util.concurrent.ExecutionException) TimeUnit(java.util.concurrent.TimeUnit) TraceScope(org.apache.htrace.core.TraceScope) AbstractResourceInfo(org.apache.cxf.jaxrs.model.AbstractResourceInfo) HTraceFeature(org.apache.cxf.tracing.htrace.jaxrs.HTraceFeature) Response(javax.ws.rs.core.Response) Ignore(org.junit.Ignore) AbstractBusTestServerBase(org.apache.cxf.testutil.common.AbstractBusTestServerBase) SpanId(org.apache.htrace.core.SpanId) WebClient(org.apache.cxf.jaxrs.client.WebClient) Test(org.junit.Test)

Example 3 with BookStore

use of org.apache.cxf.systest.jaxrs.tracing.BookStore in project cxf by apache.

the class BraveTracingTest method testThatNewSpansAreCreatedWhenNotProvidedUsingMultipleClients.

@Test
public void testThatNewSpansAreCreatedWhenNotProvidedUsingMultipleClients() throws Exception {
    final WebClient client = createWebClient("/bookstore/books", new BraveClientProvider(brave));
    // The intention is to make a calls one after another, not in parallel, to ensure the
    // thread have trace contexts cleared out.
    IntStream.range(0, 4).mapToObj(index -> client.get()).forEach(r -> assertEquals(Status.OK.getStatusCode(), r.getStatus()));
    assertThat(TestSpanReporter.getAllSpans().size(), equalTo(12));
    IntStream.range(0, 4).map(index -> index * 3).forEach(index -> {
        assertThat(TestSpanReporter.getAllSpans().get(index).name(), equalTo("get books"));
        assertThat(TestSpanReporter.getAllSpans().get(index + 1).name(), equalTo("get /bookstore/books"));
        assertThat(TestSpanReporter.getAllSpans().get(index + 2).name(), equalTo("get " + client.getCurrentURI()));
    });
}
Also used : Arrays(java.util.Arrays) SPAN_ID_NAME(org.apache.cxf.systest.brave.BraveTestSupport.SPAN_ID_NAME) BraveClientProvider(org.apache.cxf.tracing.brave.jaxrs.BraveClientProvider) BraveFeature(org.apache.cxf.tracing.brave.jaxrs.BraveFeature) TimeoutException(java.util.concurrent.TimeoutException) Span(brave.Span) AbstractClientServerTestBase(org.apache.cxf.testutil.common.AbstractClientServerTestBase) AbstractTestServerBase(org.apache.cxf.testutil.common.AbstractTestServerBase) SpanId(org.apache.cxf.systest.brave.BraveTestSupport.SpanId) Future(java.util.concurrent.Future) MediaType(javax.ws.rs.core.MediaType) TRACE_ID_NAME(org.apache.cxf.systest.brave.BraveTestSupport.TRACE_ID_NAME) Sampler(brave.sampler.Sampler) TraceScope(org.apache.cxf.tracing.brave.TraceScope) Duration(java.time.Duration) NullPointerExceptionMapper(org.apache.cxf.systest.jaxrs.tracing.NullPointerExceptionMapper) After(org.junit.After) IsMapContaining.hasEntry(org.hamcrest.collection.IsMapContaining.hasEntry) Awaitility.await(org.awaitility.Awaitility.await) IsMapContaining.hasKey(org.hamcrest.collection.IsMapContaining.hasKey) PARENT_SPAN_ID_NAME(org.apache.cxf.systest.brave.BraveTestSupport.PARENT_SPAN_ID_NAME) Response(javax.ws.rs.core.Response) Assert.assertFalse(org.junit.Assert.assertFalse) ProcessingException(javax.ws.rs.ProcessingException) HasSpan.hasSpan(org.apache.cxf.systest.jaxrs.tracing.brave.HasSpan.hasSpan) IntStream(java.util.stream.IntStream) SingletonResourceProvider(org.apache.cxf.jaxrs.lifecycle.SingletonResourceProvider) BeforeClass(org.junit.BeforeClass) CoreMatchers.equalTo(org.hamcrest.CoreMatchers.equalTo) CoreMatchers.not(org.hamcrest.CoreMatchers.not) JacksonJsonProvider(com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider) BookStore(org.apache.cxf.systest.jaxrs.tracing.BookStore) SAMPLED_NAME(org.apache.cxf.systest.brave.BraveTestSupport.SAMPLED_NAME) IsAnnotationContaining.hasItem(org.apache.cxf.systest.jaxrs.tracing.brave.IsAnnotationContaining.hasItem) TestSpanReporter(org.apache.cxf.systest.brave.TestSpanReporter) MatcherAssert.assertThat(org.hamcrest.MatcherAssert.assertThat) Status(javax.ws.rs.core.Response.Status) ExpectedException(org.junit.rules.ExpectedException) CoreMatchers.nullValue(org.hamcrest.CoreMatchers.nullValue) SpanInScope(brave.Tracer.SpanInScope) Tracing(brave.Tracing) JAXRSServerFactoryBean(org.apache.cxf.jaxrs.JAXRSServerFactoryBean) MalformedURLException(java.net.MalformedURLException) WebClient(org.apache.cxf.jaxrs.client.WebClient) Assert.assertTrue(org.junit.Assert.assertTrue) Test(org.junit.Test) ExecutionException(java.util.concurrent.ExecutionException) TimeUnit(java.util.concurrent.TimeUnit) AtomicLong(java.util.concurrent.atomic.AtomicLong) AbstractResourceInfo(org.apache.cxf.jaxrs.model.AbstractResourceInfo) Rule(org.junit.Rule) BraveClientFeature(org.apache.cxf.tracing.brave.BraveClientFeature) HTTPClientPolicy(org.apache.cxf.transports.http.configuration.HTTPClientPolicy) Collections(java.util.Collections) Assert.assertEquals(org.junit.Assert.assertEquals) BraveClientProvider(org.apache.cxf.tracing.brave.jaxrs.BraveClientProvider) WebClient(org.apache.cxf.jaxrs.client.WebClient) Test(org.junit.Test)

Example 4 with BookStore

use of org.apache.cxf.systest.jaxrs.tracing.BookStore in project cxf by apache.

the class OpenTracingTracingTest method testThatNewSpansAreCreatedWhenNotProvidedUsingMultipleClients.

@Test
public void testThatNewSpansAreCreatedWhenNotProvidedUsingMultipleClients() throws Exception {
    final WebClient client = createWebClient("/bookstore/books", new OpenTracingClientProvider(tracer));
    // The intention is to make a calls one after another, not in parallel, to ensure the
    // thread have trace contexts cleared out.
    IntStream.range(0, 4).mapToObj(index -> client.get()).forEach(r -> assertEquals(Status.OK.getStatusCode(), r.getStatus()));
    assertEquals(REPORTER.getSpans().toString(), 12, REPORTER.getSpans().size());
    IntStream.range(0, 4).map(index -> index * 3).forEach(index -> {
        assertThat(REPORTER.getSpans().get(index).getOperationName(), equalTo("Get Books"));
        assertThat(REPORTER.getSpans().get(index + 1).getOperationName(), equalTo("GET /bookstore/books"));
        assertThat(REPORTER.getSpans().get(index + 2).getOperationName(), equalTo("GET " + client.getCurrentURI()));
    });
}
Also used : Arrays(java.util.Arrays) IsLogContaining.hasItem(org.apache.cxf.systest.jaxrs.tracing.opentracing.IsLogContaining.hasItem) TimeoutException(java.util.concurrent.TimeoutException) Builtin(io.opentracing.propagation.Format.Builtin) AbstractClientServerTestBase(org.apache.cxf.testutil.common.AbstractClientServerTestBase) AbstractTestServerBase(org.apache.cxf.testutil.common.AbstractTestServerBase) Tags(io.opentracing.tag.Tags) Future(java.util.concurrent.Future) MediaType(javax.ws.rs.core.MediaType) Duration(java.time.Duration) NullPointerExceptionMapper(org.apache.cxf.systest.jaxrs.tracing.NullPointerExceptionMapper) After(org.junit.After) ConstSampler(io.jaegertracing.internal.samplers.ConstSampler) IsTagContaining.hasItem(org.apache.cxf.systest.jaxrs.tracing.opentracing.IsTagContaining.hasItem) OpenTracingFeature(org.apache.cxf.tracing.opentracing.jaxrs.OpenTracingFeature) JaegerSpanContext(io.jaegertracing.internal.JaegerSpanContext) Awaitility.await(org.awaitility.Awaitility.await) Response(javax.ws.rs.core.Response) TextMap(io.opentracing.propagation.TextMap) HasSpan.hasSpan(org.apache.cxf.systest.jaxrs.tracing.opentracing.HasSpan.hasSpan) Entry(java.util.Map.Entry) ProcessingException(javax.ws.rs.ProcessingException) Span(io.opentracing.Span) Scope(io.opentracing.Scope) JaegerTracer(io.jaegertracing.internal.JaegerTracer) IntStream(java.util.stream.IntStream) SingletonResourceProvider(org.apache.cxf.jaxrs.lifecycle.SingletonResourceProvider) OpenTracingClientProvider(org.apache.cxf.tracing.opentracing.jaxrs.OpenTracingClientProvider) BeforeClass(org.junit.BeforeClass) CoreMatchers.equalTo(org.hamcrest.CoreMatchers.equalTo) CoreMatchers.not(org.hamcrest.CoreMatchers.not) JacksonJsonProvider(com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider) BookStore(org.apache.cxf.systest.jaxrs.tracing.BookStore) MatcherAssert.assertThat(org.hamcrest.MatcherAssert.assertThat) Status(javax.ws.rs.core.Response.Status) ExpectedException(org.junit.rules.ExpectedException) Matchers.empty(org.hamcrest.Matchers.empty) JAXRSServerFactoryBean(org.apache.cxf.jaxrs.JAXRSServerFactoryBean) Iterator(java.util.Iterator) Tracer(io.opentracing.Tracer) MalformedURLException(java.net.MalformedURLException) OpenTracingClientFeature(org.apache.cxf.tracing.opentracing.OpenTracingClientFeature) WebClient(org.apache.cxf.jaxrs.client.WebClient) Assert.assertTrue(org.junit.Assert.assertTrue) InMemoryReporter(io.jaegertracing.internal.reporters.InMemoryReporter) Test(org.junit.Test) ExecutionException(java.util.concurrent.ExecutionException) TimeUnit(java.util.concurrent.TimeUnit) AtomicLong(java.util.concurrent.atomic.AtomicLong) AbstractResourceInfo(org.apache.cxf.jaxrs.model.AbstractResourceInfo) Rule(org.junit.Rule) HTTPClientPolicy(org.apache.cxf.transports.http.configuration.HTTPClientPolicy) Collections(java.util.Collections) Assert.assertEquals(org.junit.Assert.assertEquals) OpenTracingClientProvider(org.apache.cxf.tracing.opentracing.jaxrs.OpenTracingClientProvider) WebClient(org.apache.cxf.jaxrs.client.WebClient) Test(org.junit.Test)

Example 5 with BookStore

use of org.apache.cxf.systest.jaxrs.tracing.BookStore in project cxf by apache.

the class BraveTracingTest method testThatNewSpansAreCreatedWhenNotProvidedUsingMultipleAsyncClients.

@Test
public void testThatNewSpansAreCreatedWhenNotProvidedUsingMultipleAsyncClients() throws Exception {
    final WebClient client = createWebClient("/bookstore/books", new BraveClientProvider(brave));
    // The intention is to make a calls one after another, not in parallel, to ensure the
    // thread have trace contexts cleared out.
    IntStream.range(0, 4).mapToObj(index -> client.async().get()).map(this::get).forEach(r -> assertEquals(Status.OK.getStatusCode(), r.getStatus()));
    assertThat(TestSpanReporter.getAllSpans().toString(), TestSpanReporter.getAllSpans().size(), equalTo(12));
    IntStream.range(0, 4).map(index -> index * 3).forEach(index -> {
        assertThat(TestSpanReporter.getAllSpans().get(index).name(), equalTo("get books"));
        assertThat(TestSpanReporter.getAllSpans().get(index + 1).name(), equalTo("get /bookstore/books"));
        assertThat(TestSpanReporter.getAllSpans().get(index + 2).name(), equalTo("get " + client.getCurrentURI()));
    });
}
Also used : Arrays(java.util.Arrays) SPAN_ID_NAME(org.apache.cxf.systest.brave.BraveTestSupport.SPAN_ID_NAME) BraveClientProvider(org.apache.cxf.tracing.brave.jaxrs.BraveClientProvider) BraveFeature(org.apache.cxf.tracing.brave.jaxrs.BraveFeature) TimeoutException(java.util.concurrent.TimeoutException) Span(brave.Span) AbstractClientServerTestBase(org.apache.cxf.testutil.common.AbstractClientServerTestBase) AbstractTestServerBase(org.apache.cxf.testutil.common.AbstractTestServerBase) SpanId(org.apache.cxf.systest.brave.BraveTestSupport.SpanId) Future(java.util.concurrent.Future) MediaType(javax.ws.rs.core.MediaType) TRACE_ID_NAME(org.apache.cxf.systest.brave.BraveTestSupport.TRACE_ID_NAME) Sampler(brave.sampler.Sampler) TraceScope(org.apache.cxf.tracing.brave.TraceScope) Duration(java.time.Duration) NullPointerExceptionMapper(org.apache.cxf.systest.jaxrs.tracing.NullPointerExceptionMapper) After(org.junit.After) IsMapContaining.hasEntry(org.hamcrest.collection.IsMapContaining.hasEntry) Awaitility.await(org.awaitility.Awaitility.await) IsMapContaining.hasKey(org.hamcrest.collection.IsMapContaining.hasKey) PARENT_SPAN_ID_NAME(org.apache.cxf.systest.brave.BraveTestSupport.PARENT_SPAN_ID_NAME) Response(javax.ws.rs.core.Response) Assert.assertFalse(org.junit.Assert.assertFalse) ProcessingException(javax.ws.rs.ProcessingException) HasSpan.hasSpan(org.apache.cxf.systest.jaxrs.tracing.brave.HasSpan.hasSpan) IntStream(java.util.stream.IntStream) SingletonResourceProvider(org.apache.cxf.jaxrs.lifecycle.SingletonResourceProvider) BeforeClass(org.junit.BeforeClass) CoreMatchers.equalTo(org.hamcrest.CoreMatchers.equalTo) CoreMatchers.not(org.hamcrest.CoreMatchers.not) JacksonJsonProvider(com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider) BookStore(org.apache.cxf.systest.jaxrs.tracing.BookStore) SAMPLED_NAME(org.apache.cxf.systest.brave.BraveTestSupport.SAMPLED_NAME) IsAnnotationContaining.hasItem(org.apache.cxf.systest.jaxrs.tracing.brave.IsAnnotationContaining.hasItem) TestSpanReporter(org.apache.cxf.systest.brave.TestSpanReporter) MatcherAssert.assertThat(org.hamcrest.MatcherAssert.assertThat) Status(javax.ws.rs.core.Response.Status) ExpectedException(org.junit.rules.ExpectedException) CoreMatchers.nullValue(org.hamcrest.CoreMatchers.nullValue) SpanInScope(brave.Tracer.SpanInScope) Tracing(brave.Tracing) JAXRSServerFactoryBean(org.apache.cxf.jaxrs.JAXRSServerFactoryBean) MalformedURLException(java.net.MalformedURLException) WebClient(org.apache.cxf.jaxrs.client.WebClient) Assert.assertTrue(org.junit.Assert.assertTrue) Test(org.junit.Test) ExecutionException(java.util.concurrent.ExecutionException) TimeUnit(java.util.concurrent.TimeUnit) AtomicLong(java.util.concurrent.atomic.AtomicLong) AbstractResourceInfo(org.apache.cxf.jaxrs.model.AbstractResourceInfo) Rule(org.junit.Rule) BraveClientFeature(org.apache.cxf.tracing.brave.BraveClientFeature) HTTPClientPolicy(org.apache.cxf.transports.http.configuration.HTTPClientPolicy) Collections(java.util.Collections) Assert.assertEquals(org.junit.Assert.assertEquals) BraveClientProvider(org.apache.cxf.tracing.brave.jaxrs.BraveClientProvider) WebClient(org.apache.cxf.jaxrs.client.WebClient) Test(org.junit.Test)

Aggregations

JacksonJsonProvider (com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider)6 MalformedURLException (java.net.MalformedURLException)6 Arrays (java.util.Arrays)6 ExecutionException (java.util.concurrent.ExecutionException)6 Future (java.util.concurrent.Future)6 TimeUnit (java.util.concurrent.TimeUnit)6 TimeoutException (java.util.concurrent.TimeoutException)6 IntStream (java.util.stream.IntStream)6 MediaType (javax.ws.rs.core.MediaType)6 Response (javax.ws.rs.core.Response)6 Status (javax.ws.rs.core.Response.Status)6 JAXRSServerFactoryBean (org.apache.cxf.jaxrs.JAXRSServerFactoryBean)6 WebClient (org.apache.cxf.jaxrs.client.WebClient)6 SingletonResourceProvider (org.apache.cxf.jaxrs.lifecycle.SingletonResourceProvider)6 AbstractResourceInfo (org.apache.cxf.jaxrs.model.AbstractResourceInfo)6 BookStore (org.apache.cxf.systest.jaxrs.tracing.BookStore)6 CoreMatchers.equalTo (org.hamcrest.CoreMatchers.equalTo)6 BeforeClass (org.junit.BeforeClass)6 Test (org.junit.Test)6 Duration (java.time.Duration)4