diff --git a/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/api/PetApiTest.java b/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/api/PetApiTest.java index bb5630f26822..0cd50290f230 100644 --- a/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/api/PetApiTest.java +++ b/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/api/PetApiTest.java @@ -16,9 +16,9 @@ import java.io.File; import org.openapitools.server.model.ModelApiResponse; import org.openapitools.server.model.Pet; -import org.junit.Test; -import org.junit.Before; -import static org.junit.Assert.*; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.Assertions; import org.eclipse.microprofile.rest.client.RestClientBuilder; @@ -40,7 +40,7 @@ public class PetApiTest { private PetApi client; private String baseUrl = "http://localhost:9080"; - @Before + @BeforeEach public void setup() throws MalformedURLException { client = RestClientBuilder.newBuilder() .baseUrl(new URL(baseUrl)) @@ -62,7 +62,7 @@ public void addPetTest() { // TODO: test validations Pet pet = null; //Uni response = api.addPet(pet); - //assertNotNull(response); + //Assertions.assertNotNull(response); } @@ -81,7 +81,7 @@ public void deletePetTest() { Long petId = null; String apiKey = null; //api.deletePet(petId, apiKey); - //assertNotNull(response); + //Assertions.assertNotNull(response); } @@ -99,7 +99,7 @@ public void findPetsByStatusTest() { // TODO: test validations List status = null; //Uni> response = api.findPetsByStatus(status); - //assertNotNull(response); + //Assertions.assertNotNull(response); } @@ -117,7 +117,7 @@ public void findPetsByTagsTest() { // TODO: test validations List tags = null; //Uni> response = api.findPetsByTags(tags); - //assertNotNull(response); + //Assertions.assertNotNull(response); } @@ -135,7 +135,7 @@ public void getPetByIdTest() { // TODO: test validations Long petId = null; //Uni response = api.getPetById(petId); - //assertNotNull(response); + //Assertions.assertNotNull(response); } @@ -153,7 +153,7 @@ public void updatePetTest() { // TODO: test validations Pet pet = null; //Uni response = api.updatePet(pet); - //assertNotNull(response); + //Assertions.assertNotNull(response); } @@ -173,7 +173,7 @@ public void updatePetWithFormTest() { String name = null; String status = null; //api.updatePetWithForm(petId, name, status); - //assertNotNull(response); + //Assertions.assertNotNull(response); } @@ -193,7 +193,7 @@ public void uploadFileTest() { String additionalMetadata = null; org.apache.cxf.jaxrs.ext.multipart.Attachment _file = null; //Uni response = api.uploadFile(petId, additionalMetadata, _file); - //assertNotNull(response); + //Assertions.assertNotNull(response); } diff --git a/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/api/StoreApiTest.java b/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/api/StoreApiTest.java index 235789386a89..f2a97d3ef444 100644 --- a/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/api/StoreApiTest.java +++ b/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/api/StoreApiTest.java @@ -14,9 +14,9 @@ package org.openapitools.server.api; import org.openapitools.server.model.Order; -import org.junit.Test; -import org.junit.Before; -import static org.junit.Assert.*; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.Assertions; import org.eclipse.microprofile.rest.client.RestClientBuilder; @@ -38,7 +38,7 @@ public class StoreApiTest { private StoreApi client; private String baseUrl = "http://localhost:9080"; - @Before + @BeforeEach public void setup() throws MalformedURLException { client = RestClientBuilder.newBuilder() .baseUrl(new URL(baseUrl)) @@ -60,7 +60,7 @@ public void deleteOrderTest() { // TODO: test validations String orderId = null; //api.deleteOrder(orderId); - //assertNotNull(response); + //Assertions.assertNotNull(response); } @@ -77,7 +77,7 @@ public void deleteOrderTest() { public void getInventoryTest() { // TODO: test validations //Uni> response = api.getInventory(); - //assertNotNull(response); + //Assertions.assertNotNull(response); } @@ -95,7 +95,7 @@ public void getOrderByIdTest() { // TODO: test validations Long orderId = null; //Uni response = api.getOrderById(orderId); - //assertNotNull(response); + //Assertions.assertNotNull(response); } @@ -113,7 +113,7 @@ public void placeOrderTest() { // TODO: test validations Order order = null; //Uni response = api.placeOrder(order); - //assertNotNull(response); + //Assertions.assertNotNull(response); } diff --git a/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/api/UserApiTest.java b/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/api/UserApiTest.java index 7fcdffee4d3f..f2f1c6b8d365 100644 --- a/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/api/UserApiTest.java +++ b/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/api/UserApiTest.java @@ -15,9 +15,9 @@ import java.util.Date; import org.openapitools.server.model.User; -import org.junit.Test; -import org.junit.Before; -import static org.junit.Assert.*; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.Assertions; import org.eclipse.microprofile.rest.client.RestClientBuilder; @@ -39,7 +39,7 @@ public class UserApiTest { private UserApi client; private String baseUrl = "http://localhost:9080"; - @Before + @BeforeEach public void setup() throws MalformedURLException { client = RestClientBuilder.newBuilder() .baseUrl(new URL(baseUrl)) @@ -61,7 +61,7 @@ public void createUserTest() { // TODO: test validations User user = null; //api.createUser(user); - //assertNotNull(response); + //Assertions.assertNotNull(response); } @@ -79,7 +79,7 @@ public void createUsersWithArrayInputTest() { // TODO: test validations List user = null; //api.createUsersWithArrayInput(user); - //assertNotNull(response); + //Assertions.assertNotNull(response); } @@ -97,7 +97,7 @@ public void createUsersWithListInputTest() { // TODO: test validations List user = null; //api.createUsersWithListInput(user); - //assertNotNull(response); + //Assertions.assertNotNull(response); } @@ -115,7 +115,7 @@ public void deleteUserTest() { // TODO: test validations String username = null; //api.deleteUser(username); - //assertNotNull(response); + //Assertions.assertNotNull(response); } @@ -133,7 +133,7 @@ public void getUserByNameTest() { // TODO: test validations String username = null; //Uni response = api.getUserByName(username); - //assertNotNull(response); + //Assertions.assertNotNull(response); } @@ -152,7 +152,7 @@ public void loginUserTest() { String username = null; String password = null; //Uni response = api.loginUser(username, password); - //assertNotNull(response); + //Assertions.assertNotNull(response); } @@ -169,7 +169,7 @@ public void loginUserTest() { public void logoutUserTest() { // TODO: test validations //api.logoutUser(); - //assertNotNull(response); + //Assertions.assertNotNull(response); } @@ -188,7 +188,7 @@ public void updateUserTest() { String username = null; User user = null; //api.updateUser(username, user); - //assertNotNull(response); + //Assertions.assertNotNull(response); } diff --git a/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/CategoryTest.java b/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/CategoryTest.java index e33d5467b646..771a8adfc10f 100644 --- a/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/CategoryTest.java +++ b/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/CategoryTest.java @@ -3,7 +3,7 @@ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -18,21 +18,21 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -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 Category */ -public class CategoryTest { +class CategoryTest { private final Category model = new Category(); /** * Model tests for Category */ @Test - public void testCategory() { + void testCategory() { // TODO: test Category } @@ -40,7 +40,7 @@ public void testCategory() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -48,7 +48,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/ModelApiResponseTest.java b/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/ModelApiResponseTest.java index 645e75d17cf1..cb93c71c01ab 100644 --- a/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/ModelApiResponseTest.java +++ b/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/ModelApiResponseTest.java @@ -3,7 +3,7 @@ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -18,21 +18,21 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -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 ModelApiResponse */ -public class ModelApiResponseTest { +class ModelApiResponseTest { private final ModelApiResponse model = new ModelApiResponse(); /** * Model tests for ModelApiResponse */ @Test - public void testModelApiResponse() { + void testModelApiResponse() { // TODO: test ModelApiResponse } @@ -40,7 +40,7 @@ public void testModelApiResponse() { * Test the property 'code' */ @Test - public void codeTest() { + void codeTest() { // TODO: test code } @@ -48,7 +48,7 @@ public void codeTest() { * Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } @@ -56,7 +56,7 @@ public void typeTest() { * Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } diff --git a/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/OrderTest.java b/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/OrderTest.java index 7cb08aa88b88..7918486f952b 100644 --- a/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/OrderTest.java +++ b/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/OrderTest.java @@ -3,7 +3,7 @@ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Date; -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 Order */ -public class OrderTest { +class OrderTest { private final Order model = new Order(); /** * Model tests for Order */ @Test - public void testOrder() { + void testOrder() { // TODO: test Order } @@ -41,7 +41,7 @@ public void testOrder() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -49,7 +49,7 @@ public void idTest() { * Test the property 'petId' */ @Test - public void petIdTest() { + void petIdTest() { // TODO: test petId } @@ -57,7 +57,7 @@ public void petIdTest() { * Test the property 'quantity' */ @Test - public void quantityTest() { + void quantityTest() { // TODO: test quantity } @@ -65,7 +65,7 @@ public void quantityTest() { * Test the property 'shipDate' */ @Test - public void shipDateTest() { + void shipDateTest() { // TODO: test shipDate } @@ -73,7 +73,7 @@ public void shipDateTest() { * Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } @@ -81,7 +81,7 @@ public void statusTest() { * Test the property 'complete' */ @Test - public void completeTest() { + void completeTest() { // TODO: test complete } diff --git a/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/PetTest.java b/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/PetTest.java index b96abf259b75..ed94deb2281a 100644 --- a/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/PetTest.java +++ b/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/PetTest.java @@ -3,7 +3,7 @@ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -23,20 +23,21 @@ import java.util.List; import org.openapitools.server.model.Category; import org.openapitools.server.model.Tag; -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 Pet */ -public class PetTest { +class PetTest { private final Pet model = new Pet(); /** * Model tests for Pet */ @Test - public void testPet() { + void testPet() { // TODO: test Pet } @@ -44,7 +45,7 @@ public void testPet() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -52,7 +53,7 @@ public void idTest() { * Test the property 'category' */ @Test - public void categoryTest() { + void categoryTest() { // TODO: test category } @@ -60,7 +61,7 @@ public void categoryTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } @@ -68,7 +69,7 @@ public void nameTest() { * Test the property 'photoUrls' */ @Test - public void photoUrlsTest() { + void photoUrlsTest() { // TODO: test photoUrls } @@ -76,7 +77,7 @@ public void photoUrlsTest() { * Test the property 'tags' */ @Test - public void tagsTest() { + void tagsTest() { // TODO: test tags } @@ -84,7 +85,7 @@ public void tagsTest() { * Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } diff --git a/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/TagTest.java b/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/TagTest.java index d8dc0da8adf2..dcb96e16fcae 100644 --- a/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/TagTest.java +++ b/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/TagTest.java @@ -3,7 +3,7 @@ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -18,21 +18,21 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -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 Tag */ -public class TagTest { +class TagTest { private final Tag model = new Tag(); /** * Model tests for Tag */ @Test - public void testTag() { + void testTag() { // TODO: test Tag } @@ -40,7 +40,7 @@ public void testTag() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -48,7 +48,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/UserTest.java b/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/UserTest.java index d541f5f88803..965d74fa03ef 100644 --- a/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/UserTest.java +++ b/samples/server/petstore/java-microprofile/src/test/java/org/openapitools/server/model/UserTest.java @@ -3,7 +3,7 @@ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -18,21 +18,21 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -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 User */ -public class UserTest { +class UserTest { private final User model = new User(); /** * Model tests for User */ @Test - public void testUser() { + void testUser() { // TODO: test User } @@ -40,7 +40,7 @@ public void testUser() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -48,7 +48,7 @@ public void idTest() { * Test the property 'username' */ @Test - public void usernameTest() { + void usernameTest() { // TODO: test username } @@ -56,7 +56,7 @@ public void usernameTest() { * Test the property 'firstName' */ @Test - public void firstNameTest() { + void firstNameTest() { // TODO: test firstName } @@ -64,7 +64,7 @@ public void firstNameTest() { * Test the property 'lastName' */ @Test - public void lastNameTest() { + void lastNameTest() { // TODO: test lastName } @@ -72,7 +72,7 @@ public void lastNameTest() { * Test the property 'email' */ @Test - public void emailTest() { + void emailTest() { // TODO: test email } @@ -80,7 +80,7 @@ public void emailTest() { * Test the property 'password' */ @Test - public void passwordTest() { + void passwordTest() { // TODO: test password } @@ -88,7 +88,7 @@ public void passwordTest() { * Test the property 'phone' */ @Test - public void phoneTest() { + void phoneTest() { // TODO: test phone } @@ -96,7 +96,7 @@ public void phoneTest() { * Test the property 'userStatus' */ @Test - public void userStatusTest() { + void userStatusTest() { // TODO: test userStatus }