File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
src/test/java/org/javaee7/jaxrs/readerwriter Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 88 <relativePath >../pom.xml</relativePath >
99 </parent >
1010
11- <groupId >org.javaee7.jaxrs</groupId >
1211 <artifactId >readerwriter</artifactId >
13- <version >1.0-SNAPSHOT</version >
1412 <packaging >war</packaging >
1513</project >
Original file line number Diff line number Diff line change 77package org .javaee7 .jaxrs .readerwriter ;
88
99import java .net .MalformedURLException ;
10+ import java .net .URI ;
1011import java .net .URL ;
12+
1113import javax .ws .rs .client .Client ;
1214import javax .ws .rs .client .ClientBuilder ;
1315import javax .ws .rs .client .Entity ;
1416import javax .ws .rs .client .WebTarget ;
17+
1518import org .jboss .arquillian .container .test .api .Deployment ;
1619import org .jboss .arquillian .junit .Arquillian ;
1720import org .jboss .arquillian .test .api .ArquillianResource ;
2023import org .junit .After ;
2124import org .junit .Before ;
2225import org .junit .Test ;
26+
2327import static org .junit .Assert .*;
28+
2429import org .junit .runner .RunWith ;
2530
2631/**
@@ -38,10 +43,8 @@ public class MyResourceTest {
3843 @ Before
3944 public void setUp () throws MalformedURLException {
4045 client = ClientBuilder .newClient ();
41- client
42- .register (MyReader .class )
43- .register (MyWriter .class );
44- target = client .target (new URL (base , "webresources/fruits" ).toExternalForm ());
46+ client .register (MyWriter .class );
47+ target = client .target (URI .create (new URL (base , "webresources/fruits" ).toExternalForm ()));
4548 }
4649
4750 @ After
You can’t perform that action at this time.
0 commit comments