File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
config/src/test/java/org/springframework/security/config Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 3030import org .springframework .test .util .ReflectionTestUtils ;
3131import org .springframework .util .ClassUtils ;
3232
33+ import static org .assertj .core .api .Assertions .assertThat ;
3334import static org .assertj .core .api .Assertions .assertThatExceptionOfType ;
3435import static org .mockito .ArgumentMatchers .any ;
3536import static org .mockito .ArgumentMatchers .eq ;
@@ -63,12 +64,19 @@ public class SecurityNamespaceHandlerTests {
6364
6465 @ Test
6566 public void constructionSucceeds () {
66- new SecurityNamespaceHandler ();
67- // Shameless class coverage stats boosting
68- new BeanIds () {
69- };
70- new Elements () {
71- };
67+ assertThat (new SecurityNamespaceHandler ()).isNotNull ();
68+ }
69+
70+ @ Test
71+ public void beanIdsConstantsAreNotEmpty () {
72+ assertThat (BeanIds .AUTHENTICATION_MANAGER ).isNotEmpty ();
73+ assertThat (BeanIds .SPRING_SECURITY_FILTER_CHAIN ).isNotEmpty ();
74+ }
75+
76+ @ Test
77+ public void elementsConstantsAreNotEmpty () {
78+ assertThat (Elements .HTTP ).isNotEmpty ();
79+ assertThat (Elements .AUTHENTICATION_MANAGER ).isNotEmpty ();
7280 }
7381
7482 @ Test
You can’t perform that action at this time.
0 commit comments