Skip to content

Commit 8eb5812

Browse files
authored
Merge pull request #2352 from lprimak/fix-test-deprecation-warning
chore: hide deprecation warning in AD test
2 parents db75be1 + 4586eb6 commit 8eb5812

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/test/java/org/apache/shiro/realm/activedirectory/ActiveDirectoryRealmTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ void testExistingUserSuffix() throws Exception {
140140
void testInitialization() {
141141
try {
142142
// Initialize AD Realm
143+
@SuppressWarnings("deprecation")
143144
Factory<SecurityManager> factory = new IniSecurityManagerFactory(
144145
"classpath:org/apache/shiro/realm/activedirectory/AdRealm.withPrincipalSuffix.ini");
145146
SecurityUtils.setSecurityManager(factory.getInstance());

0 commit comments

Comments
 (0)