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 30
30
import org .springframework .test .util .ReflectionTestUtils ;
31
31
import org .springframework .util .ClassUtils ;
32
32
33
+ import static org .assertj .core .api .Assertions .assertThat ;
33
34
import static org .assertj .core .api .Assertions .assertThatExceptionOfType ;
34
35
import static org .mockito .ArgumentMatchers .any ;
35
36
import static org .mockito .ArgumentMatchers .eq ;
@@ -63,12 +64,19 @@ public class SecurityNamespaceHandlerTests {
63
64
64
65
@ Test
65
66
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 ();
72
80
}
73
81
74
82
@ Test
You can’t perform that action at this time.
0 commit comments