Skip to content

Commit 576d657

Browse files
author
Stephane Landelle
committed
Disable microsoft.com based tests, see #496
1 parent aea1dc9 commit 576d657

File tree

1 file changed

+33
-28
lines changed

1 file changed

+33
-28
lines changed

api/src/test/java/org/asynchttpclient/async/RemoteSiteTest.java

Lines changed: 33 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ public void testMailGoogleCom() throws Exception {
7474
}
7575
}
7676

77-
@Test(groups = { "online", "default_provider" })
77+
@Test(groups = { "online", "default_provider" }, enabled = false)
78+
// FIXME
7879
public void testMicrosoftCom() throws Exception {
7980
AsyncHttpClient c = getAsyncHttpClient(new AsyncHttpClientConfig.Builder().setRequestTimeoutInMs(10000).build());
8081
try {
@@ -86,7 +87,8 @@ public void testMicrosoftCom() throws Exception {
8687
}
8788
}
8889

89-
@Test(groups = { "online", "default_provider" })
90+
@Test(groups = { "online", "default_provider" }, enabled = false)
91+
// FIXME
9092
public void testWwwMicrosoftCom() throws Exception {
9193
AsyncHttpClient c = getAsyncHttpClient(new AsyncHttpClientConfig.Builder().setRequestTimeoutInMs(10000).build());
9294
try {
@@ -98,7 +100,8 @@ public void testWwwMicrosoftCom() throws Exception {
98100
}
99101
}
100102

101-
@Test(groups = { "online", "default_provider" })
103+
@Test(groups = { "online", "default_provider" }, enabled = false)
104+
// FIXME
102105
public void testUpdateMicrosoftCom() throws Exception {
103106
AsyncHttpClient c = getAsyncHttpClient(new AsyncHttpClientConfig.Builder().setRequestTimeoutInMs(10000).build());
104107
try {
@@ -151,8 +154,8 @@ public Response onCompleted(Response response) throws Exception {
151154

152155
@Test(groups = { "online", "default_provider" }, enabled = false)
153156
public void invalidStreamTest2() throws Exception {
154-
AsyncHttpClientConfig config = new AsyncHttpClientConfig.Builder().setRequestTimeoutInMs(10000).setFollowRedirects(true).setAllowPoolingConnection(false)
155-
.setMaximumNumberOfRedirects(6).build();
157+
AsyncHttpClientConfig config = new AsyncHttpClientConfig.Builder().setRequestTimeoutInMs(10000).setFollowRedirects(true)
158+
.setAllowPoolingConnection(false).setMaximumNumberOfRedirects(6).build();
156159

157160
AsyncHttpClient c = getAsyncHttpClient(config);
158161
try {
@@ -231,7 +234,8 @@ public void stripQueryStringTest() throws Exception {
231234
@Test(groups = { "online", "default_provider" })
232235
public void stripQueryStringNegativeTest() throws Exception {
233236

234-
AsyncHttpClientConfig cg = new AsyncHttpClientConfig.Builder().setRemoveQueryParamsOnRedirect(false).setFollowRedirects(true).build();
237+
AsyncHttpClientConfig cg = new AsyncHttpClientConfig.Builder().setRemoveQueryParamsOnRedirect(false).setFollowRedirects(true)
238+
.build();
235239
AsyncHttpClient c = getAsyncHttpClient(cg);
236240
try {
237241
Response response = c.prepareGet("http://www.freakonomics.com/?p=55846").execute().get();
@@ -266,35 +270,36 @@ public void evilCoookieTest() throws Exception {
266270
public void testAHC62Com() throws Exception {
267271
AsyncHttpClient c = getAsyncHttpClient(new AsyncHttpClientConfig.Builder().setFollowRedirects(true).build());
268272
try {
269-
Response response = c.prepareGet("http://api.crunchbase.com/v/1/financial-organization/kinsey-hills-group.js").execute(new AsyncHandler<Response>() {
273+
Response response = c.prepareGet("http://api.crunchbase.com/v/1/financial-organization/kinsey-hills-group.js")
274+
.execute(new AsyncHandler<Response>() {
270275

271-
private Response.ResponseBuilder builder = new Response.ResponseBuilder();
276+
private Response.ResponseBuilder builder = new Response.ResponseBuilder();
272277

273-
public void onThrowable(Throwable t) {
274-
t.printStackTrace();
275-
}
278+
public void onThrowable(Throwable t) {
279+
t.printStackTrace();
280+
}
276281

277-
public STATE onBodyPartReceived(HttpResponseBodyPart bodyPart) throws Exception {
278-
System.out.println(bodyPart.getBodyPartBytes().length);
279-
builder.accumulate(bodyPart);
282+
public STATE onBodyPartReceived(HttpResponseBodyPart bodyPart) throws Exception {
283+
System.out.println(bodyPart.getBodyPartBytes().length);
284+
builder.accumulate(bodyPart);
280285

281-
return STATE.CONTINUE;
282-
}
286+
return STATE.CONTINUE;
287+
}
283288

284-
public STATE onStatusReceived(HttpResponseStatus responseStatus) throws Exception {
285-
builder.accumulate(responseStatus);
286-
return STATE.CONTINUE;
287-
}
289+
public STATE onStatusReceived(HttpResponseStatus responseStatus) throws Exception {
290+
builder.accumulate(responseStatus);
291+
return STATE.CONTINUE;
292+
}
288293

289-
public STATE onHeadersReceived(HttpResponseHeaders headers) throws Exception {
290-
builder.accumulate(headers);
291-
return STATE.CONTINUE;
292-
}
294+
public STATE onHeadersReceived(HttpResponseHeaders headers) throws Exception {
295+
builder.accumulate(headers);
296+
return STATE.CONTINUE;
297+
}
293298

294-
public Response onCompleted() throws Exception {
295-
return builder.build();
296-
}
297-
}).get(10, TimeUnit.SECONDS);
299+
public Response onCompleted() throws Exception {
300+
return builder.build();
301+
}
302+
}).get(10, TimeUnit.SECONDS);
298303
assertNotNull(response);
299304
assertTrue(response.getResponseBody().length() >= 3870);
300305
} finally {

0 commit comments

Comments
 (0)