@Test public void testStartParsing() throws SAXException { XMLAttributesImpl attrs = new XMLAttributesImpl(); attrs.addAttribute( new QName( null, "language", null, URI ), ATTR_TYPE, LANG_VALUE ); attrs.addAttribute( new QName( null, "script", null, URI ), ATTR_TYPE, SCRIPT_VALUE ); attrs.addAttribute( new QName( null, "shutdown-script", null, URI ), ATTR_TYPE, SHUTDOWN_SCRIPT_VALUE ); AttributesProxy fAttributesProxy = new AttributesProxy( attrs ); RootXmlReadHandler rootXmlReadHandler = mock( RootXmlReadHandler.class ); ConfigReadHandler handler = new ConfigReadHandler(); handler.init( rootXmlReadHandler, URI, "tag" ); handler.startParsing( fAttributesProxy ); assertThat( handler.getLanguage(), is( equalTo( LANG_VALUE ) ) ); assertThat( handler.getScript(), is( equalTo( SCRIPT_VALUE ) ) ); assertThat( handler.getShutdownScript(), is( equalTo( SHUTDOWN_SCRIPT_VALUE ) ) ); assertThat( handler.getObject(), is( nullValue() ) ); }
protected void startParsing( final Attributes attrs ) throws SAXException { super.startParsing( attrs ); language = attrs.getValue( getUri(), "language" ); script = attrs.getValue( getUri(), "script" ); shutdownScript = attrs.getValue( getUri(), "shutdown-script" ); }
ConfigReadHandler extends AbstractXmlReadHandler { protected void startParsing( final Attributes attrs ) throws SAXException { super.startParsing( attrs ); language = attrs.getValue( getUri(), "language" ); script = attrs.getValue( getUri(), "script" ); shutdownScript = attrs.getValue( getUri(), "shutdown-script" ); } }
ConfigReadHandler extends AbstractXmlReadHandler { protected void startParsing( final Attributes attrs ) throws SAXException { super.startParsing( attrs ); language = attrs.getValue( getUri(), "language" ); script = attrs.getValue( getUri(), "script" ); shutdownScript = attrs.getValue( getUri(), "shutdown-script" ); } ConfigReadHandler(); }
ConfigReadHandler extends AbstractXmlReadHandler { protected void startParsing( final Attributes attrs ) throws SAXException { super.startParsing( attrs ); language = attrs.getValue( getUri(), "language" ); script = attrs.getValue( getUri(), "script" ); shutdownScript = attrs.getValue( getUri(), "shutdown-script" ); } ConfigReadHandler(); String getLanguage(); String getScript(); String getShutdownScript(); Object getObject(); }
ConfigReadHandler extends AbstractXmlReadHandler { protected void startParsing( final Attributes attrs ) throws SAXException { super.startParsing( attrs ); language = attrs.getValue( getUri(), "language" ); script = attrs.getValue( getUri(), "script" ); shutdownScript = attrs.getValue( getUri(), "shutdown-script" ); } ConfigReadHandler(); String getLanguage(); String getScript(); String getShutdownScript(); Object getObject();  }