From 1c3e8e27bfbb7a055917513d8f6edd2831437f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20B=C3=BCscher?= Date: Fri, 24 Jul 2015 15:19:20 +0200 Subject: [PATCH] Extended SpanFirstQueryBuilderTest --- .../query/SpanFirstQueryBuilderTest.java | 52 ++++++++++++++++++- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/core/src/test/java/org/elasticsearch/index/query/SpanFirstQueryBuilderTest.java b/core/src/test/java/org/elasticsearch/index/query/SpanFirstQueryBuilderTest.java index 61fb29433e7..385a78e4f31 100644 --- a/core/src/test/java/org/elasticsearch/index/query/SpanFirstQueryBuilderTest.java +++ b/core/src/test/java/org/elasticsearch/index/query/SpanFirstQueryBuilderTest.java @@ -22,10 +22,15 @@ package org.elasticsearch.index.query; import org.apache.lucene.search.Query; import org.apache.lucene.search.spans.SpanFirstQuery; import org.apache.lucene.search.spans.SpanQuery; +import org.elasticsearch.common.xcontent.XContentBuilder; +import org.elasticsearch.common.xcontent.XContentFactory; +import org.elasticsearch.common.xcontent.XContentParser; import org.junit.Test; import java.io.IOException; +import static org.elasticsearch.index.query.QueryBuilders.spanTermQuery; + public class SpanFirstQueryBuilderTest extends BaseQueryTestCase { @Override @@ -54,12 +59,55 @@ public class SpanFirstQueryBuilderTest extends BaseQueryTestCase