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);
}
}
Aggregations