Skip to content
Permalink
Browse files
Remove unused code
  • Loading branch information
niranjanghule authored and ok2c committed May 5, 2022
1 parent 62fb4bc commit daac18619a5fea8a68a0eff17037a46d364a8d43
Showing 1 changed file with 1 addition and 22 deletions.
@@ -55,7 +55,6 @@
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
import org.mockito.stubbing.Answer;

@SuppressWarnings({"boxing","static-access"}) // test code
public class TestMainClientExec {
@@ -181,7 +180,7 @@ public void testExecRequestPersistentConnection() throws Exception {
.setStream(new ByteArrayInputStream(new byte[]{}))
.build());

final ConnectionState connectionState = new ConnectionState();

Mockito.when(execRuntime.execute(
Mockito.anyString(),
Mockito.same(request),
@@ -245,7 +244,6 @@ public void testExecRequestConnectionRelease() throws Exception {
.setStream(new ByteArrayInputStream(new byte[]{}))
.build());

final ConnectionState connectionState = new ConnectionState();
Mockito.when(execRuntime.execute(
Mockito.anyString(),
Mockito.same(request),
@@ -337,23 +335,4 @@ public void testExecIOException() throws Exception {
Mockito.verify(execRuntime).discardEndpoint();
}

static class ConnectionState {

private boolean connected;

public Answer<?> connectAnswer() {

return invocationOnMock -> {
connected = true;
return null;
};
}

public Answer<Boolean> isConnectedAnswer() {

return invocationOnMock -> connected;

}
}

}

0 comments on commit daac186

Please sign in to comment.