Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
Signed-off-by: zane-neo <zaniu@amazon.com>
  • Loading branch information
zane-neo committed Mar 3, 2025
1 parent 8ec6f7e commit ef3e22c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,9 @@ private void validateOutput(String errorMsg, Map<String, Object> output, String
List outputList = (List) output.get("output");
assertEquals(errorMsg, 1, outputList.size());
assertTrue(errorMsg, outputList.get(0) instanceof Map);
String typeErrorMsg = errorMsg + " first element in the output list is type of: " + ((Map<?, ?>)outputList.get(0)).get("data").getClass().getName();
String typeErrorMsg = errorMsg
+ " first element in the output list is type of: "
+ ((Map<?, ?>) outputList.get(0)).get("data").getClass().getName();
assertTrue(typeErrorMsg, ((Map<?, ?>) outputList.get(0)).get("data") instanceof List);
assertEquals(errorMsg, ((Map<?, ?>) outputList.get(0)).get("data_type"), dataType);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ private void validateOutput(String errorMsg, Map<String, Object> output, String
List outputList = (List) output.get("output");
assertEquals(errorMsg, 2, outputList.size());
assertTrue(errorMsg, outputList.get(0) instanceof Map);
String typeErrorMsg = errorMsg + " first element in the output list is type of: " + ((Map<?, ?>)outputList.get(0)).get("data").getClass().getName();
String typeErrorMsg = errorMsg
+ " first element in the output list is type of: "
+ ((Map<?, ?>) outputList.get(0)).get("data").getClass().getName();
assertTrue(typeErrorMsg, ((Map<?, ?>) outputList.get(0)).get("data") instanceof List);
assertTrue(errorMsg, ((Map<?, ?>) outputList.get(0)).get("data_type").equals(dataType));
}
Expand Down

0 comments on commit ef3e22c

Please sign in to comment.