We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50b9b3c commit 88737d8Copy full SHA for 88737d8
1 file changed
exporters/prometheus/src/test/java/io/opentelemetry/exporter/prometheus/PrometheusMetricReaderTest.java
@@ -1090,6 +1090,14 @@ void addResourceAttributesWorks() throws IOException {
1090
assertThat(toOpenMetrics(reader.collect())).isEqualTo(expected);
1091
}
1092
1093
+ @SuppressWarnings("deprecation") // test deprecated constructor
1094
+ @Test
1095
+ void deprecatedConstructor() {
1096
+ assertThat(new PrometheusMetricReader(false, null))
1097
+ .usingRecursiveComparison()
1098
+ .isEqualTo(new PrometheusMetricReader(null));
1099
+ }
1100
+
1101
/**
1102
* Unfortunately there is no easy way to use {@link TestClock} for Exemplar timestamps. Test if
1103
* {@code expected} equals {@code actual} but {@code <timestamp>} matches arbitrary timestamps.
0 commit comments