Remove unused code

This commit is contained in:
niranjan ghule 2022-05-04 22:55:56 +05:30 committed by Oleg Kalnichevski
parent 62fb4bcbe0
commit daac18619a
1 changed files with 1 additions and 22 deletions

View File

@ -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;
}
}
}