@@ -0,0 +1,2855 @@
+/***************************************************************************%0A * Copyright 2015 Kieker Project (http://kieker-monitoring.net)%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A ***************************************************************************/%0A%0Apackage kieker.monitoring.writer.influxdb;%0A%0Aimport org.junit.Test;%0A%0Aimport kieker.common.configuration.Configuration;%0Aimport kieker.common.record.controlflow.OperationExecutionRecord;%0A%0A/**%0A * @author tp%0A *%0A * @since 1.13%0A */%0Apublic class InfluxDBWriterFailingTest %7B%0A%0A%09public InfluxDBWriterFailingTest() %7B%0A%09%09super();%0A%09%7D%0A%0A%09/**%0A%09 * Test method for %7B@link kieker.monitoring.writer.influxdb.InfluxDBWriter#connectToInfluxDB()%7D.%0A%09 */%0A%09@Test(expected = RuntimeException.class)%0A%09public void testConnectToInfluxDB() %7B%0A%09%09final Configuration configuration = new Configuration();%0A%09%09configuration.setProperty(InfluxDBWriter.CONFIG_PROPERTY_DB_URL, %22http://localhost%22);%0A%09%09configuration.setProperty(InfluxDBWriter.CONFIG_PROPERTY_DB_PORT, %2280%22);%0A%09%09configuration.setProperty(InfluxDBWriter.CONFIG_PROPERTY_DB_USERNAME, %22root%22);%0A%09%09configuration.setProperty(InfluxDBWriter.CONFIG_PROPERTY_DB_PASSWORD, %22root%22);%0A%09%09configuration.setProperty(InfluxDBWriter.CONFIG_PROPERTY_DB_NAME, %22kieker%22);%0A%09%09final InfluxDBWriter influxDBWriter = new InfluxDBWriter(configuration);%0A%09%09influxDBWriter.connectToInfluxDB();%0A%09%7D%0A%0A%09/**%0A%09 * Test method for %7B@link kieker.monitoring.writer.influxdb.InfluxDBWriter#writeMonitoringRecord(kieker.common.record.IMonitoringRecord)%7D.%0A%09 */%0A%09@Test(expected = RuntimeException.class)%0A%09public void testWriteMonitoringRecord() %7B%0A%09%09final Configuration configuration = new Configuration();%0A%09%09configuration.setProperty(InfluxDBWriter.CONFIG_PROPERTY_DB_URL, %22http://localhost%22);%0A%09%09configuration.setProperty(InfluxDBWriter.CONFIG_PROPERTY_DB_PORT, %2280%22);%0A%09%09configuration.setProperty(InfluxDBWriter.CONFIG_PROPERTY_DB_USERNAME, %22root%22);%0A%09%09configuration.setProperty(InfluxDBWriter.CONFIG_PROPERTY_DB_PASSWORD, %22root%22);%0A%09%09configuration.setProperty(InfluxDBWriter.CONFIG_PROPERTY_DB_NAME, %22kieker%22);%0A%09%09final InfluxDBWriter influxDBWriter = new InfluxDBWriter(configuration);%0A%09%09final OperationExecutionRecord operationExecutionRecord = new OperationExecutionRecord(%22signature%22, %22sessionId%22, 1, 1, 2, %22hostname%22, 1, 1);%0A%09%09influxDBWriter.writeMonitoringRecord(operationExecutionRecord);%0A%09%7D%0A%0A%7D%0A

Add test for InfluxDB failing