// Path: src/test/java/com/indoqa/solr/spatial/corridor/EmbeddedSolrInfrastructureRule.java
// public class EmbeddedSolrInfrastructureRule extends ExternalResource {
// 
//     private SolrClient solrClient;
//     private boolean initialized;
// 
//     public SolrClient getSolrClient() {
//         return this.solrClient;
//     }
// 
//     @Override
//     protected void after() {
//         try {
//             this.solrClient.close();
//         } catch (Exception e) {
//             // ignore
//         }
// 
//         if (this.solrClient instanceof EmbeddedSolrServer) {
//             EmbeddedSolrServer embeddedSolrServer = (EmbeddedSolrServer) this.solrClient;
//             embeddedSolrServer.getCoreContainer().shutdown();
//         }
//     }
// 
//     @Override
//     protected void before() throws Throwable {
//         if (this.initialized) {
//             return;
//         }
// 
//         this.solrClient = EmbeddedSolrServerBuilder.build("file://./target/test-core", "solr/test");
// 
//         this.initialized = true;
//     }
// }
// 
// Path: src/test/java/com/indoqa/solr/spatial/corridor/TestGeoPoint.java
// public class TestGeoPoint {
//     private double lat;
//     private double lon;
// 
//     public TestGeoPoint(double lat, double lon) {
//         this.lat = lat;
//         this.lon = lon;
//     }
// 
//     public static TestGeoPoint geo(double lat, double lon) {
//         return new TestGeoPoint(lat, lon);
//     }
// 
//     @Override
//     public String toString() {
//         return Double.toString(lat) + " " + Double.toString(lon);
//     }
// 
//     public double getLat() {
//         return lat;
//     }
// 
//     public void setLat(double lat) {
//         this.lat = lat;
//     }
// 
//     public double getLon() {
//         return lon;
//     }
// 
//     public void setLon(double lon) {
//         this.lon = lon;
//     }
// }


import org.junit.After;
import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import com.indoqa.solr.spatial.corridor.EmbeddedSolrInfrastructureRule;
import com.indoqa.solr.spatial.corridor.TestGeoPoint;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.response.QueryResponse;
import org.apache.solr.common.SolrInputDocument;
import org.apache.solr.common.SolrInputField;
/*
 * Licensed to the Indoqa Software Design und Beratung GmbH (Indoqa) under
 * one or more contributor license agreements. See the NOTICE file distributed
 * with this work for additional information regarding copyright ownership.
 * Indoqa licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.indoqa.solr.spatial.corridor.direction;




public class TestDirectionPoints {

    private static final String SOLR_FIELD_ID = "id";
    private static final String SOLR_FIELD_GEO_POINTS = "geoPoints";
    private static final String SOLR_FIELD_GEO_DIRECTION = "geoDirection";

    private static final String SOLR_FIELD_LATLON = "latLon";
    private static final String SOLR_FIELD_LATLON_0 = "latLon_0_coordinate";
    private static final String SOLR_FIELD_LATLON_1 = "latLon_1_coordinate";

    private static final String DOCUMENT_ID_1 = "route1";
    private static final String DOCUMENT_ID_2 = "route2";

    @ClassRule
// Path: src/test/java/com/indoqa/solr/spatial/corridor/EmbeddedSolrInfrastructureRule.java
// public class EmbeddedSolrInfrastructureRule extends ExternalResource {
// 
//     private SolrClient solrClient;
//     private boolean initialized;
// 
//     public SolrClient getSolrClient() {
//         return this.solrClient;
//     }
// 
//     @Override
//     protected void after() {
//         try {
//             this.solrClient.close();
//         } catch (Exception e) {
//             // ignore
//         }
// 
//         if (this.solrClient instanceof EmbeddedSolrServer) {
//             EmbeddedSolrServer embeddedSolrServer = (EmbeddedSolrServer) this.solrClient;
//             embeddedSolrServer.getCoreContainer().shutdown();
//         }
//     }
// 
//     @Override
//     protected void before() throws Throwable {
//         if (this.initialized) {
//             return;
//         }
// 
//         this.solrClient = EmbeddedSolrServerBuilder.build("file://./target/test-core", "solr/test");
// 
//         this.initialized = true;
//     }
// }
// 
// Path: src/test/java/com/indoqa/solr/spatial/corridor/TestGeoPoint.java
// public class TestGeoPoint {
//     private double lat;
//     private double lon;
// 
//     public TestGeoPoint(double lat, double lon) {
//         this.lat = lat;
//         this.lon = lon;
//     }
// 
//     public static TestGeoPoint geo(double lat, double lon) {
//         return new TestGeoPoint(lat, lon);
//     }
// 
//     @Override
//     public String toString() {
//         return Double.toString(lat) + " " + Double.toString(lon);
//     }
// 
//     public double getLat() {
//         return lat;
//     }
// 
//     public void setLat(double lat) {
//         this.lat = lat;
//     }
// 
//     public double getLon() {
//         return lon;
//     }
// 
//     public void setLon(double lon) {
//         this.lon = lon;
//     }
// }


// Path: src/test/java/com/indoqa/solr/spatial/corridor/direction/TestDirectionPoints.java
import org.junit.After;
import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import com.indoqa.solr.spatial.corridor.EmbeddedSolrInfrastructureRule;
import com.indoqa.solr.spatial.corridor.TestGeoPoint;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.response.QueryResponse;
import org.apache.solr.common.SolrInputDocument;
import org.apache.solr.common.SolrInputField;

/*
 * Licensed to the Indoqa Software Design und Beratung GmbH (Indoqa) under
 * one or more contributor license agreements. See the NOTICE file distributed
 * with this work for additional information regarding copyright ownership.
 * Indoqa licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.indoqa.solr.spatial.corridor.direction;




public class TestDirectionPoints {

    private static final String SOLR_FIELD_ID = "id";
    private static final String SOLR_FIELD_GEO_POINTS = "geoPoints";
    private static final String SOLR_FIELD_GEO_DIRECTION = "geoDirection";

    private static final String SOLR_FIELD_LATLON = "latLon";
    private static final String SOLR_FIELD_LATLON_0 = "latLon_0_coordinate";
    private static final String SOLR_FIELD_LATLON_1 = "latLon_1_coordinate";

    private static final String DOCUMENT_ID_1 = "route1";
    private static final String DOCUMENT_ID_2 = "route2";

    @ClassRule
    public static EmbeddedSolrInfrastructureRule infrastructureRule = new EmbeddedSolrInfrastructureRule();