Java Reference
In-Depth Information
Additionally, we will use the JAX-RS client:
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-client</artifactId>
<version>3.0.9.Final</version>
<scope>test</scope>
</dependency>
Our test will look like this:
@RunWith(Arquillian.class)
@WarpTest
@RunAsClient
public class SeatsResourceTest {
@Deployment(testable = true)
public static WebArchive deployment() {
return ShrinkWrap.create(MavenImporter.class)
.loadPomFromFile("pom.xml")
.importBuildOutput()
.as(WebArchive.class);
}
@ArquillianResource
private URL contextPath; // [1]
private ResteasyWebTarget target;
@Before
public void setUp() {
final ResteasyClient client =
new ResteasyClientBuilder().build();
this.target = client.target(contextPath + "rest/
seat");
}
@Test
public void testasd() {
Search WWH ::




Custom Search