@Test public void testInit() { meta.setDisableMessageId( "true" ); meta.setDisableMessageTimestamp( "false" ); meta.setDeliveryMode( "1" ); meta.setPriority( "2" ); meta.setTimeToLive( "3" ); meta.setDeliveryDelay( "4" ); meta.setJmsCorrelationId( "ASDF" ); meta.setJmsType( "JMSType" ); assertTrue( step.init( meta, data ) ); meta.setDisableMessageTimestamp( "asdf" ); meta.setDisableMessageId( "asdf" ); meta.setDeliveryMode( "asdf" ); meta.setPriority( "asdf" ); meta.setPriority( "asdf" ); meta.setTimeToLive( "asdf" ); assertFalse( step.init( meta, data ) ); }
@Override public boolean init( StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface ) { boolean isInitalized = super.init( stepMetaInterface, stepDataInterface ); meta = ( (JmsProducerMeta) stepMetaInterface ); List<CheckResultInterface> remarks = new ArrayList<>(); meta.check( remarks, getTransMeta(), meta.getParentStepMeta(), null, null, null, null, variables, getRepository(), getMetaStore() ); boolean errorsPresent = remarks.stream().filter( result -> result.getType() == CheckResultInterface.TYPE_RESULT_ERROR ) .peek( result -> logError( result.getText() ) ) .count() > 0; if ( errorsPresent ) { return false; } return isInitalized; }
JmsProducer extends BaseStep implements StepInterface { @Override public boolean init( StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface ) { boolean isInitalized = super.init( stepMetaInterface, stepDataInterface ); meta = ( (JmsProducerMeta) stepMetaInterface ); List<CheckResultInterface> remarks = new ArrayList<>(); meta.check( remarks, getTransMeta(), meta.getParentStepMeta(), null, null, null, null, variables, getRepository(), getMetaStore() ); boolean errorsPresent = remarks.stream().filter( result -> result.getType() == CheckResultInterface.TYPE_RESULT_ERROR ) .peek( result -> logError( result.getText() ) ) .count() > 0; if ( errorsPresent ) { return false; } return isInitalized; } }
JmsProducer extends BaseStep implements StepInterface { @Override public boolean init( StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface ) { boolean isInitalized = super.init( stepMetaInterface, stepDataInterface ); meta = ( (JmsProducerMeta) stepMetaInterface ); List<CheckResultInterface> remarks = new ArrayList<>(); meta.check( remarks, getTransMeta(), meta.getParentStepMeta(), null, null, null, null, variables, getRepository(), getMetaStore() ); boolean errorsPresent = remarks.stream().filter( result -> result.getType() == CheckResultInterface.TYPE_RESULT_ERROR ) .peek( result -> logError( result.getText() ) ) .count() > 0; if ( errorsPresent ) { return false; } return isInitalized; } JmsProducer( StepMeta stepMeta,
                      StepDataInterface stepDataInterface, int copyNr,
                      TransMeta transMeta, Trans trans ); }
JmsProducer extends BaseStep implements StepInterface { @Override public boolean init( StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface ) { boolean isInitalized = super.init( stepMetaInterface, stepDataInterface ); meta = ( (JmsProducerMeta) stepMetaInterface ); List<CheckResultInterface> remarks = new ArrayList<>(); meta.check( remarks, getTransMeta(), meta.getParentStepMeta(), null, null, null, null, variables, getRepository(), getMetaStore() ); boolean errorsPresent = remarks.stream().filter( result -> result.getType() == CheckResultInterface.TYPE_RESULT_ERROR ) .peek( result -> logError( result.getText() ) ) .count() > 0; if ( errorsPresent ) { return false; } return isInitalized; } JmsProducer( StepMeta stepMeta,
                      StepDataInterface stepDataInterface, int copyNr,
                      TransMeta transMeta, Trans trans ); @Override boolean init( StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface ); @Override boolean processRow( StepMetaInterface smi, StepDataInterface sdi ); }
JmsProducer extends BaseStep implements StepInterface { @Override public boolean init( StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface ) { boolean isInitalized = super.init( stepMetaInterface, stepDataInterface ); meta = ( (JmsProducerMeta) stepMetaInterface ); List<CheckResultInterface> remarks = new ArrayList<>(); meta.check( remarks, getTransMeta(), meta.getParentStepMeta(), null, null, null, null, variables, getRepository(), getMetaStore() ); boolean errorsPresent = remarks.stream().filter( result -> result.getType() == CheckResultInterface.TYPE_RESULT_ERROR ) .peek( result -> logError( result.getText() ) ) .count() > 0; if ( errorsPresent ) { return false; } return isInitalized; } JmsProducer( StepMeta stepMeta,
                      StepDataInterface stepDataInterface, int copyNr,
                      TransMeta transMeta, Trans trans ); @Override boolean init( StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface ); @Override boolean processRow( StepMetaInterface smi, StepDataInterface sdi );  }