@Test public void testMessages() { MessageLogbookEngineHelper messageLogbookEngineHelper = new MessageLogbookEngineHelper(LogbookTypeProcess.HOLDINGSCHEME); String label = messageLogbookEngineHelper.getLabelOp(LogbookTypeProcess.HOLDINGSCHEME.name(), StatusCode.STARTED); assertEquals("HOLDING SCHEME started", label); label = messageLogbookEngineHelper.getLabelOp(STP_STEP, StatusCode.STARTED); assertEquals("HOLDING SCHEME step started", label); label = messageLogbookEngineHelper.getLabelOp(STP_STEP, TRANSACTION, StatusCode.STARTED); assertEquals("HOLDING SCHEME step TRANSACTION started", label); messageLogbookEngineHelper = new MessageLogbookEngineHelper(LogbookTypeProcess.FILINGSCHEME); label = messageLogbookEngineHelper.getLabelOp(STP_STEP, StatusCode.STARTED); assertEquals("step started", label); label = messageLogbookEngineHelper.getLabelOp(STP_STEP, TRANSACTION, StatusCode.STARTED); assertEquals("step TRANSACTION started", label); }
public String getLabelOp(String stepOrHandler, StatusCode code, Object... args) { return VitamLogbookMessages.getFromFullCodeKey(getOutcomeDetail(stepOrHandler, code), args); }
MessageLogbookEngineHelper { public String getLabelOp(String stepOrHandler, StatusCode code, Object... args) { return VitamLogbookMessages.getFromFullCodeKey(getOutcomeDetail(stepOrHandler, code), args); } }
MessageLogbookEngineHelper { public String getLabelOp(String stepOrHandler, StatusCode code, Object... args) { return VitamLogbookMessages.getFromFullCodeKey(getOutcomeDetail(stepOrHandler, code), args); } MessageLogbookEngineHelper(LogbookTypeProcess logbookTypeProcess); }
MessageLogbookEngineHelper { public String getLabelOp(String stepOrHandler, StatusCode code, Object... args) { return VitamLogbookMessages.getFromFullCodeKey(getOutcomeDetail(stepOrHandler, code), args); } MessageLogbookEngineHelper(LogbookTypeProcess logbookTypeProcess); String getLabelOp(String stepOrHandler, StatusCode code, Object... args); String getLabelOp(String stepOrHandler, String transaction, StatusCode code, Object... args); String getOutcomeDetail(String stepOrHandler, StatusCode code); String getOutcomeDetail(String stepOrHandler, String transaction, StatusCode code); }
MessageLogbookEngineHelper { public String getLabelOp(String stepOrHandler, StatusCode code, Object... args) { return VitamLogbookMessages.getFromFullCodeKey(getOutcomeDetail(stepOrHandler, code), args); } MessageLogbookEngineHelper(LogbookTypeProcess logbookTypeProcess); String getLabelOp(String stepOrHandler, StatusCode code, Object... args); String getLabelOp(String stepOrHandler, String transaction, StatusCode code, Object... args); String getOutcomeDetail(String stepOrHandler, StatusCode code); String getOutcomeDetail(String stepOrHandler, String transaction, StatusCode code);  }