use of ee.jakarta.tck.ws.rs.common.provider.StringBeanEntityProvider in project jaxrs-api by eclipse-ee4j.
the class JAXRSClientIT method closeOnWebTargetRegisterObjectWithContractsTest.
/*
* @testName: closeOnWebTargetRegisterObjectWithContractsTest
*
* @assertion_ids: JAXRS:JAVADOC:409;
*
* @test_Strategy: Close client instance and all it's associated resources.
* Subsequent calls have no effect and are ignored. Once the client is closed,
* invoking any other method on the client instance would result in an
* IllegalStateException being thrown. Calling this method effectively
* invalidates all WebTarget resource targets produced by the client instance.
* Invoking any method on such targets once the client is closed would result
* in an IllegalStateException being thrown.
*/
@Test
public void closeOnWebTargetRegisterObjectWithContractsTest() throws Fault {
client.close();
assertException(IllegalStateException.class, target, "register", new StringBeanEntityProvider(), new Class[] { MessageBodyReader.class });
}
use of ee.jakarta.tck.ws.rs.common.provider.StringBeanEntityProvider in project jaxrs-api by eclipse-ee4j.
the class JAXRSClientIT method closeOnClientRegisterObjectWithPriorityTest.
/*
* @testName: closeOnClientRegisterObjectWithPriorityTest
*
* @assertion_ids: JAXRS:JAVADOC:409;
*
* @test_Strategy: Close client instance and all it's associated resources.
* Subsequent calls have no effect and are ignored. Once the client is closed,
* invoking any other method on the client instance would result in an
* IllegalStateException being thrown. Calling this method effectively
* invalidates all WebTarget resource targets produced by the client instance.
* Invoking any method on such targets once the client is closed would result
* in an IllegalStateException being thrown.
*/
@Test
public void closeOnClientRegisterObjectWithPriorityTest() throws Fault {
client.close();
assertException(IllegalStateException.class, client, "register", new StringBeanEntityProvider(), 100);
}
use of ee.jakarta.tck.ws.rs.common.provider.StringBeanEntityProvider in project jaxrs-api by eclipse-ee4j.
the class JAXRSClientIT method closeOnWebTargetRegisterObjectWithPriorityTest.
/*
* @testName: closeOnWebTargetRegisterObjectWithPriorityTest
*
* @assertion_ids: JAXRS:JAVADOC:409;
*
* @test_Strategy: Close client instance and all it's associated resources.
* Subsequent calls have no effect and are ignored. Once the client is closed,
* invoking any other method on the client instance would result in an
* IllegalStateException being thrown. Calling this method effectively
* invalidates all WebTarget resource targets produced by the client instance.
* Invoking any method on such targets once the client is closed would result
* in an IllegalStateException being thrown.
*/
@Test
public void closeOnWebTargetRegisterObjectWithPriorityTest() throws Fault {
client.close();
assertException(IllegalStateException.class, target, "register", new StringBeanEntityProvider(), 100);
}
use of ee.jakarta.tck.ws.rs.common.provider.StringBeanEntityProvider in project jaxrs-api by eclipse-ee4j.
the class JAXRSClientIT method closeOnClientRegisterObjectTest.
/*
* @testName: closeOnClientRegisterObjectTest
*
* @assertion_ids: JAXRS:JAVADOC:409;
*
* @test_Strategy: Close client instance and all it's associated resources.
* Subsequent calls have no effect and are ignored. Once the client is closed,
* invoking any other method on the client instance would result in an
* IllegalStateException being thrown. Calling this method effectively
* invalidates all WebTarget resource targets produced by the client instance.
* Invoking any method on such targets once the client is closed would result
* in an IllegalStateException being thrown.
*/
@Test
public void closeOnClientRegisterObjectTest() throws Fault {
client.close();
assertException(IllegalStateException.class, client, "register", new StringBeanEntityProvider());
}
use of ee.jakarta.tck.ws.rs.common.provider.StringBeanEntityProvider in project jaxrs-api by eclipse-ee4j.
the class JAXRSClientIT method closeOnWebTargetRegisterObjectTest.
/*
* @testName: closeOnWebTargetRegisterObjectTest
*
* @assertion_ids: JAXRS:JAVADOC:409;
*
* @test_Strategy: Close client instance and all it's associated resources.
* Subsequent calls have no effect and are ignored. Once the client is closed,
* invoking any other method on the client instance would result in an
* IllegalStateException being thrown. Calling this method effectively
* invalidates all WebTarget resource targets produced by the client instance.
* Invoking any method on such targets once the client is closed would result
* in an IllegalStateException being thrown.
*/
@Test
public void closeOnWebTargetRegisterObjectTest() throws Fault {
client.close();
assertException(IllegalStateException.class, target, "register", new StringBeanEntityProvider());
}
Aggregations