Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
24 changes: 23 additions & 1 deletion docs/apidiffs/current_vs_latest/opentelemetry-sdk-testing.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,24 @@
Comparing source compatibility of opentelemetry-sdk-testing-1.68.0-SNAPSHOT.jar against opentelemetry-sdk-testing-1.67.0.jar
No changes.
*** MODIFIED CLASS: PUBLIC FINAL io.opentelemetry.sdk.testing.assertj.MetricAssert (not serializable)
=== CLASS FILE FORMAT VERSION: 52.0 <- 52.0
+++ NEW METHOD: PUBLIC(+) FINAL(+) io.opentelemetry.sdk.testing.assertj.MetricAssert hasDoubleGaugePointsSatisfying(java.util.function.Consumer[]<io.opentelemetry.sdk.testing.assertj.DoublePointAssert>)
+++ NEW ANNOTATION: java.lang.SafeVarargs
+++ NEW METHOD: PUBLIC(+) io.opentelemetry.sdk.testing.assertj.MetricAssert hasDoubleGaugePointsSatisfying(java.lang.Iterable<? extends java.util.function.Consumer<? extends io.opentelemetry.sdk.testing.assertj.DoublePointAssert>>)
+++ NEW METHOD: PUBLIC(+) FINAL(+) io.opentelemetry.sdk.testing.assertj.MetricAssert hasDoubleSumPointsSatisfying(java.util.function.Consumer[]<io.opentelemetry.sdk.testing.assertj.DoublePointAssert>)
+++ NEW ANNOTATION: java.lang.SafeVarargs
+++ NEW METHOD: PUBLIC(+) io.opentelemetry.sdk.testing.assertj.MetricAssert hasDoubleSumPointsSatisfying(java.lang.Iterable<? extends java.util.function.Consumer<? extends io.opentelemetry.sdk.testing.assertj.DoublePointAssert>>)
+++ NEW METHOD: PUBLIC(+) FINAL(+) io.opentelemetry.sdk.testing.assertj.MetricAssert hasExponentialHistogramPointsSatisfying(java.util.function.Consumer[]<io.opentelemetry.sdk.testing.assertj.ExponentialHistogramPointAssert>)
+++ NEW ANNOTATION: java.lang.SafeVarargs
+++ NEW METHOD: PUBLIC(+) io.opentelemetry.sdk.testing.assertj.MetricAssert hasExponentialHistogramPointsSatisfying(java.lang.Iterable<? extends java.util.function.Consumer<? extends io.opentelemetry.sdk.testing.assertj.ExponentialHistogramPointAssert>>)
+++ NEW METHOD: PUBLIC(+) FINAL(+) io.opentelemetry.sdk.testing.assertj.MetricAssert hasHistogramPointsSatisfying(java.util.function.Consumer[]<io.opentelemetry.sdk.testing.assertj.HistogramPointAssert>)
+++ NEW ANNOTATION: java.lang.SafeVarargs
+++ NEW METHOD: PUBLIC(+) io.opentelemetry.sdk.testing.assertj.MetricAssert hasHistogramPointsSatisfying(java.lang.Iterable<? extends java.util.function.Consumer<? extends io.opentelemetry.sdk.testing.assertj.HistogramPointAssert>>)
+++ NEW METHOD: PUBLIC(+) FINAL(+) io.opentelemetry.sdk.testing.assertj.MetricAssert hasLongGaugePointsSatisfying(java.util.function.Consumer[]<io.opentelemetry.sdk.testing.assertj.LongPointAssert>)
+++ NEW ANNOTATION: java.lang.SafeVarargs
+++ NEW METHOD: PUBLIC(+) io.opentelemetry.sdk.testing.assertj.MetricAssert hasLongGaugePointsSatisfying(java.lang.Iterable<? extends java.util.function.Consumer<? extends io.opentelemetry.sdk.testing.assertj.LongPointAssert>>)
+++ NEW METHOD: PUBLIC(+) FINAL(+) io.opentelemetry.sdk.testing.assertj.MetricAssert hasLongSumPointsSatisfying(java.util.function.Consumer[]<io.opentelemetry.sdk.testing.assertj.LongPointAssert>)
+++ NEW ANNOTATION: java.lang.SafeVarargs
+++ NEW METHOD: PUBLIC(+) io.opentelemetry.sdk.testing.assertj.MetricAssert hasLongSumPointsSatisfying(java.lang.Iterable<? extends java.util.function.Consumer<? extends io.opentelemetry.sdk.testing.assertj.LongPointAssert>>)
+++ NEW METHOD: PUBLIC(+) FINAL(+) io.opentelemetry.sdk.testing.assertj.MetricAssert hasSummaryPointsSatisfying(java.util.function.Consumer[]<io.opentelemetry.sdk.testing.assertj.SummaryPointAssert>)
+++ NEW ANNOTATION: java.lang.SafeVarargs
+++ NEW METHOD: PUBLIC(+) io.opentelemetry.sdk.testing.assertj.MetricAssert hasSummaryPointsSatisfying(java.lang.Iterable<? extends java.util.function.Consumer<? extends io.opentelemetry.sdk.testing.assertj.SummaryPointAssert>>)
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,26 @@ public MetricAssert hasDoubleGaugeSatisfying(Consumer<DoubleGaugeAssert> asserti
return this;
}

/**
* Asserts this {@link MetricData} is a double gauge with points matching all of the given
* assertions and no more, in any order.
*/
@SafeVarargs
@SuppressWarnings("varargs")
public final MetricAssert hasDoubleGaugePointsSatisfying(
Consumer<DoublePointAssert>... assertions) {
return hasDoubleGaugeSatisfying(gauge -> gauge.hasPointsSatisfying(assertions));
}

/**
* Asserts this {@link MetricData} is a double gauge with points matching all of the given
* assertions and no more, in any order.
*/
public MetricAssert hasDoubleGaugePointsSatisfying(
Iterable<? extends Consumer<DoublePointAssert>> assertions) {
return hasDoubleGaugeSatisfying(gauge -> gauge.hasPointsSatisfying(assertions));
}

/**
* Asserts this {@link MetricData} is a {@code LongGauge} that satisfies the provided assertion.
*/
Expand All @@ -139,6 +159,25 @@ public MetricAssert hasLongGaugeSatisfying(Consumer<LongGaugeAssert> assertion)
return this;
}

/**
* Asserts this {@link MetricData} is a long gauge with points matching all of the given
* assertions and no more, in any order.
*/
@SafeVarargs
@SuppressWarnings("varargs")
public final MetricAssert hasLongGaugePointsSatisfying(Consumer<LongPointAssert>... assertions) {
return hasLongGaugeSatisfying(gauge -> gauge.hasPointsSatisfying(assertions));
}

/**
* Asserts this {@link MetricData} is a long gauge with points matching all of the given
* assertions and no more, in any order.
*/
public MetricAssert hasLongGaugePointsSatisfying(
Iterable<? extends Consumer<LongPointAssert>> assertions) {
return hasLongGaugeSatisfying(gauge -> gauge.hasPointsSatisfying(assertions));
}

/** Asserts this {@link MetricData} is a double sum that satisfies the provided assertion. */
public MetricAssert hasDoubleSumSatisfying(Consumer<DoubleSumAssert> assertion) {
isNotNull();
Expand All @@ -154,6 +193,26 @@ public MetricAssert hasDoubleSumSatisfying(Consumer<DoubleSumAssert> assertion)
return this;
}

/**
* Asserts this {@link MetricData} is a double sum with points matching all of the given
* assertions and no more, in any order.
*/
@SafeVarargs
@SuppressWarnings("varargs")
public final MetricAssert hasDoubleSumPointsSatisfying(
Consumer<DoublePointAssert>... assertions) {
return hasDoubleSumSatisfying(sum -> sum.hasPointsSatisfying(assertions));
}

/**
* Asserts this {@link MetricData} is a double sum with points matching all of the given
* assertions and no more, in any order.
*/
public MetricAssert hasDoubleSumPointsSatisfying(
Iterable<? extends Consumer<DoublePointAssert>> assertions) {
return hasDoubleSumSatisfying(sum -> sum.hasPointsSatisfying(assertions));
}

/** Asserts this {@link MetricData} is a long sum that satisfies the provided assertion. */
public MetricAssert hasLongSumSatisfying(Consumer<LongSumAssert> assertion) {
isNotNull();
Expand All @@ -169,6 +228,25 @@ public MetricAssert hasLongSumSatisfying(Consumer<LongSumAssert> assertion) {
return this;
}

/**
* Asserts this {@link MetricData} is a long sum with points matching all of the given assertions
* and no more, in any order.
*/
@SafeVarargs
@SuppressWarnings("varargs")
public final MetricAssert hasLongSumPointsSatisfying(Consumer<LongPointAssert>... assertions) {
return hasLongSumSatisfying(sum -> sum.hasPointsSatisfying(assertions));
}

/**
* Asserts this {@link MetricData} is a long sum with points matching all of the given assertions
* and no more, in any order.
*/
public MetricAssert hasLongSumPointsSatisfying(
Iterable<? extends Consumer<LongPointAssert>> assertions) {
return hasLongSumSatisfying(sum -> sum.hasPointsSatisfying(assertions));
}

/** Asserts this {@link MetricData} is a histogram that satisfies the provided assertion. */
public MetricAssert hasHistogramSatisfying(Consumer<HistogramAssert> assertion) {
isNotNull();
Expand All @@ -184,6 +262,26 @@ public MetricAssert hasHistogramSatisfying(Consumer<HistogramAssert> assertion)
return this;
}

/**
* Asserts this {@link MetricData} is a histogram with points matching all of the given assertions
* and no more, in any order.
*/
@SafeVarargs
@SuppressWarnings("varargs")
public final MetricAssert hasHistogramPointsSatisfying(
Consumer<HistogramPointAssert>... assertions) {
return hasHistogramSatisfying(histogram -> histogram.hasPointsSatisfying(assertions));
}

/**
* Asserts this {@link MetricData} is a histogram with points matching all of the given assertions
* and no more, in any order.
*/
public MetricAssert hasHistogramPointsSatisfying(
Iterable<? extends Consumer<HistogramPointAssert>> assertions) {
return hasHistogramSatisfying(histogram -> histogram.hasPointsSatisfying(assertions));
}

/**
* Asserts this {@link MetricData} is an exponential histogram that satisfies the provided
* assertion.
Expand All @@ -205,6 +303,28 @@ public MetricAssert hasExponentialHistogramSatisfying(
return this;
}

/**
* Asserts this {@link MetricData} is an exponential histogram with points matching all of the
* given assertions and no more, in any order.
*/
@SafeVarargs
@SuppressWarnings("varargs")
public final MetricAssert hasExponentialHistogramPointsSatisfying(
Consumer<ExponentialHistogramPointAssert>... assertions) {
return hasExponentialHistogramSatisfying(
histogram -> histogram.hasPointsSatisfying(assertions));
}

/**
* Asserts this {@link MetricData} is an exponential histogram with points matching all of the
* given assertions and no more, in any order.
*/
public MetricAssert hasExponentialHistogramPointsSatisfying(
Iterable<? extends Consumer<ExponentialHistogramPointAssert>> assertions) {
return hasExponentialHistogramSatisfying(
histogram -> histogram.hasPointsSatisfying(assertions));
}

/** Asserts this {@link MetricData} is a summary that satisfies the provided assertion. */
public MetricAssert hasSummarySatisfying(Consumer<SummaryAssert> assertion) {
isNotNull();
Expand All @@ -219,4 +339,23 @@ public MetricAssert hasSummarySatisfying(Consumer<SummaryAssert> assertion) {
assertion.accept(new SummaryAssert(actual.getSummaryData()));
return this;
}

/**
* Asserts this {@link MetricData} is a summary with points matching all of the given assertions
* and no more, in any order.
*/
@SafeVarargs
@SuppressWarnings("varargs")
public final MetricAssert hasSummaryPointsSatisfying(Consumer<SummaryPointAssert>... assertions) {
return hasSummarySatisfying(summary -> summary.hasPointsSatisfying(assertions));
}

/**
* Asserts this {@link MetricData} is a summary with points matching all of the given assertions
* and no more, in any order.
*/
public MetricAssert hasSummaryPointsSatisfying(
Iterable<? extends Consumer<SummaryPointAssert>> assertions) {
return hasSummarySatisfying(summary -> summary.hasPointsSatisfying(assertions));
}
}
Loading
Loading