@Test public void testInitUseLanguageTranslator(){ rollBackGlobalWorkerUnderTest.init(); verify(languageTranslator).registerDecoder(anyString(),any(RollBackGlobalDecoder.class)); }
@PostConstruct public void init() { languageTranslator.registerDecoder("rollback-global", new RollBackGlobalDecoder()); }
RollBackGlobalWorker extends LocalTransactionWorker<GlobalRollbackOccured, GlobalTransactionLevelRollbacked, ErrorGlobalOccured> { @PostConstruct public void init() { languageTranslator.registerDecoder("rollback-global", new RollBackGlobalDecoder()); } }
RollBackGlobalWorker extends LocalTransactionWorker<GlobalRollbackOccured, GlobalTransactionLevelRollbacked, ErrorGlobalOccured> { @PostConstruct public void init() { languageTranslator.registerDecoder("rollback-global", new RollBackGlobalDecoder()); } RollBackGlobalWorker(); }
RollBackGlobalWorker extends LocalTransactionWorker<GlobalRollbackOccured, GlobalTransactionLevelRollbacked, ErrorGlobalOccured> { @PostConstruct public void init() { languageTranslator.registerDecoder("rollback-global", new RollBackGlobalDecoder()); } RollBackGlobalWorker(); @PostConstruct void init(); @Override @BusinessLocalTransactional LocalTransactionStepDefinition onStart(GlobalRollbackOccured globalRollbackOccured); @Override @SwitchBusinessLocalTransactional LocalTransactionStepDefinition onNext(GlobalTransactionLevelRollbacked globalTransactionLevelRollbacked); @Override @RollBackBusinessLocalTransactional LocalTransactionStepDefinition onError(ErrorGlobalOccured errorGlobalOccured); }
RollBackGlobalWorker extends LocalTransactionWorker<GlobalRollbackOccured, GlobalTransactionLevelRollbacked, ErrorGlobalOccured> { @PostConstruct public void init() { languageTranslator.registerDecoder("rollback-global", new RollBackGlobalDecoder()); } RollBackGlobalWorker(); @PostConstruct void init(); @Override @BusinessLocalTransactional LocalTransactionStepDefinition onStart(GlobalRollbackOccured globalRollbackOccured); @Override @SwitchBusinessLocalTransactional LocalTransactionStepDefinition onNext(GlobalTransactionLevelRollbacked globalTransactionLevelRollbacked); @Override @RollBackBusinessLocalTransactional LocalTransactionStepDefinition onError(ErrorGlobalOccured errorGlobalOccured);  }