[TEST] check validation error messages in AbstractTermQueryTestCase
This commit is contained in:
parent
1bcf0722c4
commit
389bd06846
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue