File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
src/test/java/org/javaee7/jaxrs/singleton Expand file tree Collapse file tree 2 files changed +7
-5
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 >singleton</artifactId >
13- <version >1.0-SNAPSHOT</version >
1412 <packaging >war</packaging >
1513 <name >singleton</name >
1614</project >
Original file line number Diff line number Diff line change 55 */
66package org .javaee7 .jaxrs .singleton ;
77
8+ import static org .junit .Assert .assertEquals ;
9+
810import java .net .MalformedURLException ;
11+ import java .net .URI ;
912import java .net .URL ;
1013import java .util .StringTokenizer ;
14+
1115import javax .ws .rs .client .Client ;
1216import javax .ws .rs .client .ClientBuilder ;
1317import javax .ws .rs .client .Entity ;
1418import javax .ws .rs .client .WebTarget ;
19+
1520import org .jboss .arquillian .container .test .api .Deployment ;
1621import org .jboss .arquillian .junit .Arquillian ;
1722import org .jboss .arquillian .test .api .ArquillianResource ;
1823import org .jboss .shrinkwrap .api .ShrinkWrap ;
1924import org .jboss .shrinkwrap .api .spec .WebArchive ;
2025import org .junit .After ;
2126import org .junit .Before ;
22- import org .junit .Test ;
23- import static org .junit .Assert .*;
2427import org .junit .FixMethodOrder ;
28+ import org .junit .Test ;
2529import org .junit .runner .RunWith ;
2630import org .junit .runners .MethodSorters ;
2731
@@ -41,7 +45,7 @@ public class ApplicationSingletonResourceTest {
4145 @ Before
4246 public void setUp () throws MalformedURLException {
4347 client = ClientBuilder .newClient ();
44- target = client .target (new URL (base , "webresources/application" ).toExternalForm ());
48+ target = client .target (URI . create ( new URL (base , "webresources/application" ).toExternalForm () ));
4549 }
4650
4751 @ After
You can’t perform that action at this time.
0 commit comments