@Test public void login_basic() { TestWebScanAdapterConfig webScanConfig = new TestAbstractWebScanAdapterConfigBuilder(). login(). basic(). username("user1"). password("passwd1"). realm("realm1"). endLogin() .build(); LoginConfig config = webScanConfig.getLoginConfig(); assertNotNull(config); assertTrue(null, config.isBasic()); assertEquals("user1",config.asBasic().getUser()); assertEquals("passwd1",config.asBasic().getPassword()); assertEquals("realm1",config.asBasic().getRealm()); }
public LoginBuilder login() { currentLoginBuilder=new LoginBuilder(); return currentLoginBuilder; }
AbstractWebScanAdapterConfigBuilder extends AbstractAdapterConfigBuilder<B,C> { public LoginBuilder login() { currentLoginBuilder=new LoginBuilder(); return currentLoginBuilder; } }
AbstractWebScanAdapterConfigBuilder extends AbstractAdapterConfigBuilder<B,C> { public LoginBuilder login() { currentLoginBuilder=new LoginBuilder(); return currentLoginBuilder; }  }
AbstractWebScanAdapterConfigBuilder extends AbstractAdapterConfigBuilder<B,C> { public LoginBuilder login() { currentLoginBuilder=new LoginBuilder(); return currentLoginBuilder; }  LoginBuilder login(); }
AbstractWebScanAdapterConfigBuilder extends AbstractAdapterConfigBuilder<B,C> { public LoginBuilder login() { currentLoginBuilder=new LoginBuilder(); return currentLoginBuilder; }  LoginBuilder login();  }