@Test public void testRetriveOptions() { List<StepOption> compareStepOptions = Arrays.asList( new StepOption( DISABLE_MESSAGE_ID, getString( JmsProducerMeta.class, "JmsDialog.Options.DISABLE_MESSAGE_ID" ), "false" ), new StepOption( DISABLE_MESSAGE_TIMESTAMP, getString( JmsProducerMeta.class, "JmsDialog.Options.DISABLE_MESSAGE_TIMESTAMP" ), "true" ), new StepOption( DELIVERY_MODE, getString( JmsProducerMeta.class, "JmsDialog.Options.DELIVERY_MODE" ), "2" ), new StepOption( PRIORITY, getString( JmsProducerMeta.class, "JmsDialog.Options.PRIORITY" ), "3" ), new StepOption( TIME_TO_LIVE, getString( JmsProducerMeta.class, "JmsDialog.Options.TIME_TO_LIVE" ), "100" ), new StepOption( DELIVERY_DELAY, getString( JmsProducerMeta.class, "JmsDialog.Options.DELIVERY_DELAY" ), "20" ), new StepOption( JMS_CORRELATION_ID, getString( JmsProducerMeta.class, "JmsDialog.Options.JMS_CORRELATION_ID" ), "asdf" ), new StepOption( JMS_TYPE, getString( JmsProducerMeta.class, "JmsDialog.Options.JMS_TYPE" ), "myType" ) ); JmsProducerMeta jmsProducerMeta = new JmsProducerMeta(); jmsProducerMeta.setDisableMessageId( "false" ); jmsProducerMeta.setDisableMessageTimestamp( "true" ); jmsProducerMeta.setDeliveryMode( "2" ); jmsProducerMeta.setPriority( "3" ); jmsProducerMeta.setTimeToLive( "100" ); jmsProducerMeta.setDeliveryDelay( "20" ); jmsProducerMeta.setJmsCorrelationId( "asdf" ); jmsProducerMeta.setJmsType( "myType" ); List<StepOption> stepOptions = jmsProducerMeta.retriveOptions(); assertNotNull( stepOptions ); assertEquals( 8, stepOptions.size() ); assertOptions( compareStepOptions, stepOptions ); }
public List<StepOption> retriveOptions() { return Arrays.asList( new StepOption( DISABLE_MESSAGE_ID, getString( PKG, "JmsDialog.Options.DISABLE_MESSAGE_ID" ), disableMessageId ), new StepOption( DISABLE_MESSAGE_TIMESTAMP, getString( PKG, "JmsDialog.Options.DISABLE_MESSAGE_TIMESTAMP" ), disableMessageTimestamp ), new StepOption( DELIVERY_MODE, getString( PKG, "JmsDialog.Options.DELIVERY_MODE" ), deliveryMode ), new StepOption( PRIORITY, getString( PKG, "JmsDialog.Options.PRIORITY" ), priority ), new StepOption( TIME_TO_LIVE, getString( PKG, "JmsDialog.Options.TIME_TO_LIVE" ), timeToLive ), new StepOption( DELIVERY_DELAY, getString( PKG, "JmsDialog.Options.DELIVERY_DELAY" ), deliveryDelay ), new StepOption( JMS_CORRELATION_ID, getString( PKG, "JmsDialog.Options.JMS_CORRELATION_ID" ), jmsCorrelationId ), new StepOption( JMS_TYPE, getString( PKG, "JmsDialog.Options.JMS_TYPE" ), jmsType ) ); }
JmsProducerMeta extends BaseSerializingMeta implements StepMetaInterface, Cloneable { public List<StepOption> retriveOptions() { return Arrays.asList( new StepOption( DISABLE_MESSAGE_ID, getString( PKG, "JmsDialog.Options.DISABLE_MESSAGE_ID" ), disableMessageId ), new StepOption( DISABLE_MESSAGE_TIMESTAMP, getString( PKG, "JmsDialog.Options.DISABLE_MESSAGE_TIMESTAMP" ), disableMessageTimestamp ), new StepOption( DELIVERY_MODE, getString( PKG, "JmsDialog.Options.DELIVERY_MODE" ), deliveryMode ), new StepOption( PRIORITY, getString( PKG, "JmsDialog.Options.PRIORITY" ), priority ), new StepOption( TIME_TO_LIVE, getString( PKG, "JmsDialog.Options.TIME_TO_LIVE" ), timeToLive ), new StepOption( DELIVERY_DELAY, getString( PKG, "JmsDialog.Options.DELIVERY_DELAY" ), deliveryDelay ), new StepOption( JMS_CORRELATION_ID, getString( PKG, "JmsDialog.Options.JMS_CORRELATION_ID" ), jmsCorrelationId ), new StepOption( JMS_TYPE, getString( PKG, "JmsDialog.Options.JMS_TYPE" ), jmsType ) ); } }
JmsProducerMeta extends BaseSerializingMeta implements StepMetaInterface, Cloneable { public List<StepOption> retriveOptions() { return Arrays.asList( new StepOption( DISABLE_MESSAGE_ID, getString( PKG, "JmsDialog.Options.DISABLE_MESSAGE_ID" ), disableMessageId ), new StepOption( DISABLE_MESSAGE_TIMESTAMP, getString( PKG, "JmsDialog.Options.DISABLE_MESSAGE_TIMESTAMP" ), disableMessageTimestamp ), new StepOption( DELIVERY_MODE, getString( PKG, "JmsDialog.Options.DELIVERY_MODE" ), deliveryMode ), new StepOption( PRIORITY, getString( PKG, "JmsDialog.Options.PRIORITY" ), priority ), new StepOption( TIME_TO_LIVE, getString( PKG, "JmsDialog.Options.TIME_TO_LIVE" ), timeToLive ), new StepOption( DELIVERY_DELAY, getString( PKG, "JmsDialog.Options.DELIVERY_DELAY" ), deliveryDelay ), new StepOption( JMS_CORRELATION_ID, getString( PKG, "JmsDialog.Options.JMS_CORRELATION_ID" ), jmsCorrelationId ), new StepOption( JMS_TYPE, getString( PKG, "JmsDialog.Options.JMS_TYPE" ), jmsType ) ); } @VisibleForTesting  JmsProducerMeta();  JmsProducerMeta( JmsDelegate jmsDelegate ); }
JmsProducerMeta extends BaseSerializingMeta implements StepMetaInterface, Cloneable { public List<StepOption> retriveOptions() { return Arrays.asList( new StepOption( DISABLE_MESSAGE_ID, getString( PKG, "JmsDialog.Options.DISABLE_MESSAGE_ID" ), disableMessageId ), new StepOption( DISABLE_MESSAGE_TIMESTAMP, getString( PKG, "JmsDialog.Options.DISABLE_MESSAGE_TIMESTAMP" ), disableMessageTimestamp ), new StepOption( DELIVERY_MODE, getString( PKG, "JmsDialog.Options.DELIVERY_MODE" ), deliveryMode ), new StepOption( PRIORITY, getString( PKG, "JmsDialog.Options.PRIORITY" ), priority ), new StepOption( TIME_TO_LIVE, getString( PKG, "JmsDialog.Options.TIME_TO_LIVE" ), timeToLive ), new StepOption( DELIVERY_DELAY, getString( PKG, "JmsDialog.Options.DELIVERY_DELAY" ), deliveryDelay ), new StepOption( JMS_CORRELATION_ID, getString( PKG, "JmsDialog.Options.JMS_CORRELATION_ID" ), jmsCorrelationId ), new StepOption( JMS_TYPE, getString( PKG, "JmsDialog.Options.JMS_TYPE" ), jmsType ) ); } @VisibleForTesting  JmsProducerMeta();  JmsProducerMeta( JmsDelegate jmsDelegate ); @SuppressWarnings( "deprecated" ) String getDialogClassName(); @Override void setDefault(); @Override StepInterface getStep( StepMeta stepMeta, StepDataInterface stepDataInterface, int copyNr, TransMeta transMeta,
                                Trans trans ); @Override StepDataInterface getStepData(); @Override void check( List<CheckResultInterface> remarks, TransMeta transMeta,
                     StepMeta stepMeta, RowMetaInterface prev, String[] input, String[] output,
                     RowMetaInterface info, VariableSpace space, Repository repository,
                     IMetaStore metaStore ); String getFieldToSend(); void setFieldToSend( String fieldToSend ); void setPropertyValuesByName( Map<String, String> propertyValuesByName ); Map<String, String> getPropertyValuesByName(); String getDisableMessageId(); void setDisableMessageId( String disableMessageId ); String getDisableMessageTimestamp(); void setDisableMessageTimestamp( String disableMessageTimestamp ); String getDeliveryMode(); void setDeliveryMode( String deliveryMode ); String getPriority(); void setPriority( String priority ); String getTimeToLive(); void setTimeToLive( String timeToLive ); String getDeliveryDelay(); void setDeliveryDelay( String deliveryDelay ); String getJmsCorrelationId(); void setJmsCorrelationId( String jmsCorrelationId ); String getJmsType(); void setJmsType( String jmsType ); List<StepOption> retriveOptions(); }
JmsProducerMeta extends BaseSerializingMeta implements StepMetaInterface, Cloneable { public List<StepOption> retriveOptions() { return Arrays.asList( new StepOption( DISABLE_MESSAGE_ID, getString( PKG, "JmsDialog.Options.DISABLE_MESSAGE_ID" ), disableMessageId ), new StepOption( DISABLE_MESSAGE_TIMESTAMP, getString( PKG, "JmsDialog.Options.DISABLE_MESSAGE_TIMESTAMP" ), disableMessageTimestamp ), new StepOption( DELIVERY_MODE, getString( PKG, "JmsDialog.Options.DELIVERY_MODE" ), deliveryMode ), new StepOption( PRIORITY, getString( PKG, "JmsDialog.Options.PRIORITY" ), priority ), new StepOption( TIME_TO_LIVE, getString( PKG, "JmsDialog.Options.TIME_TO_LIVE" ), timeToLive ), new StepOption( DELIVERY_DELAY, getString( PKG, "JmsDialog.Options.DELIVERY_DELAY" ), deliveryDelay ), new StepOption( JMS_CORRELATION_ID, getString( PKG, "JmsDialog.Options.JMS_CORRELATION_ID" ), jmsCorrelationId ), new StepOption( JMS_TYPE, getString( PKG, "JmsDialog.Options.JMS_TYPE" ), jmsType ) ); } @VisibleForTesting  JmsProducerMeta();  JmsProducerMeta( JmsDelegate jmsDelegate ); @SuppressWarnings( "deprecated" ) String getDialogClassName(); @Override void setDefault(); @Override StepInterface getStep( StepMeta stepMeta, StepDataInterface stepDataInterface, int copyNr, TransMeta transMeta,
                                Trans trans ); @Override StepDataInterface getStepData(); @Override void check( List<CheckResultInterface> remarks, TransMeta transMeta,
                     StepMeta stepMeta, RowMetaInterface prev, String[] input, String[] output,
                     RowMetaInterface info, VariableSpace space, Repository repository,
                     IMetaStore metaStore ); String getFieldToSend(); void setFieldToSend( String fieldToSend ); void setPropertyValuesByName( Map<String, String> propertyValuesByName ); Map<String, String> getPropertyValuesByName(); String getDisableMessageId(); void setDisableMessageId( String disableMessageId ); String getDisableMessageTimestamp(); void setDisableMessageTimestamp( String disableMessageTimestamp ); String getDeliveryMode(); void setDeliveryMode( String deliveryMode ); String getPriority(); void setPriority( String priority ); String getTimeToLive(); void setTimeToLive( String timeToLive ); String getDeliveryDelay(); void setDeliveryDelay( String deliveryDelay ); String getJmsCorrelationId(); void setJmsCorrelationId( String jmsCorrelationId ); String getJmsType(); void setJmsType( String jmsType ); List<StepOption> retriveOptions(); static final String DISABLE_MESSAGE_ID; static final String DISABLE_MESSAGE_TIMESTAMP; static final String DELIVERY_MODE; static final String PRIORITY; static final String TIME_TO_LIVE; static final String DELIVERY_DELAY; static final String JMS_CORRELATION_ID; static final String JMS_TYPE; @InjectionDeep
  final JmsDelegate jmsDelegate; }