Merge pull request #2490 from guobingkun/better_printing

Integration tests: print expected results in json
This commit is contained in:
Himanshu 2016-02-18 09:36:13 -06:00
commit 5ba8893fa3
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;