From 195320f2d6b1ace98fdedca2db6f7be50c1b2815 Mon Sep 17 00:00:00 2001 From: javanna Date: Wed, 3 Aug 2016 19:00:26 +0200 Subject: [PATCH] [TEST] check validation error messages in IdsQueryBuilderTests --- .../org/elasticsearch/index/query/IdsQueryBuilderTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/test/java/org/elasticsearch/index/query/IdsQueryBuilderTests.java b/core/src/test/java/org/elasticsearch/index/query/IdsQueryBuilderTests.java index 4ad90edc8cb..1793623ce2f 100644 --- a/core/src/test/java/org/elasticsearch/index/query/IdsQueryBuilderTests.java +++ b/core/src/test/java/org/elasticsearch/index/query/IdsQueryBuilderTests.java @@ -98,14 +98,14 @@ public class IdsQueryBuilderTests extends AbstractQueryTestCase 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()); } }