[TEST] check validation error messages in AbstractTermQueryTestCase

This commit is contained in:
javanna 2016-08-03 19:53:08 +02:00 committed by Luca Cavanna
parent 1bcf0722c4
commit 389bd06846
1 changed files with 2 additions and 2 deletions

View File

@ -38,14 +38,14 @@ public abstract class AbstractTermQueryTestCase<QB extends BaseTermQueryBuilder<
}
fail("fieldname cannot be null or empty");
} catch (IllegalArgumentException e) {
// expected
assertEquals("field name is null or empty", e.getMessage());
}
try {
createQueryBuilder("field", null);
fail("value cannot be null or empty");
} catch (IllegalArgumentException e) {
// expected
assertEquals("value cannot be null", e.getMessage());
}
}