From 6df3a04f517f532a3bcae26a2067e3e22e2c81c1 Mon Sep 17 00:00:00 2001 From: Dominic Schabel Date: Wed, 16 Dec 2020 17:42:41 +0100 Subject: [PATCH] Removed "time" field from tests Signed-off-by: Dominic Schabel --- .../eclipse/hawkbit/rest/util/JsonBuilder.java | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/hawkbit-rest/hawkbit-rest-core/src/test/java/org/eclipse/hawkbit/rest/util/JsonBuilder.java b/hawkbit-rest/hawkbit-rest-core/src/test/java/org/eclipse/hawkbit/rest/util/JsonBuilder.java index 5dc1581a6..2c537525d 100644 --- a/hawkbit-rest/hawkbit-rest-core/src/test/java/org/eclipse/hawkbit/rest/util/JsonBuilder.java +++ b/hawkbit-rest/hawkbit-rest-core/src/test/java/org/eclipse/hawkbit/rest/util/JsonBuilder.java @@ -225,14 +225,11 @@ public abstract class JsonBuilder { public static String deploymentActionFeedback(final String id, final String execution, final String finished, final Collection messages) throws JSONException { - return new JSONObject().put("id", id).put("time", "20140511T121314") - .put("status", - new JSONObject().put("execution", execution) - .put("result", - new JSONObject().put("finished", finished).put("progress", - new JSONObject().put("cnt", 2).put("of", 5))) - .put("details", new JSONArray(messages))) - .toString(); + return new JSONObject().put("id", id).put("status", new JSONObject().put("execution", execution) + .put("result", + new JSONObject().put("finished", finished).put("progress", + new JSONObject().put("cnt", 2).put("of", 5))) + .put("details", new JSONArray(messages))).toString(); } /** @@ -566,7 +563,7 @@ public abstract class JsonBuilder { public static String cancelActionFeedback(final String id, final String execution, final String message) throws JSONException { - return new JSONObject().put("id", id).put("time", "20140511T121314") + return new JSONObject().put("id", id) .put("status", new JSONObject().put("execution", execution) .put("result", new JSONObject().put("finished", "success"))