fix a few more errorprone warnings
This commit is contained in:
parent
febb64e126
commit
b78a823fde
|
|
@ -36,7 +36,7 @@ class ExporterInstrumentationTest {
|
||||||
Supplier<MeterProvider> meterProviderSupplier = mock(Supplier.class);
|
Supplier<MeterProvider> meterProviderSupplier = mock(Supplier.class);
|
||||||
|
|
||||||
@ParameterizedTest
|
@ParameterizedTest
|
||||||
@EnumSource()
|
@EnumSource
|
||||||
void validMeterProvider(InternalTelemetryVersion schemaVersion) {
|
void validMeterProvider(InternalTelemetryVersion schemaVersion) {
|
||||||
when(meterProviderSupplier.get())
|
when(meterProviderSupplier.get())
|
||||||
.thenReturn(
|
.thenReturn(
|
||||||
|
|
@ -84,7 +84,7 @@ class ExporterInstrumentationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ParameterizedTest
|
@ParameterizedTest
|
||||||
@EnumSource()
|
@EnumSource
|
||||||
void noopMeterProvider(InternalTelemetryVersion schemaVersion) {
|
void noopMeterProvider(InternalTelemetryVersion schemaVersion) {
|
||||||
|
|
||||||
when(meterProviderSupplier.get()).thenReturn(MeterProvider.noop());
|
when(meterProviderSupplier.get()).thenReturn(MeterProvider.noop());
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ public class MutableHistogramPointDataTest {
|
||||||
assertThat(anotherPointData.hashCode()).isNotEqualTo(pointData.hashCode());
|
assertThat(anotherPointData.hashCode()).isNotEqualTo(pointData.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test()
|
@Test
|
||||||
void testBoundaries() {
|
void testBoundaries() {
|
||||||
MutableHistogramPointData pointData = new MutableHistogramPointData(10);
|
MutableHistogramPointData pointData = new MutableHistogramPointData(10);
|
||||||
assertThatThrownBy(
|
assertThatThrownBy(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue