@Test public void testParse() throws Exception { AppConfiguration config = parser.parse(getClass().getClassLoader() .getResourceAsStream("descriptor.xml")); assertEquals("test-authn-id", config.getProfileId()); }
@Override public AppConfiguration parse(InputStream inputStream) throws DescriptorParseException { try { return parse(factory.createXMLStreamReader(inputStream)); } catch (XMLStreamException ex) { throw new DescriptorParseException(ex.getMessage(), ex); } }
XMLStreamDescriptorParser implements DescriptorParser { @Override public AppConfiguration parse(InputStream inputStream) throws DescriptorParseException { try { return parse(factory.createXMLStreamReader(inputStream)); } catch (XMLStreamException ex) { throw new DescriptorParseException(ex.getMessage(), ex); } } }
XMLStreamDescriptorParser implements DescriptorParser { @Override public AppConfiguration parse(InputStream inputStream) throws DescriptorParseException { try { return parse(factory.createXMLStreamReader(inputStream)); } catch (XMLStreamException ex) { throw new DescriptorParseException(ex.getMessage(), ex); } }  }
XMLStreamDescriptorParser implements DescriptorParser { @Override public AppConfiguration parse(InputStream inputStream) throws DescriptorParseException { try { return parse(factory.createXMLStreamReader(inputStream)); } catch (XMLStreamException ex) { throw new DescriptorParseException(ex.getMessage(), ex); } }  @Override AppConfiguration parse(InputStream inputStream); @Override void push(DescriptorReader reader); @Override void pop(); @Override void stop(); }
XMLStreamDescriptorParser implements DescriptorParser { @Override public AppConfiguration parse(InputStream inputStream) throws DescriptorParseException { try { return parse(factory.createXMLStreamReader(inputStream)); } catch (XMLStreamException ex) { throw new DescriptorParseException(ex.getMessage(), ex); } }  @Override AppConfiguration parse(InputStream inputStream); @Override void push(DescriptorReader reader); @Override void pop(); @Override void stop();  }