Class ClientClosedTest
java.lang.Object
org.jboss.arquillian.testng.Arquillian
org.eclipse.microprofile.rest.client.tck.cditests.ClientClosedTest
- All Implemented Interfaces:
org.testng.IHookable,org.testng.ITestNGListener
public class ClientClosedTest
extends org.jboss.arquillian.testng.Arquillian
Tests that clients are closed when destroyed by the CDI container.
- Author:
- James R. Perkins
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.jboss.arquillian.testng.Arquillian
org.jboss.arquillian.testng.Arquillian.UpdateResultListener -
Field Summary
Fields inherited from class org.jboss.arquillian.testng.Arquillian
ARQUILLIAN_DATA_PROVIDER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTest that a client which extendsAutoCloseableis closed when the CDI bean is destroyed.voidTest that a client which extendsCloseableis closed when the CDI bean is destroyed.static org.jboss.shrinkwrap.api.Archive<?>voidTests that a client that does not explicitly extendCloseableorAutoCloseableis closed when the CDI bean is destroyed.Methods inherited from class org.jboss.arquillian.testng.Arquillian
arquillianAfterClass, arquillianAfterSuite, arquillianAfterTest, arquillianArgumentProvider, arquillianBeforeClass, arquillianBeforeSuite, arquillianBeforeTest, run
-
Constructor Details
-
ClientClosedTest
public ClientClosedTest()
-
-
Method Details
-
createDeployment
@Deployment public static org.jboss.shrinkwrap.api.Archive<?> createDeployment() -
stringClosed
public void stringClosed()Tests that a client that does not explicitly extendCloseableorAutoCloseableis closed when the CDI bean is destroyed. -
autoCloseableClosed
public void autoCloseableClosed()Test that a client which extendsAutoCloseableis closed when the CDI bean is destroyed. -
closeableClosed
public void closeableClosed()Test that a client which extendsCloseableis closed when the CDI bean is destroyed.
-