Mercurial > lada > lada-server
comparison src/test/java/de/intevation/lada/test/ServiceTest.java @ 1040:ea550e9a09a3 schema-update
Updated unit tests to fit the new data model.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 02 Sep 2016 14:03:25 +0200 |
parents | 4b5f5e253cab |
children | 59bdb52bac1c |
comparison
equal
deleted
inserted
replaced
1039:7339dd0f8a67 | 1040:ea550e9a09a3 |
---|---|
162 prot.addInfo("message", content.getString("message")); | 162 prot.addInfo("message", content.getString("message")); |
163 Assert.assertFalse(content.getJsonObject("data").isEmpty()); | 163 Assert.assertFalse(content.getJsonObject("data").isEmpty()); |
164 JsonObject object = content.getJsonObject("data"); | 164 JsonObject object = content.getJsonObject("data"); |
165 for (Entry<String, JsonValue> entry : expected.entrySet()) { | 165 for (Entry<String, JsonValue> entry : expected.entrySet()) { |
166 if (entry.getKey().equals("parentModified") || | 166 if (entry.getKey().equals("parentModified") || |
167 entry.getKey().equals("treeModified")) { | 167 entry.getKey().equals("treeModified") || |
168 entry.getKey().equals("letzteAenderung")) { | |
168 continue; | 169 continue; |
169 } | 170 } |
170 Assert.assertEquals(entry.getValue(), object.get(entry.getKey())); | 171 Assert.assertEquals(entry.getValue(), object.get(entry.getKey())); |
171 } | 172 } |
172 prot.addInfo("object", "equals"); | 173 prot.addInfo("object", "equals"); |