Search in sources :

Example 1 with TckRuntimeDelegate

use of ee.jakarta.tck.ws.rs.api.rs.ext.runtimedelegate.TckRuntimeDelegate in project jaxrs-api by eclipse-ee4j.

the class JAXRSClientIT method askForTckRuntimeDelegateGivenBySetInstanceTest.

/*
   * @testName: askForTckRuntimeDelegateGivenBySetInstanceTest
   * 
   * @assertion_ids: JAXRS:JAVADOC:291;JAXRS:JAVADOC:292;
   * 
   * @test_Strategy: Set new RuntimeDelegate and check it is TckRuntimeDelegate
   * 
   */
@Test
public void askForTckRuntimeDelegateGivenBySetInstanceTest() throws Fault {
    RuntimeDelegate original = RuntimeDelegate.getInstance();
    RuntimeDelegate.setInstance(new TckRuntimeDelegate());
    try {
        assertRuntimeDelegate();
    } finally {
        RuntimeDelegate.setInstance(original);
        assertRuntimeDelegate(false);
    }
}
Also used : TckRuntimeDelegate(ee.jakarta.tck.ws.rs.api.rs.ext.runtimedelegate.TckRuntimeDelegate) RuntimeDelegate(jakarta.ws.rs.ext.RuntimeDelegate) TckRuntimeDelegate(ee.jakarta.tck.ws.rs.api.rs.ext.runtimedelegate.TckRuntimeDelegate) Test(org.junit.jupiter.api.Test)

Aggregations

TckRuntimeDelegate (ee.jakarta.tck.ws.rs.api.rs.ext.runtimedelegate.TckRuntimeDelegate)1 RuntimeDelegate (jakarta.ws.rs.ext.RuntimeDelegate)1 Test (org.junit.jupiter.api.Test)1