diff --git a/modules/swagger-codegen/src/main/resources/Java/libraries/resteasy/pom.mustache b/modules/swagger-codegen/src/main/resources/Java/libraries/resteasy/pom.mustache
index 057d3484d83..4fae33777db 100644
--- a/modules/swagger-codegen/src/main/resources/Java/libraries/resteasy/pom.mustache
+++ b/modules/swagger-codegen/src/main/resources/Java/libraries/resteasy/pom.mustache
@@ -201,10 +201,20 @@
{{/supportJava6}}
- org.jboss.resteasy
- resteasy-jackson-provider
- 3.1.3.Final
-
+ org.jboss.resteasy
+ resteasy-jackson-provider
+ 3.1.3.Final
+
+
+ com.fasterxml.jackson.datatype
+ jackson-datatype-jsr310
+ ${jackson-version}
+
+
+ com.github.joschi.jackson
+ jackson-datatype-threetenbp
+ ${jackson-version}
+
junit
@@ -216,7 +226,7 @@
1.5.15
3.1.3.Final
- 2.8.9
+ 2.6.4
{{^java8}}
2.9.9
{{/java8}}
diff --git a/pom.xml.circleci b/pom.xml.circleci
index 5e658cd2dd1..c06631b8af2 100644
--- a/pom.xml.circleci
+++ b/pom.xml.circleci
@@ -835,6 +835,7 @@
samples/client/petstore/java/resttemplate
samples/client/petstore/java/resttemplate-withXml
samples/client/petstore/java/vertx
+ samples/client/petstore/java/resteasy
samples/client/petstore/ruby
samples/client/petstore/kotlin/
junit
@@ -178,7 +188,7 @@
1.5.15
3.1.3.Final
- 2.8.9
+ 2.6.4
2.9.9
1.0.0
4.12
diff --git a/samples/client/petstore/java/resteasy/src/main/java/io/swagger/client/api/AnotherFakeApi.java b/samples/client/petstore/java/resteasy/src/main/java/io/swagger/client/api/AnotherFakeApi.java
new file mode 100644
index 00000000000..82673918c35
--- /dev/null
+++ b/samples/client/petstore/java/resteasy/src/main/java/io/swagger/client/api/AnotherFakeApi.java
@@ -0,0 +1,78 @@
+package io.swagger.client.api;
+
+import io.swagger.client.ApiException;
+import io.swagger.client.ApiClient;
+import io.swagger.client.Configuration;
+import io.swagger.client.Pair;
+
+import javax.ws.rs.core.GenericType;
+
+import io.swagger.client.model.Client;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+
+public class AnotherFakeApi {
+ private ApiClient apiClient;
+
+ public AnotherFakeApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public AnotherFakeApi(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ public ApiClient getApiClient() {
+ return apiClient;
+ }
+
+ public void setApiClient(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * To test special tags
+ * To test special tags
+ * @param body client model (required)
+ * @return Client
+ * @throws ApiException if fails to make API call
+ */
+ public Client testSpecialTags(Client body) throws ApiException {
+ Object localVarPostBody = body;
+
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ throw new ApiException(400, "Missing the required parameter 'body' when calling testSpecialTags");
+ }
+
+ // create path and map variables
+ String localVarPath = "/another-fake/dummy".replaceAll("\\{format\\}","json");
+
+ // query params
+ List localVarQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+
+
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
+}
diff --git a/samples/client/petstore/java/resteasy/src/test/java/io/swagger/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/resteasy/src/test/java/io/swagger/client/api/AnotherFakeApiTest.java
new file mode 100644
index 00000000000..a5339a392d2
--- /dev/null
+++ b/samples/client/petstore/java/resteasy/src/test/java/io/swagger/client/api/AnotherFakeApiTest.java
@@ -0,0 +1,51 @@
+/*
+ * Swagger Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ * Contact: apiteam@swagger.io
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ */
+
+
+package io.swagger.client.api;
+
+import io.swagger.client.ApiException;
+import io.swagger.client.model.Client;
+import org.junit.Test;
+import org.junit.Ignore;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * API tests for AnotherFakeApi
+ */
+@Ignore
+public class AnotherFakeApiTest {
+
+ private final AnotherFakeApi api = new AnotherFakeApi();
+
+
+ /**
+ * To test special tags
+ *
+ * To test special tags
+ *
+ * @throws ApiException
+ * if the Api call fails
+ */
+ @Test
+ public void testSpecialTagsTest() throws ApiException {
+ Client body = null;
+ Client response = api.testSpecialTags(body);
+
+ // TODO: test validations
+ }
+
+}
diff --git a/samples/client/petstore/java/resteasy/src/test/java/io/swagger/client/api/FakeApiTest.java b/samples/client/petstore/java/resteasy/src/test/java/io/swagger/client/api/FakeApiTest.java
index 25ac4ed8e49..f7a75022194 100644
--- a/samples/client/petstore/java/resteasy/src/test/java/io/swagger/client/api/FakeApiTest.java
+++ b/samples/client/petstore/java/resteasy/src/test/java/io/swagger/client/api/FakeApiTest.java
@@ -16,8 +16,9 @@
import io.swagger.client.ApiException;
import java.math.BigDecimal;
import io.swagger.client.model.Client;
-import org.joda.time.DateTime;
-import org.joda.time.LocalDate;
+import org.threeten.bp.LocalDate;
+import org.threeten.bp.OffsetDateTime;
+import io.swagger.client.model.OuterComposite;
import org.junit.Test;
import org.junit.Ignore;
@@ -35,6 +36,70 @@ public class FakeApiTest {
private final FakeApi api = new FakeApi();
+ /**
+ *
+ *
+ * Test serialization of outer boolean types
+ *
+ * @throws ApiException
+ * if the Api call fails
+ */
+ @Test
+ public void fakeOuterBooleanSerializeTest() throws ApiException {
+ Boolean body = null;
+ Boolean response = api.fakeOuterBooleanSerialize(body);
+
+ // TODO: test validations
+ }
+
+ /**
+ *
+ *
+ * Test serialization of object with outer number type
+ *
+ * @throws ApiException
+ * if the Api call fails
+ */
+ @Test
+ public void fakeOuterCompositeSerializeTest() throws ApiException {
+ OuterComposite body = null;
+ OuterComposite response = api.fakeOuterCompositeSerialize(body);
+
+ // TODO: test validations
+ }
+
+ /**
+ *
+ *
+ * Test serialization of outer number types
+ *
+ * @throws ApiException
+ * if the Api call fails
+ */
+ @Test
+ public void fakeOuterNumberSerializeTest() throws ApiException {
+ BigDecimal body = null;
+ BigDecimal response = api.fakeOuterNumberSerialize(body);
+
+ // TODO: test validations
+ }
+
+ /**
+ *
+ *
+ * Test serialization of outer string types
+ *
+ * @throws ApiException
+ * if the Api call fails
+ */
+ @Test
+ public void fakeOuterStringSerializeTest() throws ApiException {
+ String body = null;
+ String response = api.fakeOuterStringSerialize(body);
+
+ // TODO: test validations
+ }
+
/**
* To test \"client\" model
*
@@ -72,7 +137,7 @@ public void testEndpointParametersTest() throws ApiException {
String string = null;
byte[] binary = null;
LocalDate date = null;
- DateTime dateTime = null;
+ OffsetDateTime dateTime = null;
String password = null;
String paramCallback = null;
api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
@@ -103,4 +168,21 @@ public void testEnumParametersTest() throws ApiException {
// TODO: test validations
}
+ /**
+ * test json serialization of form data
+ *
+ *
+ *
+ * @throws ApiException
+ * if the Api call fails
+ */
+ @Test
+ public void testJsonFormDataTest() throws ApiException {
+ String param = null;
+ String param2 = null;
+ api.testJsonFormData(param, param2);
+
+ // TODO: test validations
+ }
+
}