Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
import org.junit.Rule;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnit;
import org.mockito.junit.MockitoRule;

Expand All @@ -81,7 +80,7 @@ public class BigtableCloudMonitoringExporterTest {

@Rule public final MockitoRule mockitoRule = MockitoJUnit.rule();

@Mock private MetricServiceStub mockMetricServiceStub;
private MetricServiceStub mockMetricServiceStub;
private MetricServiceClient fakeMetricServiceClient;
private BigtableCloudMonitoringExporter exporter;

Expand All @@ -107,6 +106,8 @@ public class BigtableCloudMonitoringExporterTest {

@Before
public void setUp() {
mockMetricServiceStub =
mock(MetricServiceStub.class, org.mockito.Mockito.withSettings().withoutAnnotations());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can we avoid the fully qualified name?

Mockito.withSettings()...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, will update!

fakeMetricServiceClient = new FakeMetricServiceClient(mockMetricServiceStub);

exporter =
Expand Down
Loading