Searched refs:mockChannel (Results 1 – 2 of 2) sorted by relevance
118 RpcChannel mockChannel = control.createMock(RpcChannel.class); in testStub() local119 TestService stub = TestService.newStub(mockChannel); in testStub()121 mockChannel.callMethod( in testStub()127 mockChannel.callMethod( in testStub()144 BlockingRpcChannel mockChannel = in testBlockingStub() local147 TestService.newBlockingStub(mockChannel); in testBlockingStub()152 EasyMock.expect(mockChannel.callBlockingMethod( in testBlockingStub()157 EasyMock.expect(mockChannel.callBlockingMethod( in testBlockingStub()
79 ManagedChannel mockChannel = mock(ManagedChannel.class); in buildReturnsDelegateBuildByDefualt() local80 doReturn(mockChannel).when(mockDelegate).build(); in buildReturnsDelegateBuildByDefualt()82 assertThat(testChannelBuilder.build()).isSameAs(mockChannel); in buildReturnsDelegateBuildByDefualt()