Search in sources :

Example 1 with HighPriorityMBW

use of org.apache.cxf.microprofile.client.mock.HighPriorityMBW in project cxf by apache.

the class CxfTypeSafeClientBuilderTest method testConfigMethods.

@Test
public void testConfigMethods() {
    RestClientBuilder builder = RestClientBuilder.newBuilder();
    assertEquals("y", builder.property("x", "y").getConfiguration().getProperty("x"));
    assertTrue(builder.register(HighPriorityMBW.class).getConfiguration().isRegistered(HighPriorityMBW.class));
    HighPriorityMBW mbw = new HighPriorityMBW(1);
    assertTrue(builder.register(mbw).getConfiguration().isRegistered(mbw));
}
Also used : HighPriorityMBW(org.apache.cxf.microprofile.client.mock.HighPriorityMBW) RestClientBuilder(org.eclipse.microprofile.rest.client.RestClientBuilder) Test(org.junit.Test)

Aggregations

HighPriorityMBW (org.apache.cxf.microprofile.client.mock.HighPriorityMBW)1 RestClientBuilder (org.eclipse.microprofile.rest.client.RestClientBuilder)1 Test (org.junit.Test)1