Class GeoBoundingBoxQueryBuilderTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.tests.util.LuceneTestCase

public abstract class GeoBoundingBoxQueryBuilderTestCase extends AbstractQueryTestCase<GeoBoundingBoxQueryBuilder>
  • Constructor Details

    • GeoBoundingBoxQueryBuilderTestCase

      public GeoBoundingBoxQueryBuilderTestCase()
  • Method Details

    • getFieldName

      protected abstract String getFieldName()
    • doCreateTestQueryBuilder

      protected GeoBoundingBoxQueryBuilder doCreateTestQueryBuilder()
      Description copied from class: AbstractQueryTestCase
      Create the query that is being tested
      Specified by:
      doCreateTestQueryBuilder in class AbstractQueryTestCase<GeoBoundingBoxQueryBuilder>
    • testValidationNullFieldname

      public void testValidationNullFieldname()
    • testExceptionOnMissingTypes

      public void testExceptionOnMissingTypes()
    • testBrokenCoordinateCannotBeSet

      public void testBrokenCoordinateCannotBeSet()
    • testBrokenCoordinateCanBeSetWithIgnoreMalformed

      public void testBrokenCoordinateCanBeSetWithIgnoreMalformed()
    • testTopBottomCannotBeFlipped

      public void testTopBottomCannotBeFlipped()
    • testTopBottomCanBeFlippedOnIgnoreMalformed

      public void testTopBottomCanBeFlippedOnIgnoreMalformed()
    • testLeftRightCanBeFlipped

      public void testLeftRightCanBeFlipped()
    • testTopAndBottomCanBeEqual

      public void testTopAndBottomCanBeEqual()
    • testLeftAndRightCanBeEqual

      public void testLeftAndRightCanBeEqual()
    • testTopBottomAndLeftRightCanBeEqual

      public void testTopBottomAndLeftRightCanBeEqual()
    • testStrictnessDefault

      public void testStrictnessDefault()
    • testParsingAndToQueryGeoJSON

      public void testParsingAndToQueryGeoJSON() throws IOException
      Throws:
      IOException
    • testParsingAndToQueryWKT

      public void testParsingAndToQueryWKT() throws IOException
      Throws:
      IOException
    • testParsingAndToQuery1

      public void testParsingAndToQuery1() throws IOException
      Throws:
      IOException
    • testParsingAndToQuery2

      public void testParsingAndToQuery2() throws IOException
      Throws:
      IOException
    • testParsingAndToQuery3

      public void testParsingAndToQuery3() throws IOException
      Throws:
      IOException
    • testParsingAndToQuery4

      public void testParsingAndToQuery4() throws IOException
      Throws:
      IOException
    • testParsingAndToQuery5

      public void testParsingAndToQuery5() throws IOException
      Throws:
      IOException
    • testParsingAndToQuery6

      public void testParsingAndToQuery6() throws IOException
      Throws:
      IOException
    • testFromJson

      public void testFromJson() throws IOException
      Throws:
      IOException
    • testFromWKT

      public void testFromWKT() throws IOException
      Throws:
      IOException
    • testFromGeohash

      public void testFromGeohash() throws IOException
      Throws:
      IOException
    • testMalformedGeohashes

      public void testMalformedGeohashes()
    • testHonorsCoercion

      public void testHonorsCoercion() throws IOException
      Throws:
      IOException
    • testMustRewrite

      public void testMustRewrite() throws IOException
      Description copied from class: AbstractQueryTestCase
      This test ensures that queries that need to be rewritten have dedicated tests. These queries must override this method accordingly.
      Overrides:
      testMustRewrite in class AbstractQueryTestCase<GeoBoundingBoxQueryBuilder>
      Throws:
      IOException
    • testIgnoreUnmapped

      public void testIgnoreUnmapped() throws IOException
      Throws:
      IOException