JmsTransactedWorkflow extends StandardWorkflow { public void setStrict(Boolean strict) { this.strict = strict; } JmsTransactedWorkflow(); @Override void doProduce(AdaptrisMessage msg); Boolean getStrict(); void setStrict(Boolean strict); TimeInterval getWaitPeriodAfterRollback(); long waitPeriodAfterRollbackMs(); void setWaitPeriodAfterRollback(TimeInterval interval);  }
@Test public void testSetStrict() throws Exception { JmsTransactedWorkflow workflow = new JmsTransactedWorkflow(); assertEquals(true, workflow.isStrict()); workflow.setStrict(null); assertEquals(true, workflow.isStrict()); assertNull(workflow.getStrict()); workflow.setStrict(Boolean.FALSE); assertEquals(false, workflow.isStrict()); assertEquals(Boolean.FALSE, workflow.getStrict()); workflow.setStrict(Boolean.TRUE); assertEquals(true, workflow.isStrict()); assertEquals(Boolean.TRUE, workflow.getStrict()); }