[TEST] check validation error messages in IdsQueryBuilderTests

This commit is contained in:
javanna 2016-08-03 19:00:26 +02:00 committed by Luca Cavanna
parent f56333048a
commit 195320f2d6
1 changed files with 2 additions and 2 deletions

View File

@ -98,14 +98,14 @@ public class IdsQueryBuilderTests extends AbstractQueryTestCase<IdsQueryBuilder>
new IdsQueryBuilder((String[])null);
fail("must be not null");
} catch(IllegalArgumentException e) {
//all good
assertEquals("[ids] types cannot be null", e.getMessage());
}
try {
new IdsQueryBuilder().addIds((String[])null);
fail("must be not null");
} catch(IllegalArgumentException e) {
//all good
assertEquals("[ids] ids cannot be null", e.getMessage());
}
}