Home
last modified time | relevance | path

Searched refs:mockStub (Results 1 – 2 of 2) sorted by relevance

/external/opencensus-java/exporters/stats/stackdriver/src/test/java/io/opencensus/exporter/stats/stackdriver/
DStackdriverExporterWorkerTest.java89 @Mock private MetricServiceStub mockStub; field in StackdriverExporterWorkerTest
101 doReturn(mockCreateMetricDescriptorCallable).when(mockStub).createMetricDescriptorCallable(); in setUp()
102 doReturn(mockCreateTimeSeriesCallable).when(mockStub).createTimeSeriesCallable(); in setUp()
133 new FakeMetricServiceClient(mockStub), in export()
140 verify(mockStub, times(1)).createMetricDescriptorCallable(); in export()
141 verify(mockStub, times(1)).createTimeSeriesCallable(); in export()
180 new FakeMetricServiceClient(mockStub), in doNotExportForEmptyViewData()
187 verify(mockStub, times(1)).createMetricDescriptorCallable(); in doNotExportForEmptyViewData()
188 verify(mockStub, times(0)).createTimeSeriesCallable(); in doNotExportForEmptyViewData()
196 doThrow(new IllegalArgumentException()).when(mockStub).createMetricDescriptorCallable(); in doNotExportIfFailedToRegisterView()
[all …]
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/
DAltsHandshakerClientTest.java55 private AltsHandshakerStub mockStub; field in AltsHandshakerClientTest
61 mockStub = mock(AltsHandshakerStub.class); in setUp()
67 handshaker = new AltsHandshakerClient(mockStub, clientOptions); in setUp()
72 when(mockStub.send(Matchers.<HandshakerReq>any())) in startClientHandshakeFailure()
85 when(mockStub.send(Matchers.<HandshakerReq>any())) in startClientHandshakeSuccess()
98 when(mockStub.send(Matchers.<HandshakerReq>any())) in startClientHandshakeWithOptions()
116 verify(mockStub).send(req); in startClientHandshakeWithOptions()
121 when(mockStub.send(Matchers.<HandshakerReq>any())) in startServerHandshakeFailure()
135 when(mockStub.send(Matchers.<HandshakerReq>any())) in startServerHandshakeSuccess()
150 when(mockStub.send(Matchers.<HandshakerReq>any())) in startServerHandshakeEmptyOutFrame()
[all …]