@@ -0,0 +1,1192 @@
+package org.influxdb;%0D%0A%0D%0Aimport org.influxdb.dto.Pong;%0D%0Aimport org.junit.Assert;%0D%0Aimport org.junit.Test;%0D%0A%0D%0Aimport okhttp3.OkHttpClient;%0D%0A%0D%0A/**%0D%0A * Test the InfluxDB Factory API.%0D%0A *%0D%0A * @author fujian1115 %5Bat%5D gmail.com%0D%0A *%0D%0A */%0D%0Apublic class InfluxDBFactoryTest %7B%0D%0A%09%0D%0A%09/**%0D%0A%09 * Test for a %7B@link InfluxDBFactory #connect(String)%7D.%0D%0A%09 */%0D%0A%09@Test%0D%0A%09public void testCreateInfluxDBInstanceWithoutUserNameAndPassword() %7B%0D%0A%09%09InfluxDB influxDB = InfluxDBFactory.connect(%22http://%22 + TestUtils.getInfluxIP() + %22:%22 + TestUtils.getInfluxPORT(true));%0D%0A%09%09verifyInfluxDBInstance(influxDB);%0D%0A%09%7D%0D%0A%0D%0A%09private void verifyInfluxDBInstance(InfluxDB influxDB) %7B%0D%0A%09%09Assert.assertNotNull(influxDB);%0D%0A%09%09Pong pong = influxDB.ping();%0D%0A%09%09Assert.assertNotNull(pong);%0D%0A%09%09Assert.assertNotEquals(pong.getVersion(), %22unknown%22);%0D%0A%09%7D%0D%0A%0D%0A%09/**%0D%0A%09 * Test for a %7B@link InfluxDBFactory #connect(String, okhttp3.OkHttpClient.Builder)%7D.%0D%0A%09 */%0D%0A%09@Test%0D%0A%09public void testCreateInfluxDBInstanceWithClientAndWithoutUserNameAndPassword() %7B%0D%0A%09%09InfluxDB influxDB = InfluxDBFactory.connect(%22http://%22 + TestUtils.getInfluxIP() + %22:%22 + TestUtils.getInfluxPORT(true), new OkHttpClient.Builder());%0D%0A%09%09verifyInfluxDBInstance(influxDB);%0D%0A%09%7D%0D%0A%7D%0D%0A

add tests for influxdb factory