Searched refs:mockConfig (Results 1 – 5 of 5) sorted by relevance
/external/grpc-grpc-java/gcp-observability/src/test/java/io/grpc/gcp/observability/interceptors/ |
D | ConfigFilterHelperTest.java | 47 private ObservabilityConfig mockConfig; field in ConfigFilterHelperTest 52 mockConfig = mock(ObservabilityConfig.class); in setup() 53 configFilterHelper = ConfigFilterHelper.getInstance(mockConfig); in setup() 58 when(mockConfig.isEnableCloudLogging()).thenReturn(true); in enableCloudLogging_withoutLogFilters() 59 assertThat(mockConfig.getClientLogFilters()).isEmpty(); in enableCloudLogging_withoutLogFilters() 60 assertThat(mockConfig.getServerLogFilters()).isEmpty(); in enableCloudLogging_withoutLogFilters() 65 when(mockConfig.isEnableCloudLogging()).thenReturn(true); in checkMethodLog_withoutLogFilters() 66 assertThat(mockConfig.getClientLogFilters()).isEmpty(); in checkMethodLog_withoutLogFilters() 67 assertThat(mockConfig.getServerLogFilters()).isEmpty(); in checkMethodLog_withoutLogFilters() 86 when(mockConfig.getClientLogFilters()).thenReturn(sampleLogFilters); in checkMethodAlwaysLogged() [all …]
|
/external/grpc-grpc-java/gcp-observability/src/test/java/io/grpc/gcp/observability/logging/ |
D | GcpLogSinkTest.java | 109 private ObservabilityConfig mockConfig; field in GcpLogSinkTest 114 when(mockConfig.getCustomTags()).thenReturn(CUSTOM_TAGS); in verifyWrite() 116 mockConfig, Collections.emptySet(), new TraceLoggingHelper(DEST_PROJECT_NAME)); in verifyWrite() 133 when(mockConfig.getCustomTags()).thenReturn(CUSTOM_TAGS); in verifyWriteWithTags() 135 mockConfig, Collections.emptySet(), new TraceLoggingHelper(DEST_PROJECT_NAME)); in verifyWriteWithTags() 155 when(mockConfig.getCustomTags()).thenReturn(emptyCustomTags); in emptyCustomTags_labelsNotSet() 158 mockConfig, Collections.emptySet(), new TraceLoggingHelper(DEST_PROJECT_NAME)); in emptyCustomTags_labelsNotSet() 175 when(mockConfig.getCustomTags()).thenReturn(emptyCustomTags); in emptyCustomTags_setSourceProject() 180 mockConfig, Collections.emptySet(), new TraceLoggingHelper(DEST_PROJECT_NAME)); in emptyCustomTags_setSourceProject() 196 mockConfig, Collections.emptySet(), new TraceLoggingHelper(DEST_PROJECT_NAME)); in verifyClose() [all …]
|
/external/opencensus-java/contrib/http_servlet/src/test/java/io/opencensus/contrib/http/servlet/ |
D | OcHttpServletFilterTest.java | 68 @Mock FilterConfig mockConfig; field in OcHttpServletFilterTest 92 when(mockConfig.getServletContext()).thenReturn(mockServletContext); in testInit() 97 filter.init(mockConfig); in testInit() 99 verify(mockConfig).getServletContext(); in testInit() 115 when(mockConfig.getServletContext()).thenReturn(mockServletContext); in testInitWithOptions() 120 filter.init(mockConfig); in testInitWithOptions() 122 verify(mockConfig).getServletContext(); in testInitWithOptions() 134 when(mockConfig.getServletContext()).thenReturn(mockServletContext); in testInitInvalidAttr() 139 filter.init(mockConfig); in testInitInvalidAttr()
|
/external/grpc-grpc-java/gcp-observability/src/test/java/io/grpc/gcp/observability/ |
D | TracesTest.java | 95 ObservabilityConfig mockConfig = mock(ObservabilityConfig.class); in run() local 101 when(mockConfig.isEnableCloudTracing()).thenReturn(true); in run() 102 when(mockConfig.getSampler()).thenReturn(Samplers.alwaysSample()); in run() 103 when(mockConfig.getProjectId()).thenReturn(PROJECT_ID); in run() 108 mockSink, mockConfig, mockChannelInterceptorFactory, mockServerInterceptorFactory); in run()
|
D | MetricsTest.java | 93 ObservabilityConfig mockConfig = mock(ObservabilityConfig.class); in run() local 99 when(mockConfig.isEnableCloudMonitoring()).thenReturn(true); in run() 100 when(mockConfig.getProjectId()).thenReturn(PROJECT_ID); in run() 105 mockSink, mockConfig, mockChannelInterceptorFactory, mockServerInterceptorFactory); in run()
|