Fix: get All vote of current citizen now return complete target

This commit is contained in:
2019-10-02 11:12:56 +02:00
parent fc138790ea
commit fad625f204
4 changed files with 51 additions and 12 deletions

View File

@@ -50,7 +50,7 @@ class KtorServerRequestSteps : En {
Then("the response should contain object:") { expected: DataTable ->
expected.asMap<String, String>(String::class.java, String::class.java).forEach { (key, valueExpected) ->
val jsonPrimitive = findJsonElement(key) as? JsonPrimitive ?: fail("\"$key\" element isn't json primitive")
assertEquals(jsonPrimitive.asString, valueExpected)
assertEquals(valueExpected, jsonPrimitive.asString)
}
}