Integration tests: print expected results in json format

This commit is contained in:
Bingkun Guo 2016-02-17 22:23:39 -06:00
parent 083f019a48
commit 72ab621c2a
1 changed files with 3 additions and 2 deletions

View File

@ -96,8 +96,9 @@ public class TestQueryHelper
List<Map<String, Object>> result = queryClient.query(url, queryWithResult.getQuery());
if (!QueryResultVerifier.compareResults(result, queryWithResult.getExpectedResults())) {
LOG.error(
"Failed while executing %s actualResults : %s",
queryWithResult,
"Failed while executing query %s \n expectedResults: %s \n actualResults : %s",
queryWithResult.getQuery(),
jsonMapper.writeValueAsString(queryWithResult.getExpectedResults()),
jsonMapper.writeValueAsString(result)
);
failed = true;