@Test( expected = SAXException.class ) public void startParsing_exception_on_missed_directory() throws SAXException { when( testAttributes.getValue( anyString(), eq( "transformation" ) ) ).thenReturn( "TEST_TRANSFORMATION" ); kettleTransFromRepositoryReadHandler.startParsing( testAttributes ); }
protected void startParsing( final Attributes attrs ) throws SAXException { super.startParsing( attrs ); transformation = attrs.getValue( getUri(), "transformation" ); if ( transformation == null ) { throw new ParseException( "Required attribute 'transformation' is not defined" ); } directory = attrs.getValue( getUri(), "directory" ); if ( directory == null ) { throw new ParseException( "Required attribute 'directory' is not defined" ); } }
KettleTransFromRepositoryReadHandler extends AbstractKettleTransformationProducerReadHandler { protected void startParsing( final Attributes attrs ) throws SAXException { super.startParsing( attrs ); transformation = attrs.getValue( getUri(), "transformation" ); if ( transformation == null ) { throw new ParseException( "Required attribute 'transformation' is not defined" ); } directory = attrs.getValue( getUri(), "directory" ); if ( directory == null ) { throw new ParseException( "Required attribute 'directory' is not defined" ); } } }
KettleTransFromRepositoryReadHandler extends AbstractKettleTransformationProducerReadHandler { protected void startParsing( final Attributes attrs ) throws SAXException { super.startParsing( attrs ); transformation = attrs.getValue( getUri(), "transformation" ); if ( transformation == null ) { throw new ParseException( "Required attribute 'transformation' is not defined" ); } directory = attrs.getValue( getUri(), "directory" ); if ( directory == null ) { throw new ParseException( "Required attribute 'directory' is not defined" ); } } KettleTransFromRepositoryReadHandler(); }
KettleTransFromRepositoryReadHandler extends AbstractKettleTransformationProducerReadHandler { protected void startParsing( final Attributes attrs ) throws SAXException { super.startParsing( attrs ); transformation = attrs.getValue( getUri(), "transformation" ); if ( transformation == null ) { throw new ParseException( "Required attribute 'transformation' is not defined" ); } directory = attrs.getValue( getUri(), "directory" ); if ( directory == null ) { throw new ParseException( "Required attribute 'directory' is not defined" ); } } KettleTransFromRepositoryReadHandler(); String getTransformation(); String getDirectory(); KettleTransformationProducer getObject(); }
KettleTransFromRepositoryReadHandler extends AbstractKettleTransformationProducerReadHandler { protected void startParsing( final Attributes attrs ) throws SAXException { super.startParsing( attrs ); transformation = attrs.getValue( getUri(), "transformation" ); if ( transformation == null ) { throw new ParseException( "Required attribute 'transformation' is not defined" ); } directory = attrs.getValue( getUri(), "directory" ); if ( directory == null ) { throw new ParseException( "Required attribute 'directory' is not defined" ); } } KettleTransFromRepositoryReadHandler(); String getTransformation(); String getDirectory(); KettleTransformationProducer getObject();  }