/** * Copyright (C) 2012-2017 52°North Initiative for Geospatial Open Source * Software GmbH * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation. * * If the program is linked with libraries which are licensed under one of * the following licenses, the combination of the program with the linked * library is not considered a "derivative work" of the program: * * - Apache License, version 2.0 * - Apache Software License, version 1.0 * - GNU Lesser General Public License, version 3 * - Mozilla Public License, versions 1.0, 1.1 and 2.0 * - Common Development and Distribution License (CDDL), version 1.0 * * Therefore the distribution of the program linked with libraries licensed * under the aforementioned licenses, is permitted by the copyright holders * if the distribution is compliant with both the GNU General Public * License version 2 and the aforementioned licenses. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * Public License for more details. */ package org.n52.sos.service.it; import org.junit.AfterClass; import org.junit.Rule; import org.junit.runner.RunWith; import org.n52.sos.config.SettingsManager; import org.n52.sos.service.SosService; /** * TODO JavaDoc * * @author Christian Autermann <c.autermann@52north.org> * * @since 4.0.0 */ @RunWith(ComplianceSuiteRunner.class) public class SOS40ComplianceTestSuite extends MockHttpExecutor implements ComplianceSuite { private final H2Database datasource = new H2Database(); public SOS40ComplianceTestSuite() { super(SosService.class); } @Rule public H2Database getDatasource() { return datasource; } @Override public Client kvp() { return get("/kvp"); } @Override public Client pox() { return post("/pox"); } @Override public Client soap() { return post("/soap"); } @Override public RequestExecutor getExecutor() { return this; } @Override public Class<?>[] getTests() { return new Class<?>[] { org.n52.sos.service.it.v2.soap.DeleteObservationTest.class, org.n52.sos.service.it.v2.soap.DeleteSensorTest.class, org.n52.sos.service.it.v2.soap.DescribeSensorTest.class, org.n52.sos.service.it.v2.soap.GetCapabilitiesTest.class, org.n52.sos.service.it.v2.soap.GetDataAvailabilityTest.class, org.n52.sos.service.it.v2.soap.GetFeatureOfInterestTest.class, org.n52.sos.service.it.v2.soap.GetObservationByIdTest.class, org.n52.sos.service.it.v2.soap.GetObservationTest.class, org.n52.sos.service.it.v2.soap.GetResultTemplateTest.class, org.n52.sos.service.it.v2.soap.GetResultTest.class, org.n52.sos.service.it.v2.soap.InsertObservationTest.class, org.n52.sos.service.it.v2.soap.InsertResultTemplateTest.class, org.n52.sos.service.it.v2.soap.InsertResultTest.class, org.n52.sos.service.it.v2.soap.InsertSensorTest.class, org.n52.sos.service.it.v2.soap.UpdateSensorDescriptionTest.class, org.n52.sos.service.it.v2.kvp.DeleteObservationTest.class, org.n52.sos.service.it.v2.kvp.DeleteSensorTest.class, org.n52.sos.service.it.v2.kvp.DescribeSensorTest.class, org.n52.sos.service.it.v2.kvp.GetCapabilitiesTest.class, org.n52.sos.service.it.v2.kvp.GetDataAvailabilityTest.class, org.n52.sos.service.it.v2.kvp.GetFeatureOfInterestTest.class, org.n52.sos.service.it.v2.kvp.GetObservationByIdTest.class, org.n52.sos.service.it.v2.kvp.GetObservationTest.class, org.n52.sos.service.it.v2.kvp.GetResultTemplateTest.class, org.n52.sos.service.it.v2.kvp.GetResultTest.class, org.n52.sos.service.it.v2.rest.CapabilitiesTest.class, org.n52.sos.service.it.v2.rest.OfferingsTest.class, org.n52.sos.service.it.v2.rest.SensorsTest.class, org.n52.sos.service.it.v2.rest.ServiceEndpointTest.class, org.n52.sos.service.it.ContentNegotiationEndpointTest.class }; } @AfterClass public static void cleanup() { SettingsManager.getInstance().cleanup(); } }