Support Customizing Observation Conventions
Closes gh-12534
This commit is contained in:
@@ -93,4 +93,9 @@ public class ObservationAuthenticationManagerTests {
|
||||
assertThat(context.getAuthenticationResult()).isNull();
|
||||
}
|
||||
|
||||
@Test
|
||||
void conventionSetterThrowsWhenNull() {
|
||||
assertThatExceptionOfType(IllegalArgumentException.class)
|
||||
.isThrownBy(() -> this.tested.setConvention(null));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,4 +96,10 @@ public class ObservationReactiveAuthenticationManagerTests {
|
||||
assertThat(context.getAuthenticationResult()).isNull();
|
||||
}
|
||||
|
||||
@Test
|
||||
void conventionSetterThrowsWhenNull() {
|
||||
assertThatExceptionOfType(IllegalArgumentException.class)
|
||||
.isThrownBy(() -> this.tested.setConvention(null));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -118,4 +118,9 @@ public class ObservationAuthorizationManagerTests {
|
||||
assertThat(context.getDecision()).isEqualTo(this.grant);
|
||||
}
|
||||
|
||||
@Test
|
||||
void conventionSetterThrowsWhenNull() {
|
||||
assertThatExceptionOfType(IllegalArgumentException.class)
|
||||
.isThrownBy(() -> this.tested.setConvention(null));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,4 +117,9 @@ public class ObservationReactiveAuthorizationManagerTests {
|
||||
assertThat(context.getDecision()).isEqualTo(this.grant);
|
||||
}
|
||||
|
||||
@Test
|
||||
void conventionSetterThrowsWhenNull() {
|
||||
assertThatExceptionOfType(IllegalArgumentException.class)
|
||||
.isThrownBy(() -> this.tested.setConvention(null));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user