@@ -166,11 +166,12 @@ public TestObservationRegistryAssert hasHandledContextsThatSatisfy(
166
166
/**
167
167
* Provides verification for all Observations having the given name.
168
168
* <p>
169
- * Examples: <pre><code class='java'> // assertions succeed
170
- * assertThat(testObservationRegistry).forAllObservationsWithNameEqualTo("foo", ObservationContextAssert -> ObservationContextAssert.hasError());
169
+ * Examples: <pre><code class='java'>
170
+ * // assertions succeed
171
+ * assertThat(testObservationRegistry).forAllObservationsWithNameEqualTo("foo", observationContextAssert -> observationContextAssert.hasError());
171
172
*
172
173
* // assertions fail - assuming that there was a foo observation but none had errors
173
- * assertThat(testObservationRegistry).forAllObservationsWithNameEqualTo("foo", ObservationContextAssert -> ObservationContextAssert .hasError());</code></pre>
174
+ * assertThat(testObservationRegistry).forAllObservationsWithNameEqualTo("foo", observationContextAssert -> observationContextAssert .hasError());</code></pre>
174
175
* @param name searched Observation name
175
176
* @param observationConsumer assertion to be executed for each Observation
176
177
* @return {@code this} assertion object.
@@ -194,11 +195,12 @@ public TestObservationRegistryAssert forAllObservationsWithNameEqualTo(String na
194
195
/**
195
196
* Provides verification for all Observations having the given name (ignoring case).
196
197
* <p>
197
- * Examples: <pre><code class='java'> // assertions succeed
198
- * assertThat(testObservationRegistry).forAllObservationsWithNameEqualTo("foo", ObservationContextAssert -> ObservationContextAssert.hasError());
198
+ * Examples: <pre><code class='java'>
199
+ * // assertions succeed
200
+ * assertThat(testObservationRegistry).forAllObservationsWithNameEqualTo("foo", observationContextAssert -> observationContextAssert.hasError());
199
201
*
200
202
* // assertions fail - assuming that there was a foo observation but none had errors
201
- * assertThat(testObservationRegistry).forAllObservationsWithNameEqualTo("foo", ObservationContextAssert -> ObservationContextAssert .hasError());</code></pre>
203
+ * assertThat(testObservationRegistry).forAllObservationsWithNameEqualTo("foo", observationContextAssert -> observationContextAssert .hasError());</code></pre>
202
204
* @param name searched Observation name (ignoring case)
203
205
* @param observationConsumer assertion to be executed for each Observation
204
206
* @return {@code this} assertion object.
@@ -223,7 +225,8 @@ public TestObservationRegistryAssert forAllObservationsWithNameEqualToIgnoreCase
223
225
/**
224
226
* Verifies that there is a proper number of Observations.
225
227
* <p>
226
- * Examples: <pre><code class='java'> // assertions succeed
228
+ * Examples: <pre><code class='java'>
229
+ * // assertions succeed
227
230
* assertThat(testObservationRegistry).hasNumberOfObservationsEqualTo(1);
228
231
*
229
232
* // assertions fail - assuming that there was only 1 observation
@@ -247,7 +250,8 @@ public TestObservationRegistryAssert hasNumberOfObservationsEqualTo(int expected
247
250
/**
248
251
* Verifies that there is a proper number of Observations with the given name.
249
252
* <p>
250
- * Examples: <pre><code class='java'> // assertions succeed
253
+ * Examples: <pre><code class='java'>
254
+ * // assertions succeed
251
255
* assertThat(testObservationRegistry).hasNumberOfObservationsWithNameEqualTo("foo", 1);
252
256
*
253
257
* // assertions fail - assuming that there is only 1 observation with that name
@@ -280,7 +284,8 @@ public TestObservationRegistryAssert hasNumberOfObservationsWithNameEqualTo(Stri
280
284
* Verifies that there is a proper number of Observations with the given name
281
285
* (ignoring case).
282
286
* <p>
283
- * Examples: <pre><code class='java'> // assertions succeed
287
+ * Examples: <pre><code class='java'>
288
+ * // assertions succeed
284
289
* assertThat(testObservationRegistry).hasNumberOfObservationsWithNameEqualToIgnoreCase("foo", 1);
285
290
*
286
291
* // assertions fail - assuming that there's only 1 such observation
@@ -312,7 +317,8 @@ public TestObservationRegistryAssert hasNumberOfObservationsWithNameEqualToIgnor
312
317
/**
313
318
* Verifies that there is an Observation with a key value.
314
319
* <p>
315
- * Examples: <pre><code class='java'> // assertions succeed
320
+ * Examples: <pre><code class='java'>
321
+ * // assertions succeed
316
322
* assertThat(testObservationRegistry).hasAnObservationWithAKeyValue("foo", "bar");
317
323
*
318
324
* // assertions fail - assuming that there is no such a key value in any observation
@@ -342,7 +348,8 @@ public TestObservationRegistryAssert hasAnObservationWithAKeyValue(String key, S
342
348
/**
343
349
* Verifies that there is an Observation with a key name.
344
350
* <p>
345
- * Examples: <pre><code class='java'> // assertions succeed
351
+ * Examples: <pre><code class='java'>
352
+ * // assertions succeed
346
353
* assertThat(testObservationRegistry).hasAnObservationWithAKeyName("foo");
347
354
*
348
355
* // assertions fail - assuming that there are no observations with such a key name
@@ -371,7 +378,8 @@ public TestObservationRegistryAssert hasAnObservationWithAKeyName(String key) {
371
378
/**
372
379
* Verifies that there is an Observation with a key value.
373
380
* <p>
374
- * Examples: <pre><code class='java'> // assertions succeed
381
+ * Examples: <pre><code class='java'>
382
+ * // assertions succeed
375
383
* assertThat(testObservationRegistry).hasAnObservationWithAKeyValue(SomeKeyName.FOO, "bar");
376
384
*
377
385
* // assertions fail - assuming that there are no observations with such a key value
@@ -389,7 +397,8 @@ public TestObservationRegistryAssert hasAnObservationWithAKeyValue(KeyName key,
389
397
/**
390
398
* Verifies that there is an Observation with a key name.
391
399
* <p>
392
- * Examples: <pre><code class='java'> // assertions succeed
400
+ * Examples: <pre><code class='java'>
401
+ * // assertions succeed
393
402
* assertThat(testObservationRegistry).hasAnObservationWithAKeyName(SomeKeyName.FOO);
394
403
*
395
404
* // assertions fail - assuming that there are no observation with such a key name
0 commit comments