Skip to content

Commit 91faa25

Browse files
committed
Code improvement
1 parent 35dbb1c commit 91faa25

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎spring-rest/src/test/java/org/baeldung/okhttp/OkHttpGetLiveTest.java‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class OkHttpGetLiveTest {
2222

2323
private static final String BASE_URL = "http://localhost:8080/spring-rest";
2424

25-
//@Test
25+
@Test
2626
public void whenGetRequest_thenCorrect() throws IOException {
2727

2828
OkHttpClient client = new OkHttpClient();
@@ -37,7 +37,7 @@ public void whenGetRequest_thenCorrect() throws IOException {
3737
assertThat(response.code(), equalTo(200));
3838
}
3939

40-
//@Test
40+
@Test
4141
public void whenGetRequestWithQueryParameter_thenCorrect() throws IOException {
4242

4343
OkHttpClient client = new OkHttpClient();
@@ -71,12 +71,10 @@ public void whenAsynchronousGetRequest_thenCorrect() throws InterruptedException
7171
call.enqueue(new Callback() {
7272

7373
public void onResponse(Call call, Response response) throws IOException {
74-
7574
assertThat(response.code(), equalTo(200));
7675
}
7776

7877
public void onFailure(Call call, IOException e) {
79-
8078
fail();
8179
}
8280
});

0 commit comments

Comments
 (0)