[Java][webclient] update junit to 5.x (#18741)

* webclient: update junit to 5.x

* update samples

* update samples

* update samples

* update samples

* update samples

* clean up

* update samples

* update pom plugin version

* update tests
This commit is contained in:
William Cheng
2024-05-23 16:27:06 +08:00
committed by GitHub
parent 63d1564637
commit 00c1ceffcd
190 changed files with 2074 additions and 1808 deletions

View File

@@ -14,8 +14,9 @@
package org.openapitools.client.api;
import org.openapitools.client.model.ByteArrayObject;
import org.junit.Test;
import org.junit.Ignore;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.HashMap;
@@ -26,7 +27,7 @@ import java.util.stream.Collectors;
/**
* API tests for DefaultApi
*/
@Ignore
@Disabled
public class DefaultApiTest {
private final DefaultApi api = new DefaultApi();
@@ -39,7 +40,8 @@ public class DefaultApiTest {
*/
@Test
public void nullableArrayTestGetTest() {
List<ByteArrayObject> response = api.nullableArrayTestGet().collectList().block();
// uncomment below to test the function
//List<ByteArrayObject> response = api.nullableArrayTestGet().collectList().block();
// TODO: test validations
}

View File

@@ -23,22 +23,21 @@ import org.openapitools.jackson.nullable.JsonNullable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.openapitools.jackson.nullable.JsonNullable;
import java.util.NoSuchElementException;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for ByteArrayObject
*/
public class ByteArrayObjectTest {
class ByteArrayObjectTest {
private final ByteArrayObject model = new ByteArrayObject();
/**
* Model tests for ByteArrayObject
*/
@Test
public void testByteArrayObject() {
void testByteArrayObject() {
// TODO: test ByteArrayObject
}
@@ -46,7 +45,7 @@ public class ByteArrayObjectTest {
* Test the property 'nullableArray'
*/
@Test
public void nullableArrayTest() {
void nullableArrayTest() {
// TODO: test nullableArray
}
@@ -54,7 +53,7 @@ public class ByteArrayObjectTest {
* Test the property 'normalArray'
*/
@Test
public void normalArrayTest() {
void normalArrayTest() {
// TODO: test normalArray
}
@@ -62,7 +61,7 @@ public class ByteArrayObjectTest {
* Test the property 'nullableString'
*/
@Test
public void nullableStringTest() {
void nullableStringTest() {
// TODO: test nullableString
}
@@ -70,7 +69,7 @@ public class ByteArrayObjectTest {
* Test the property 'stringField'
*/
@Test
public void stringFieldTest() {
void stringFieldTest() {
// TODO: test stringField
}
@@ -78,7 +77,7 @@ public class ByteArrayObjectTest {
* Test the property 'intField'
*/
@Test
public void intFieldTest() {
void intFieldTest() {
// TODO: test intField
}