public void testGetLoginConfigAuthMethod() throws Exception {
  String xml=WEBAPP_TEST_HEADER + "" + "  <login-config>"+ "    <auth-method>BASIC</auth-method>"+ "  </login-config>"+ "</web-app>";
  WebXml webXml=WebXmlIo.parseWebXml(new ByteArrayInputStream(xml.getBytes("UTF-8")),getEntityResolver());
  assertEquals("BASIC",WebXmlUtils.getLoginConfigAuthMethod(webXml));
}

public void testGetLoginConfigAuthMethod ( ) throws Exception { String xml = WEBAPP_TEST_HEADER + "" + "  <login-config>" + "    <auth-method>BASIC</auth-method>" + "  </login-config>" + "</web-app>" ; WebXml webXml = WebXmlIo . parseWebXml ( new ByteArrayInputStream ( xml . getBytes ( "UTF-8" ) ) , getEntityResolver ( ) ) ; assertEquals ( "BASIC" , WebXmlUtils . getLoginConfigAuthMethod ( webXml ) ) ; }
tests retrieving the authentication method from a descriptor .
