Searched refs:mockServer (Results 1 – 1 of 1) sorted by relevance
68 private AltsHandshakerClient mockServer; field in AltsTsiHandshakerTest75 mockServer = mock(AltsHandshakerClient.class); in setUp()77 handshakerServer = new AltsTsiHandshaker(false, mockServer); in setUp()115 verify(mockServer, never()).startClientHandshake(); in processBytesFromPeerStartServer()116 verify(mockServer, never()).next(Matchers.<ByteBuffer>any()); in processBytesFromPeerStartServer()119 when(mockServer.startServerHandshake(transportBuffer)).thenReturn(outputFrame); in processBytesFromPeerStartServer()120 when(mockServer.isFinished()).thenReturn(false); in processBytesFromPeerStartServer()129 verify(mockServer, never()).startClientHandshake(); in processBytesFromPeerStartServerEmptyOutput()130 verify(mockServer, never()).next(Matchers.<ByteBuffer>any()); in processBytesFromPeerStartServerEmptyOutput()134 when(mockServer.startServerHandshake(transportBuffer)).thenReturn(emptyOutputFrame); in processBytesFromPeerStartServerEmptyOutput()[all …]