100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Cleaned up the code
Michael Rademaker395892562e9e
diff --git a/test/src/test/groovy/org/openremote/test/energy/ForecastSolarServiceTest.groovy b/test/src/test/groovy/org/openremote/test/energy/ForecastSolarServiceTest.groovyindex 439510c33..7e0fb4248 100644--- a/test/src/test/groovy/org/openremote/test/energy/ForecastSolarServiceTest.groovy+++ b/test/src/test/groovy/org/openremote/test/energy/ForecastSolarServiceTest.groovy@@ -1,8 +1,6 @@package org.openremote.test.energy-import com.fasterxml.jackson.databind.ObjectMapper-import com.google.common.collect.Lists-import org.junit.Ignore+import org.openremote.manager.asset.AssetProcessingServiceimport org.openremote.manager.asset.AssetStorageServiceimport org.openremote.manager.energy.ForecastSolarService@@ -26,7 +24,6 @@ import java.time.temporal.ChronoUnitimport static org.openremote.manager.energy.ForecastSolarService.FORECAST_SOLAR_API_KEY-@Ignoreclass ForecastSolarServiceTest extends Specification implements ManagerContainerTrait {@Shared@@ -129,8 +126,7 @@ class ForecastSolarServiceTest extends Specification implements ManagerContainergiven: "the container environment is started"def conditions = new PollingConditions(timeout: 10, delay: 0.2)def config = defaultConfig()- config << [(FORECAST_SOLAR_API_KEY): System.getenv(FORECAST_SOLAR_API_KEY)]-+ config << [(FORECAST_SOLAR_API_KEY): "test-key"]if (!ForecastSolarService.resteasyClient.configuration.isRegistered(mockServer)) {ForecastSolarService.resteasyClient.register(mockServer, Integer.MAX_VALUE)