Skip to content

Commit

Permalink
Jakarta Validation API support useJakartaEe flag
Browse files Browse the repository at this point in the history
  • Loading branch information
horaceli authored Aug 28, 2024
1 parent 80d1e32 commit f65a717
Show file tree
Hide file tree
Showing 27 changed files with 630 additions and 746 deletions.
18 changes: 18 additions & 0 deletions samples/client/echo_api/java/restclient/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,21 @@ src/main/java/org/openapitools/client/model/Tag.java
src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java
src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java
src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java
src/test/java/org/openapitools/client/api/AuthApiTest.java
src/test/java/org/openapitools/client/api/BodyApiTest.java
src/test/java/org/openapitools/client/api/FormApiTest.java
src/test/java/org/openapitools/client/api/HeaderApiTest.java
src/test/java/org/openapitools/client/api/PathApiTest.java
src/test/java/org/openapitools/client/api/QueryApiTest.java
src/test/java/org/openapitools/client/model/BirdTest.java
src/test/java/org/openapitools/client/model/CategoryTest.java
src/test/java/org/openapitools/client/model/DataQueryTest.java
src/test/java/org/openapitools/client/model/DefaultValueTest.java
src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java
src/test/java/org/openapitools/client/model/PetTest.java
src/test/java/org/openapitools/client/model/QueryTest.java
src/test/java/org/openapitools/client/model/StringEnumRefTest.java
src/test/java/org/openapitools/client/model/TagTest.java
src/test/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarkerTest.java
src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java
src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,50 +13,46 @@

package org.openapitools.client.api;

import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.MatcherAssert.assertThat;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import org.junit.Test;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
* API tests for AuthApi
*/
@Disabled
public class AuthApiTest {

private final AuthApi api = new AuthApi();


/**
* To test HTTP basic authentication
*
* <p>To test HTTP basic authentication
* To test HTTP basic authentication
*/
@Test
public void testAuthHttpBasicTest() {
// given
api.getApiClient().setUsername("test_user");
api.getApiClient().setPassword("test_password");

// when
public void testAuthHttpBasicTest() {
String response = api.testAuthHttpBasic();

assertThat(
response,
containsString("Authorization: Basic dGVzdF91c2VyOnRlc3RfcGFzc3dvcmQ="));
// TODO: test validations
}

/**
* To test HTTP bearer authentication
*
* <p>To test HTTP bearer authentication
* To test HTTP bearer authentication
*/
@Test
public void testAuthHttpBearerTest() {
// given
api.getApiClient().setBearerToken("test_token");

// when
public void testAuthHttpBearerTest() {
String response = api.testAuthHttpBearer();

assertThat(response, containsString("Authorization: Bearer test_token"));
// TODO: test validations
}

}
Loading

0 comments on commit f65a717

Please sign in to comment.