diff --git a/src/test/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest.java b/src/test/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest.java index b54b169d..fd1e27bb 100644 --- a/src/test/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest.java +++ b/src/test/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest.java @@ -13,7 +13,10 @@ import java.util.ArrayList; import java.util.List; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertTrue; public class ActiveDirectorySecurityRealmTest { @@ -285,7 +288,7 @@ public void testAdvancedOptionsVisibleWithNonNativeAuthentication() throws Excep ActiveDirectoryDomain activeDirectoryDomain = new ActiveDirectoryDomain(TheFlintstonesTest.AD_DOMAIN, null, null, TheFlintstonesTest.AD_MANAGER_DN, TheFlintstonesTest.AD_MANAGER_DN_PASSWORD); List domains = new ArrayList<>(1); domains.add(activeDirectoryDomain); - ActiveDirectorySecurityRealm activeDirectorySecurityRealm = new ActiveDirectorySecurityRealm(null, domains, null, null, null, null, GroupLookupStrategy.RECURSIVE, false, true, null, false, null, null, null); + ActiveDirectorySecurityRealm activeDirectorySecurityRealm = new ActiveDirectorySecurityRealm(null, domains, null, null, null, null, GroupLookupStrategy.RECURSIVE, false, true, null, false, null, null); Jenkins.getInstance().setSecurityRealm(activeDirectorySecurityRealm); DomElement domElement = jenkinsRule.createWebClient().goTo("configureSecurity").getElementByName("startTls"); assertTrue(domElement != null); @@ -297,7 +300,7 @@ public void testCacheOptionAlwaysVisible() throws Exception { ActiveDirectoryDomain activeDirectoryDomain = new ActiveDirectoryDomain(TheFlintstonesTest.AD_DOMAIN, null, null, TheFlintstonesTest.AD_MANAGER_DN, TheFlintstonesTest.AD_MANAGER_DN_PASSWORD); List domains = new ArrayList<>(1); domains.add(activeDirectoryDomain); - ActiveDirectorySecurityRealm activeDirectorySecurityRealm = new ActiveDirectorySecurityRealm(null, domains, null, null, null, null, GroupLookupStrategy.RECURSIVE, false, true, null, false, null, null, null); + ActiveDirectorySecurityRealm activeDirectorySecurityRealm = new ActiveDirectorySecurityRealm(null, domains, null, null, null, null, GroupLookupStrategy.RECURSIVE, false, true, null, false, null, null); Jenkins.getInstance().setSecurityRealm(activeDirectorySecurityRealm); DomElement domElement = jenkinsRule.createWebClient().goTo("configureSecurity").getElementByName("cache"); assertTrue(domElement != null);