Skip to content

Commit 6987448

Browse files
committed
chore(test): remove deprecated junit-platform-runner
1 parent b410e4d commit 6987448

141 files changed

Lines changed: 66 additions & 472 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

client-core/pom.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,6 @@
171171
<groupId>com.squareup.okhttp3</groupId>
172172
<artifactId>mockwebserver</artifactId>
173173
<exclusions>
174-
<exclusion>
175-
<groupId>junit</groupId>
176-
<artifactId>junit</artifactId>
177-
</exclusion>
178174
<exclusion>
179175
<groupId>com.squareup.okhttp3</groupId>
180176
<artifactId>okhttp</artifactId>
@@ -193,12 +189,6 @@
193189
<scope>test</scope>
194190
</dependency>
195191

196-
<dependency>
197-
<groupId>org.junit.platform</groupId>
198-
<artifactId>junit-platform-runner</artifactId>
199-
<scope>test</scope>
200-
</dependency>
201-
202192
<dependency>
203193
<groupId>org.assertj</groupId>
204194
<artifactId>assertj-core</artifactId>

client-core/src/test/java/com/influxdb/exceptions/InfluxExceptionTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,12 @@
3434
import okhttp3.ResponseBody;
3535
import org.assertj.core.api.Assertions;
3636
import org.junit.jupiter.api.Test;
37-
import org.junit.platform.runner.JUnitPlatform;
38-
import org.junit.runner.RunWith;
3937
import retrofit2.HttpException;
4038
import retrofit2.Response;
4139

4240
/**
4341
* @author Jakub Bednar (bednar@github) (02/08/2018 08:58)
4442
*/
45-
@RunWith(JUnitPlatform.class)
4643
class InfluxExceptionTest {
4744

4845
@Test

client-core/src/test/java/com/influxdb/internal/ITUserAgentInterceptor.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,10 @@
3333
import org.assertj.core.api.Assertions;
3434
import org.junit.jupiter.api.BeforeEach;
3535
import org.junit.jupiter.api.Test;
36-
import org.junit.platform.runner.JUnitPlatform;
37-
import org.junit.runner.RunWith;
3836

3937
/**
4038
* @author Jakub Bednar (02/03/2020 10:18)
4139
*/
42-
@RunWith(JUnitPlatform.class)
4340
class ITUserAgentInterceptor extends AbstractMockServerTest {
4441

4542
private OkHttpClient client;

client-core/src/test/java/com/influxdb/internal/QueryAbstractApiTest.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
import java.util.function.BiConsumer;
2828
import javax.annotation.Nonnull;
2929

30-
import com.google.gson.JsonParser;
3130
import com.influxdb.Cancellable;
3231
import com.influxdb.exceptions.InfluxException;
3332
import com.influxdb.query.internal.FluxCsvParser;
3433
import com.influxdb.test.AbstractMockServerTest;
3534

35+
import com.google.gson.JsonParser;
3636
import okhttp3.OkHttpClient;
3737
import okhttp3.RequestBody;
3838
import okhttp3.ResponseBody;
@@ -41,8 +41,6 @@
4141
import org.assertj.core.api.Assertions;
4242
import org.junit.jupiter.api.BeforeEach;
4343
import org.junit.jupiter.api.Test;
44-
import org.junit.platform.runner.JUnitPlatform;
45-
import org.junit.runner.RunWith;
4644
import retrofit2.Call;
4745
import retrofit2.Retrofit;
4846
import retrofit2.http.Body;
@@ -53,7 +51,6 @@
5351
/**
5452
* @author Jakub Bednar (bednar@github) (17/10/2018 09:44)
5553
*/
56-
@RunWith(JUnitPlatform.class)
5754
class QueryAbstractApiTest extends AbstractMockServerTest {
5855

5956
private AbstractQueryApi queryClient;

client-core/src/test/java/com/influxdb/internal/RestClientTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@
5858
import org.assertj.core.api.Assertions;
5959
import org.junit.jupiter.api.BeforeEach;
6060
import org.junit.jupiter.api.Test;
61-
import org.junit.platform.runner.JUnitPlatform;
62-
import org.junit.runner.RunWith;
6361
import retrofit2.Call;
6462
import retrofit2.Response;
6563
import retrofit2.Retrofit;
@@ -70,7 +68,6 @@
7068
/**
7169
* @author Jakub Bednar (bednar@github) (04/10/2018 07:57)
7270
*/
73-
@RunWith(JUnitPlatform.class)
7471
class RestClientTest extends AbstractMockServerTest {
7572

7673
private AbstractRestClient restClient;

client-core/src/test/java/com/influxdb/query/internal/FluxCsvParserTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,12 @@
4444
import org.assertj.core.util.Lists;
4545
import org.junit.jupiter.api.BeforeEach;
4646
import org.junit.jupiter.api.Test;
47-
import org.junit.platform.runner.JUnitPlatform;
48-
import org.junit.runner.RunWith;
4947

5048
import static java.nio.charset.StandardCharsets.UTF_8;
5149

5250
/**
5351
* @author Jakub Bednar (bednar@github) (16/07/2018 12:26)
5452
*/
55-
@RunWith(JUnitPlatform.class)
5653
class FluxCsvParserTest {
5754

5855
private static final Logger LOG = Logger.getLogger(FluxCsvParserTest.class.getName());

client-core/src/test/java/com/influxdb/query/internal/FluxResultMapperTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,10 @@
3030
import org.assertj.core.api.Assertions;
3131
import org.junit.jupiter.api.BeforeEach;
3232
import org.junit.jupiter.api.Test;
33-
import org.junit.platform.runner.JUnitPlatform;
34-
import org.junit.runner.RunWith;
3533

3634
/**
3735
* @author Jakub Bednar (bednar@github) (01/02/2019 09:01)
3836
*/
39-
@RunWith(JUnitPlatform.class)
4037
class FluxResultMapperTest {
4138

4239
private FluxResultMapper mapper;

client-core/src/test/java/com/influxdb/query/internal/FluxStructureSerializationTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@
3535

3636
import org.junit.jupiter.api.Assertions;
3737
import org.junit.jupiter.api.Test;
38-
import org.junit.platform.runner.JUnitPlatform;
39-
import org.junit.runner.RunWith;
4038

41-
@RunWith(JUnitPlatform.class)
4239
class FluxStructureSerializationTest {
4340

4441
@Test

client-kotlin/src/test/kotlin/com/influxdb/client/kotlin/ITInfluxDBClientKotlin.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,11 @@ import com.influxdb.client.domain.HealthCheck
2626
import com.influxdb.exceptions.InfluxException
2727
import org.assertj.core.api.Assertions
2828
import org.junit.jupiter.api.Test
29-
import org.junit.platform.runner.JUnitPlatform
30-
import org.junit.runner.RunWith
3129

3230

3331
/**
3432
* @author Jakub Bednar (bednar@github) (30/10/2018 09:19)
3533
*/
36-
@RunWith(JUnitPlatform::class)
3734
internal class ITInfluxDBClientKotlin : AbstractITInfluxDBClientKotlin() {
3835

3936
@Test

client-kotlin/src/test/kotlin/com/influxdb/client/kotlin/ITQueryKotlinApi.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,13 @@ import kotlinx.coroutines.channels.toList
4646
import kotlinx.coroutines.runBlocking
4747
import org.junit.jupiter.api.BeforeEach
4848
import org.junit.jupiter.api.Test
49-
import org.junit.platform.runner.JUnitPlatform
50-
import org.junit.runner.RunWith
5149
import java.net.ConnectException
5250
import java.time.Instant
5351
import java.util.*
5452

5553
/**
5654
* @author Jakub Bednar (bednar@github) (31/10/2018 07:16)
5755
*/
58-
@RunWith(JUnitPlatform::class)
5956
internal class ITQueryKotlinApi : AbstractITInfluxDBClientKotlin() {
6057

6158
private lateinit var bucket: Bucket

0 commit comments

Comments
 (0)