File tree Expand file tree Collapse file tree
common/src/main/java/io/opentelemetry/common/impl
sdk/testing/src/main/java/io/opentelemetry/sdk/testing/assertj Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 *
2626 * <p>This class is not intended for use by application developers. Its API is stable and will not
2727 * be changed or removed in a backwards-incompatible manner.
28+ *
29+ * @since 1.62.0
2830 */
2931public final class ApiUsageLogger {
3032
Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ public DoubleGaugeAssert hasPointsSatisfying(
5050 * Asserts that for each given assertion, at least one point in the gauge satisfies it. Extra
5151 * points that match none of the assertions are allowed, and a single point may satisfy multiple
5252 * assertions.
53+ *
54+ * @since 1.62.0
5355 */
5456 @ SafeVarargs
5557 @ SuppressWarnings ("varargs" )
@@ -62,6 +64,8 @@ public final DoubleGaugeAssert containsPointsSatisfying(
6264 * Asserts that for each given assertion, at least one point in the gauge satisfies it. Extra
6365 * points that match none of the assertions are allowed, and a single point may satisfy multiple
6466 * assertions.
67+ *
68+ * @since 1.62.0
6569 */
6670 public DoubleGaugeAssert containsPointsSatisfying (
6771 Iterable <? extends Consumer <DoublePointAssert >> assertions ) {
Original file line number Diff line number Diff line change @@ -34,7 +34,11 @@ public DoublePointAssert hasValue(double expected) {
3434 return this ;
3535 }
3636
37- /** Asserts the point's value satisfies the given assertion. */
37+ /**
38+ * Asserts the point's value satisfies the given assertion.
39+ *
40+ * @since 1.62.0
41+ */
3842 public DoublePointAssert hasValueSatisfying (Consumer <AbstractDoubleAssert <?>> valueAssertion ) {
3943 isNotNull ();
4044 valueAssertion .accept (Assertions .assertThat (actual .getValue ()).as ("value" ));
Original file line number Diff line number Diff line change @@ -93,6 +93,8 @@ public DoubleSumAssert hasPointsSatisfying(
9393 * Asserts that for each given assertion, at least one point in the sum satisfies it. Extra points
9494 * that match none of the assertions are allowed, and a single point may satisfy multiple
9595 * assertions.
96+ *
97+ * @since 1.62.0
9698 */
9799 @ SafeVarargs
98100 @ SuppressWarnings ("varargs" )
@@ -104,6 +106,8 @@ public final DoubleSumAssert containsPointsSatisfying(Consumer<DoublePointAssert
104106 * Asserts that for each given assertion, at least one point in the sum satisfies it. Extra points
105107 * that match none of the assertions are allowed, and a single point may satisfy multiple
106108 * assertions.
109+ *
110+ * @since 1.62.0
107111 */
108112 public DoubleSumAssert containsPointsSatisfying (
109113 Iterable <? extends Consumer <DoublePointAssert >> assertions ) {
Original file line number Diff line number Diff line change @@ -79,6 +79,8 @@ public ExponentialHistogramAssert hasPointsSatisfying(
7979 * Asserts that for each given assertion, at least one point in the exponential histogram
8080 * satisfies it. Extra points that match none of the assertions are allowed, and a single point
8181 * may satisfy multiple assertions.
82+ *
83+ * @since 1.62.0
8284 */
8385 @ SafeVarargs
8486 @ SuppressWarnings ("varargs" )
@@ -91,6 +93,8 @@ public final ExponentialHistogramAssert containsPointsSatisfying(
9193 * Asserts that for each given assertion, at least one point in the exponential histogram
9294 * satisfies it. Extra points that match none of the assertions are allowed, and a single point
9395 * may satisfy multiple assertions.
96+ *
97+ * @since 1.62.0
9498 */
9599 public ExponentialHistogramAssert containsPointsSatisfying (
96100 Iterable <? extends Consumer <ExponentialHistogramPointAssert >> assertions ) {
Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ public HistogramAssert hasPointsSatisfying(
7777 * Asserts that for each given assertion, at least one point in the histogram satisfies it. Extra
7878 * points that match none of the assertions are allowed, and a single point may satisfy multiple
7979 * assertions.
80+ *
81+ * @since 1.62.0
8082 */
8183 @ SafeVarargs
8284 @ SuppressWarnings ("varargs" )
@@ -89,6 +91,8 @@ public final HistogramAssert containsPointsSatisfying(
8991 * Asserts that for each given assertion, at least one point in the histogram satisfies it. Extra
9092 * points that match none of the assertions are allowed, and a single point may satisfy multiple
9193 * assertions.
94+ *
95+ * @since 1.62.0
9296 */
9397 public HistogramAssert containsPointsSatisfying (
9498 Iterable <? extends Consumer <HistogramPointAssert >> assertions ) {
Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ public LongGaugeAssert hasPointsSatisfying(
4949 * Asserts that for each given assertion, at least one point in the gauge satisfies it. Extra
5050 * points that match none of the assertions are allowed, and a single point may satisfy multiple
5151 * assertions.
52+ *
53+ * @since 1.62.0
5254 */
5355 @ SafeVarargs
5456 @ SuppressWarnings ("varargs" )
@@ -60,6 +62,8 @@ public final LongGaugeAssert containsPointsSatisfying(Consumer<LongPointAssert>.
6062 * Asserts that for each given assertion, at least one point in the gauge satisfies it. Extra
6163 * points that match none of the assertions are allowed, and a single point may satisfy multiple
6264 * assertions.
65+ *
66+ * @since 1.62.0
6367 */
6468 public LongGaugeAssert containsPointsSatisfying (
6569 Iterable <? extends Consumer <LongPointAssert >> assertions ) {
Original file line number Diff line number Diff line change @@ -32,7 +32,11 @@ public LongPointAssert hasValue(long expected) {
3232 return this ;
3333 }
3434
35- /** Asserts the point's value satisfies the given assertion. */
35+ /**
36+ * Asserts the point's value satisfies the given assertion.
37+ *
38+ * @since 1.62.0
39+ */
3640 public LongPointAssert hasValueSatisfying (Consumer <AbstractLongAssert <?>> valueAssertion ) {
3741 isNotNull ();
3842 valueAssertion .accept (assertThat (actual .getValue ()).as ("value" ));
Original file line number Diff line number Diff line change @@ -92,6 +92,8 @@ public LongSumAssert hasPointsSatisfying(
9292 * Asserts that for each given assertion, at least one point in the sum satisfies it. Extra points
9393 * that match none of the assertions are allowed, and a single point may satisfy multiple
9494 * assertions.
95+ *
96+ * @since 1.62.0
9597 */
9698 @ SafeVarargs
9799 @ SuppressWarnings ("varargs" )
@@ -103,6 +105,8 @@ public final LongSumAssert containsPointsSatisfying(Consumer<LongPointAssert>...
103105 * Asserts that for each given assertion, at least one point in the sum satisfies it. Extra points
104106 * that match none of the assertions are allowed, and a single point may satisfy multiple
105107 * assertions.
108+ *
109+ * @since 1.62.0
106110 */
107111 public LongSumAssert containsPointsSatisfying (
108112 Iterable <? extends Consumer <LongPointAssert >> assertions ) {
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ public SummaryAssert hasPointsSatisfying(
5757 * Asserts that for each given assertion, at least one point in the summary satisfies it. Extra
5858 * points that match none of the assertions are allowed, and a single point may satisfy multiple
5959 * assertions.
60+ *
61+ * @since 1.62.0
6062 */
6163 @ SafeVarargs
6264 @ SuppressWarnings ("varargs" )
@@ -68,6 +70,8 @@ public final SummaryAssert containsPointsSatisfying(Consumer<SummaryPointAssert>
6870 * Asserts that for each given assertion, at least one point in the summary satisfies it. Extra
6971 * points that match none of the assertions are allowed, and a single point may satisfy multiple
7072 * assertions.
73+ *
74+ * @since 1.62.0
7175 */
7276 public SummaryAssert containsPointsSatisfying (
7377 Iterable <? extends Consumer <SummaryPointAssert >> assertions ) {
You can’t perform that action at this time.
0 commit comments