@Test public void createNewEmptyMap_Invoked_AllOutputsArePresent() { Map<String, String> map = ResultUtils.createNewEmptyMap(); assertTrue(map.containsKey(io.cloudslang.content.constants.OutputNames.RETURN_RESULT)); assertTrue(map.containsKey(OutputNames.TXT_RESULT)); assertTrue(map.containsKey(OutputNames.XML_RESULT)); assertTrue(map.containsKey(OutputNames.PDF_URL)); assertTrue(map.containsKey(OutputNames.TASK_ID)); assertTrue(map.containsKey(OutputNames.CREDITS)); assertTrue(map.containsKey(OutputNames.STATUS_CODE)); assertTrue(map.containsKey(io.cloudslang.content.constants.OutputNames.EXCEPTION)); assertTrue(map.containsKey(io.cloudslang.content.constants.OutputNames.RETURN_CODE)); assertTrue(map.containsKey(OutputNames.TIMED_OUT)); }
public static Map<String, String> createNewEmptyMap() { Map<String, String> results = new HashMap<>(); results.put(OutputNames.RETURN_RESULT, StringUtils.EMPTY); results.put(OutputNames.TXT_RESULT, StringUtils.EMPTY); results.put(OutputNames.XML_RESULT, StringUtils.EMPTY); results.put(OutputNames.PDF_URL, StringUtils.EMPTY); results.put(OutputNames.TASK_ID, StringUtils.EMPTY); results.put(OutputNames.CREDITS, StringUtils.EMPTY); results.put(OutputNames.STATUS_CODE, StringUtils.EMPTY); results.put(OutputNames.EXCEPTION, StringUtils.EMPTY); results.put(OutputNames.RETURN_CODE, ReturnCodes.FAILURE); results.put(OutputNames.TIMED_OUT, String.valueOf(false)); return results; }
ResultUtils { public static Map<String, String> createNewEmptyMap() { Map<String, String> results = new HashMap<>(); results.put(OutputNames.RETURN_RESULT, StringUtils.EMPTY); results.put(OutputNames.TXT_RESULT, StringUtils.EMPTY); results.put(OutputNames.XML_RESULT, StringUtils.EMPTY); results.put(OutputNames.PDF_URL, StringUtils.EMPTY); results.put(OutputNames.TASK_ID, StringUtils.EMPTY); results.put(OutputNames.CREDITS, StringUtils.EMPTY); results.put(OutputNames.STATUS_CODE, StringUtils.EMPTY); results.put(OutputNames.EXCEPTION, StringUtils.EMPTY); results.put(OutputNames.RETURN_CODE, ReturnCodes.FAILURE); results.put(OutputNames.TIMED_OUT, String.valueOf(false)); return results; } }
ResultUtils { public static Map<String, String> createNewEmptyMap() { Map<String, String> results = new HashMap<>(); results.put(OutputNames.RETURN_RESULT, StringUtils.EMPTY); results.put(OutputNames.TXT_RESULT, StringUtils.EMPTY); results.put(OutputNames.XML_RESULT, StringUtils.EMPTY); results.put(OutputNames.PDF_URL, StringUtils.EMPTY); results.put(OutputNames.TASK_ID, StringUtils.EMPTY); results.put(OutputNames.CREDITS, StringUtils.EMPTY); results.put(OutputNames.STATUS_CODE, StringUtils.EMPTY); results.put(OutputNames.EXCEPTION, StringUtils.EMPTY); results.put(OutputNames.RETURN_CODE, ReturnCodes.FAILURE); results.put(OutputNames.TIMED_OUT, String.valueOf(false)); return results; }  }
ResultUtils { public static Map<String, String> createNewEmptyMap() { Map<String, String> results = new HashMap<>(); results.put(OutputNames.RETURN_RESULT, StringUtils.EMPTY); results.put(OutputNames.TXT_RESULT, StringUtils.EMPTY); results.put(OutputNames.XML_RESULT, StringUtils.EMPTY); results.put(OutputNames.PDF_URL, StringUtils.EMPTY); results.put(OutputNames.TASK_ID, StringUtils.EMPTY); results.put(OutputNames.CREDITS, StringUtils.EMPTY); results.put(OutputNames.STATUS_CODE, StringUtils.EMPTY); results.put(OutputNames.EXCEPTION, StringUtils.EMPTY); results.put(OutputNames.RETURN_CODE, ReturnCodes.FAILURE); results.put(OutputNames.TIMED_OUT, String.valueOf(false)); return results; }  static Map<String, String> createNewEmptyMap(); static Map<String, String> fromException(@NotNull Exception ex); }
ResultUtils { public static Map<String, String> createNewEmptyMap() { Map<String, String> results = new HashMap<>(); results.put(OutputNames.RETURN_RESULT, StringUtils.EMPTY); results.put(OutputNames.TXT_RESULT, StringUtils.EMPTY); results.put(OutputNames.XML_RESULT, StringUtils.EMPTY); results.put(OutputNames.PDF_URL, StringUtils.EMPTY); results.put(OutputNames.TASK_ID, StringUtils.EMPTY); results.put(OutputNames.CREDITS, StringUtils.EMPTY); results.put(OutputNames.STATUS_CODE, StringUtils.EMPTY); results.put(OutputNames.EXCEPTION, StringUtils.EMPTY); results.put(OutputNames.RETURN_CODE, ReturnCodes.FAILURE); results.put(OutputNames.TIMED_OUT, String.valueOf(false)); return results; }  static Map<String, String> createNewEmptyMap(); static Map<String, String> fromException(@NotNull Exception ex);  }