Remove unused code
This commit is contained in:
parent
62fb4bcbe0
commit
daac18619a
|
@ -55,7 +55,6 @@ import org.junit.jupiter.api.Test;
|
|||
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 class TestMainClientExec {
|
|||
.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 class TestMainClientExec {
|
|||
.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 class TestMainClientExec {
|
|||
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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue