@Test public void testLocaleUnix() { result = offsetTimeBy.execute("1000", "12", "unix", "US"); assertEquals(SUCCESS, result.get(RETURN_CODE)); assertFalse(result.get(RETURN_RESULT).isEmpty()); assertEquals(result.get(RETURN_RESULT), "1012"); }
@Action(name = "Offset Time By", description = "Changes the time represented by a date by the specified number of seconds", outputs = { @Output(RETURN_RESULT), @Output(RETURN_CODE), @Output(EXCEPTION) }, responses = { @Response(text = SUCCESS, field = RETURN_CODE, value = ReturnCodes.SUCCESS, matchType = COMPARE_EQUAL, responseType = RESOLVED), @Response(text = FAILURE, field = RETURN_CODE, value = ReturnCodes.FAILURE, matchType = COMPARE_EQUAL, responseType = ERROR, isOnFail = true)}) public Map<String, String> execute( @Param(value = LOCALE_DATE, required = true) String date, @Param(value = LOCALE_OFFSET, required = true) String offset, @Param(value = LOCALE_LANG) String localeLang, @Param(value = LOCALE_COUNTRY) String localeCountry) { try { return OutputUtilities.getSuccessResultsMap(DateTimeService.offsetTimeBy(date, offset, localeLang, localeCountry)); } catch (Exception exception) { return OutputUtilities.getFailureResultsMap(exception); } }
OffsetTimeBy { @Action(name = "Offset Time By", description = "Changes the time represented by a date by the specified number of seconds", outputs = { @Output(RETURN_RESULT), @Output(RETURN_CODE), @Output(EXCEPTION) }, responses = { @Response(text = SUCCESS, field = RETURN_CODE, value = ReturnCodes.SUCCESS, matchType = COMPARE_EQUAL, responseType = RESOLVED), @Response(text = FAILURE, field = RETURN_CODE, value = ReturnCodes.FAILURE, matchType = COMPARE_EQUAL, responseType = ERROR, isOnFail = true)}) public Map<String, String> execute( @Param(value = LOCALE_DATE, required = true) String date, @Param(value = LOCALE_OFFSET, required = true) String offset, @Param(value = LOCALE_LANG) String localeLang, @Param(value = LOCALE_COUNTRY) String localeCountry) { try { return OutputUtilities.getSuccessResultsMap(DateTimeService.offsetTimeBy(date, offset, localeLang, localeCountry)); } catch (Exception exception) { return OutputUtilities.getFailureResultsMap(exception); } } }
OffsetTimeBy { @Action(name = "Offset Time By", description = "Changes the time represented by a date by the specified number of seconds", outputs = { @Output(RETURN_RESULT), @Output(RETURN_CODE), @Output(EXCEPTION) }, responses = { @Response(text = SUCCESS, field = RETURN_CODE, value = ReturnCodes.SUCCESS, matchType = COMPARE_EQUAL, responseType = RESOLVED), @Response(text = FAILURE, field = RETURN_CODE, value = ReturnCodes.FAILURE, matchType = COMPARE_EQUAL, responseType = ERROR, isOnFail = true)}) public Map<String, String> execute( @Param(value = LOCALE_DATE, required = true) String date, @Param(value = LOCALE_OFFSET, required = true) String offset, @Param(value = LOCALE_LANG) String localeLang, @Param(value = LOCALE_COUNTRY) String localeCountry) { try { return OutputUtilities.getSuccessResultsMap(DateTimeService.offsetTimeBy(date, offset, localeLang, localeCountry)); } catch (Exception exception) { return OutputUtilities.getFailureResultsMap(exception); } }  }
OffsetTimeBy { @Action(name = "Offset Time By", description = "Changes the time represented by a date by the specified number of seconds", outputs = { @Output(RETURN_RESULT), @Output(RETURN_CODE), @Output(EXCEPTION) }, responses = { @Response(text = SUCCESS, field = RETURN_CODE, value = ReturnCodes.SUCCESS, matchType = COMPARE_EQUAL, responseType = RESOLVED), @Response(text = FAILURE, field = RETURN_CODE, value = ReturnCodes.FAILURE, matchType = COMPARE_EQUAL, responseType = ERROR, isOnFail = true)}) public Map<String, String> execute( @Param(value = LOCALE_DATE, required = true) String date, @Param(value = LOCALE_OFFSET, required = true) String offset, @Param(value = LOCALE_LANG) String localeLang, @Param(value = LOCALE_COUNTRY) String localeCountry) { try { return OutputUtilities.getSuccessResultsMap(DateTimeService.offsetTimeBy(date, offset, localeLang, localeCountry)); } catch (Exception exception) { return OutputUtilities.getFailureResultsMap(exception); } }  @Action(name = "Offset Time By", description = "Changes the time represented by a date by the specified number of seconds", outputs = { @Output(RETURN_RESULT), @Output(RETURN_CODE), @Output(EXCEPTION) }, responses = { @Response(text = SUCCESS, field = RETURN_CODE, value = ReturnCodes.SUCCESS, matchType = COMPARE_EQUAL, responseType = RESOLVED), @Response(text = FAILURE, field = RETURN_CODE, value = ReturnCodes.FAILURE, matchType = COMPARE_EQUAL, responseType = ERROR, isOnFail = true)}) Map<String, String> execute(
            @Param(value = LOCALE_DATE, required = true) String date,
            @Param(value = LOCALE_OFFSET, required = true) String offset,
            @Param(value = LOCALE_LANG) String localeLang,
            @Param(value = LOCALE_COUNTRY) String localeCountry); }
OffsetTimeBy { @Action(name = "Offset Time By", description = "Changes the time represented by a date by the specified number of seconds", outputs = { @Output(RETURN_RESULT), @Output(RETURN_CODE), @Output(EXCEPTION) }, responses = { @Response(text = SUCCESS, field = RETURN_CODE, value = ReturnCodes.SUCCESS, matchType = COMPARE_EQUAL, responseType = RESOLVED), @Response(text = FAILURE, field = RETURN_CODE, value = ReturnCodes.FAILURE, matchType = COMPARE_EQUAL, responseType = ERROR, isOnFail = true)}) public Map<String, String> execute( @Param(value = LOCALE_DATE, required = true) String date, @Param(value = LOCALE_OFFSET, required = true) String offset, @Param(value = LOCALE_LANG) String localeLang, @Param(value = LOCALE_COUNTRY) String localeCountry) { try { return OutputUtilities.getSuccessResultsMap(DateTimeService.offsetTimeBy(date, offset, localeLang, localeCountry)); } catch (Exception exception) { return OutputUtilities.getFailureResultsMap(exception); } }  @Action(name = "Offset Time By", description = "Changes the time represented by a date by the specified number of seconds", outputs = { @Output(RETURN_RESULT), @Output(RETURN_CODE), @Output(EXCEPTION) }, responses = { @Response(text = SUCCESS, field = RETURN_CODE, value = ReturnCodes.SUCCESS, matchType = COMPARE_EQUAL, responseType = RESOLVED), @Response(text = FAILURE, field = RETURN_CODE, value = ReturnCodes.FAILURE, matchType = COMPARE_EQUAL, responseType = ERROR, isOnFail = true)}) Map<String, String> execute(
            @Param(value = LOCALE_DATE, required = true) String date,
            @Param(value = LOCALE_OFFSET, required = true) String offset,
            @Param(value = LOCALE_LANG) String localeLang,
            @Param(value = LOCALE_COUNTRY) String localeCountry);  }