Found possible cause of thread interruption during test suite execution

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1512759 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2013-08-10 15:09:42 +00:00
parent da8ac20f45
commit 64ca74933b
3 changed files with 1 additions and 24 deletions

View File

@ -49,7 +49,6 @@ import org.apache.http.conn.socket.LayeredConnectionSocketFactory;
import org.apache.http.protocol.HttpContext;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.Mockito;
@ -207,7 +206,7 @@ public class TestBasicHttpClientConnectionManager {
Mockito.eq(route2), Mockito.<ConnectionConfig>any());
}
@Test @Ignore
@Test
public void testLeaseExpired() throws Exception {
final HttpHost target = new HttpHost("somehost");
final HttpRoute route = new HttpRoute(target);

View File

@ -427,17 +427,6 @@ public class TestMainClientExec {
}
}
@Test(expected=RequestAbortedException.class)
public void testExecConnectionRequestInterrupted() throws Exception {
final HttpRoute route = new HttpRoute(target);
final HttpClientContext context = new HttpClientContext();
final HttpRequestWrapper request = HttpRequestWrapper.wrap(new HttpGet("http://bar/test"));
Mockito.when(connRequest.get(Mockito.anyInt(), Mockito.<TimeUnit>any()))
.thenThrow(new InterruptedException());
mainClientExec.execute(route, request, context, execAware);
}
@Test(expected=RequestAbortedException.class)
public void testExecConnectionRequestFailed() throws Exception {
final HttpRoute route = new HttpRoute(target);

View File

@ -254,17 +254,6 @@ public class TestMinimalClientExec {
}
}
@Test(expected=RequestAbortedException.class)
public void testExecConnectionRequestInterrupted() throws Exception {
final HttpRoute route = new HttpRoute(target);
final HttpClientContext context = new HttpClientContext();
final HttpRequestWrapper request = HttpRequestWrapper.wrap(new HttpGet("http://bar/test"));
Mockito.when(connRequest.get(Mockito.anyInt(), Mockito.<TimeUnit>any()))
.thenThrow(new InterruptedException());
minimalClientExec.execute(route, request, context, execAware);
}
@Test(expected=RequestAbortedException.class)
public void testExecConnectionRequestFailed() throws Exception {
final HttpRoute route = new HttpRoute(target);