Skip to content

Commit

Permalink
#160 Fix Test
Browse files Browse the repository at this point in the history
  • Loading branch information
jemacineiras committed Jun 5, 2023
1 parent 80828bc commit 026ae6c
Show file tree
Hide file tree
Showing 71 changed files with 1,154 additions and 1,288 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,12 @@ public class ${schema.className} {
}

<#list schema.fieldObjectList as field>
/**
* Get ${field.baseName?uncap_first}
* @return ${field.baseName?uncap_first}
*/
@Schema(name = "${field.baseName?uncap_first}", required = <#if field.required?has_content && field.required == true>true<#else>false</#if>)
<#if field.dataType.baseType == "array">
public ${field.dataType} get${field.baseName?cap_first}() {
return ${field.baseName?uncap_first};
}

<#if field.required == false>
public void set${field.baseName?cap_first}(${field.dataType} ${field.baseName?uncap_first}) {
this.${field.baseName?uncap_first} = ${field.baseName?uncap_first};
Expand Down Expand Up @@ -358,10 +355,6 @@ public class ${schema.className} {
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
Expand All @@ -384,9 +377,8 @@ public class ${schema.className} {
}
}
</#if>

<#list schema.fieldObjectList as field>
<#if field.required>
<#if field.required>
private void validateRequiredAttributes() {
boolean satisfiedCondition = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public String toString() {
}
}


@Builder
@Jacksonized
private EnumSchemaDTO(EnumSchema enumSchema) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,11 @@ public ApiErrorDTO build() {
}
}

/**
* Get code
* @return code
*/
@Schema(name = "code", required = true)
public Integer getCode() {
return code;
}

/**
* Get message
* @return message
*/
@Schema(name = "message", required = true)
public String getMessage() {
return message;
Expand Down Expand Up @@ -104,18 +96,13 @@ public String toString() {
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}


private void validateRequiredAttributes() {
boolean satisfiedCondition = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ public ApiTestAllOfDTO build() {
}
}

/**
* Get testers
* @return testers
*/

@Schema(name = "testers", required = false)
public List<String> getTesters() {
return testers;
Expand All @@ -75,10 +72,7 @@ public void setTesters(List<String> testers) {
this.testers = testers;
}

/**
* Get testName
* @return testName
*/

@Schema(name = "testName", required = false)
public String getTestName() {
return testName;
Expand Down Expand Up @@ -114,10 +108,7 @@ public String toString() {
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/

private String toIndentedString(Object o) {
if (o == null) {
return "null";
Expand All @@ -126,5 +117,4 @@ private String toIndentedString(Object o) {
}



}
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,13 @@ public ApiTestDTO build() {
}
}

/**
* Get testers
* @return testers
*/

@Schema(name = "testers", required = true)
public List<String> getTesters() {
return testers;
}

/**
* Get testName
* @return testName
*/

@Schema(name = "testName", required = true)
public String getTestName() {
return testName;
Expand Down Expand Up @@ -114,18 +108,14 @@ public String toString() {
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/

private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}


private void validateRequiredAttributes() {
boolean satisfiedCondition = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ public ApiTestInfoDTO build() {
}
}

/**
* Get testers
* @return testers
*/

@Schema(name = "testers", required = false)
public List<String> getTesters() {
return testers;
Expand All @@ -80,10 +77,7 @@ public void setTesters(List<String> testers) {
this.testers = testers;
}

/**
* Get testName
* @return testName
*/

@Schema(name = "testName", required = true)
public String getTestName() {
return testName;
Expand Down Expand Up @@ -116,18 +110,14 @@ public String toString() {
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/

private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}


private void validateRequiredAttributes() {
boolean satisfiedCondition = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ public ApiTestsDTO build() {
}
}

/**
* Get apiTestDTO
* @return apiTestDTO
*/

@Schema(name = "apiTestDTO", required = false)
public ApiTestDTO getApiTestDTO() {
return apiTestDTO;
Expand Down Expand Up @@ -73,10 +70,7 @@ public String toString() {
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/

private String toIndentedString(Object o) {
if (o == null) {
return "null";
Expand All @@ -85,5 +79,4 @@ private String toIndentedString(Object o) {
}



}
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,13 @@ public ApiErrorDTO build() {
}
}

/**
* Get code
* @return code
*/

@Schema(name = "code", required = true)
public Integer getCode() {
return code;
}

/**
* Get message
* @return message
*/

@Schema(name = "message", required = true)
public String getMessage() {
return message;
Expand Down Expand Up @@ -104,18 +98,14 @@ public String toString() {
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/

private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}


private void validateRequiredAttributes() {
boolean satisfiedCondition = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,37 +152,24 @@ public ApiTestDTO build() {
}
}

/**
* Get unionEnum
* @return unionEnum
*/

@Schema(name = "unionEnum", required = true)
public UnionEnum getUnionEnum() {
return unionEnum;
}

/**
* Get name
* @return name
*/

@Schema(name = "name", required = true)
public String getName() {
return name;
}

/**
* Get id
* @return id
*/

@Schema(name = "id", required = true)
public Integer getId() {
return id;
}

/**
* Get unionIntegerEnum
* @return unionIntegerEnum
*/
@Schema(name = "unionIntegerEnum", required = false)
public UnionIntegerEnum getUnionIntegerEnum() {
return unionIntegerEnum;
Expand All @@ -191,10 +178,7 @@ public void setUnionIntegerEnum(UnionIntegerEnum unionIntegerEnum) {
this.unionIntegerEnum = unionIntegerEnum;
}

/**
* Get unionNumberEnum
* @return unionNumberEnum
*/

@Schema(name = "unionNumberEnum", required = false)
public UnionNumberEnum getUnionNumberEnum() {
return unionNumberEnum;
Expand Down Expand Up @@ -233,18 +217,14 @@ public String toString() {
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/

private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}


private void validateRequiredAttributes() {
boolean satisfiedCondition = true;

Expand Down
Loading

0 comments on commit 026ae6c

Please sign in to comment.