Skip to content

Commit b76dd35

Browse files
committed
Initializing the client before each test
1 parent 7e3b4ae commit b76dd35

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

jaxrs/async-client/src/test/java/org/javaee7/jaxrs/asyncclient/MyResourceTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import org.junit.BeforeClass;
1818
import org.junit.Test;
1919
import static org.junit.Assert.*;
20+
import org.junit.Before;
2021

2122
/**
2223
* @author Arun Gupta
@@ -27,8 +28,8 @@ public class MyResourceTest {
2728

2829
private static WebTarget target;
2930

30-
@BeforeClass
31-
public static void setUpClass() {
31+
@Before
32+
public void setUpClass() {
3233
Client client = ClientBuilder.newClient();
3334
target = client.target("http://localhost:8080/async-client/webresources/fruits");
3435
}

0 commit comments

Comments
 (0)