forked from loafle/openapi-generator-original
[java][okhttp] Add spotless maven, gradle plugin (#10785)
* add spotless maven plugin * add spotless gradle plug-in * add spotless version
This commit is contained in:
parent
369133a03e
commit
a73363fd53
@ -3,6 +3,7 @@ apply plugin: 'eclipse'
|
|||||||
{{#sourceFolder}}
|
{{#sourceFolder}}
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
{{/sourceFolder}}
|
{{/sourceFolder}}
|
||||||
|
apply plugin: 'com.diffplug.spotless'
|
||||||
|
|
||||||
group = '{{groupId}}'
|
group = '{{groupId}}'
|
||||||
version = '{{artifactVersion}}'
|
version = '{{artifactVersion}}'
|
||||||
@ -14,6 +15,7 @@ buildscript {
|
|||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.3.+'
|
classpath 'com.android.tools.build:gradle:2.3.+'
|
||||||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
||||||
|
classpath 'com.diffplug.spotless:spotless-plugin-gradle:5.17.1'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -138,3 +140,27 @@ dependencies {
|
|||||||
javadoc {
|
javadoc {
|
||||||
options.tags = [ "http.response.details:a:Http Response Details" ]
|
options.tags = [ "http.response.details:a:Http Response Details" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
// To apply changes directly to the file, run `gradlew spotlessApply`
|
||||||
|
// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle
|
||||||
|
spotless {
|
||||||
|
format 'misc', {
|
||||||
|
// define the files (e.g. '*.gradle', '*.md') to apply `misc` to
|
||||||
|
target '.gitignore'
|
||||||
|
|
||||||
|
// define the steps to apply to those files
|
||||||
|
trimTrailingWhitespace()
|
||||||
|
indentWithSpaces() // Takes an integer argument if you don't like 4
|
||||||
|
endWithNewline()
|
||||||
|
}
|
||||||
|
java {
|
||||||
|
// don't need to set target, it is inferred from java
|
||||||
|
|
||||||
|
// apply a specific flavor of google-java-format
|
||||||
|
googleJavaFormat('1.8').aosp().reflowLongStrings()
|
||||||
|
|
||||||
|
removeUnusedImports()
|
||||||
|
importOrder()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -186,6 +186,48 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<!-- Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
To apply changes directly to the file, run `mvn spotless:apply`
|
||||||
|
Ref: https://github.com/diffplug/spotless/tree/main/plugin-maven
|
||||||
|
-->
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.diffplug.spotless</groupId>
|
||||||
|
<artifactId>spotless-maven-plugin</artifactId>
|
||||||
|
<version>${spotless.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<formats>
|
||||||
|
<!-- you can define as many formats as you want, each is independent -->
|
||||||
|
<format>
|
||||||
|
<!-- define the files to apply to -->
|
||||||
|
<includes>
|
||||||
|
<include>.gitignore</include>
|
||||||
|
</includes>
|
||||||
|
<!-- define the steps to apply to those files -->
|
||||||
|
<trimTrailingWhitespace/>
|
||||||
|
<endWithNewline/>
|
||||||
|
<indent>
|
||||||
|
<tabs>true</tabs>
|
||||||
|
<spacesPerTab>4</spacesPerTab>
|
||||||
|
</indent>
|
||||||
|
</format>
|
||||||
|
</formats>
|
||||||
|
<!-- define a language-specific format -->
|
||||||
|
<java>
|
||||||
|
<!-- no need to specify files, inferred automatically, but you can if you want -->
|
||||||
|
|
||||||
|
<!-- apply a specific flavor of google-java-format and reflow long strings -->
|
||||||
|
<googleJavaFormat>
|
||||||
|
<version>1.8</version>
|
||||||
|
<style>AOSP</style>
|
||||||
|
<reflowLongStrings>true</reflowLongStrings>
|
||||||
|
</googleJavaFormat>
|
||||||
|
|
||||||
|
<removeUnusedImports/>
|
||||||
|
<importOrder/>
|
||||||
|
|
||||||
|
</java>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
@ -363,5 +405,6 @@
|
|||||||
{{/useBeanValidation}}
|
{{/useBeanValidation}}
|
||||||
<junit-version>4.13.2</junit-version>
|
<junit-version>4.13.2</junit-version>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<spotless.version>2.17.3</spotless.version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
|
apply plugin: 'com.diffplug.spotless'
|
||||||
|
|
||||||
group = 'org.openapitools'
|
group = 'org.openapitools'
|
||||||
version = '1.0'
|
version = '1.0'
|
||||||
@ -12,6 +13,7 @@ buildscript {
|
|||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.3.+'
|
classpath 'com.android.tools.build:gradle:2.3.+'
|
||||||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
||||||
|
classpath 'com.diffplug.spotless:spotless-plugin-gradle:5.17.1'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -121,3 +123,27 @@ dependencies {
|
|||||||
javadoc {
|
javadoc {
|
||||||
options.tags = [ "http.response.details:a:Http Response Details" ]
|
options.tags = [ "http.response.details:a:Http Response Details" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
// To apply changes directly to the file, run `gradlew spotlessApply`
|
||||||
|
// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle
|
||||||
|
spotless {
|
||||||
|
format 'misc', {
|
||||||
|
// define the files (e.g. '*.gradle', '*.md') to apply `misc` to
|
||||||
|
target '.gitignore'
|
||||||
|
|
||||||
|
// define the steps to apply to those files
|
||||||
|
trimTrailingWhitespace()
|
||||||
|
indentWithSpaces() // Takes an integer argument if you don't like 4
|
||||||
|
endWithNewline()
|
||||||
|
}
|
||||||
|
java {
|
||||||
|
// don't need to set target, it is inferred from java
|
||||||
|
|
||||||
|
// apply a specific flavor of google-java-format
|
||||||
|
googleJavaFormat('1.8').aosp().reflowLongStrings()
|
||||||
|
|
||||||
|
removeUnusedImports()
|
||||||
|
importOrder()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -179,6 +179,48 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<!-- Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
To apply changes directly to the file, run `mvn spotless:apply`
|
||||||
|
Ref: https://github.com/diffplug/spotless/tree/main/plugin-maven
|
||||||
|
-->
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.diffplug.spotless</groupId>
|
||||||
|
<artifactId>spotless-maven-plugin</artifactId>
|
||||||
|
<version>${spotless.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<formats>
|
||||||
|
<!-- you can define as many formats as you want, each is independent -->
|
||||||
|
<format>
|
||||||
|
<!-- define the files to apply to -->
|
||||||
|
<includes>
|
||||||
|
<include>.gitignore</include>
|
||||||
|
</includes>
|
||||||
|
<!-- define the steps to apply to those files -->
|
||||||
|
<trimTrailingWhitespace/>
|
||||||
|
<endWithNewline/>
|
||||||
|
<indent>
|
||||||
|
<tabs>true</tabs>
|
||||||
|
<spacesPerTab>4</spacesPerTab>
|
||||||
|
</indent>
|
||||||
|
</format>
|
||||||
|
</formats>
|
||||||
|
<!-- define a language-specific format -->
|
||||||
|
<java>
|
||||||
|
<!-- no need to specify files, inferred automatically, but you can if you want -->
|
||||||
|
|
||||||
|
<!-- apply a specific flavor of google-java-format and reflow long strings -->
|
||||||
|
<googleJavaFormat>
|
||||||
|
<version>1.8</version>
|
||||||
|
<style>AOSP</style>
|
||||||
|
<reflowLongStrings>true</reflowLongStrings>
|
||||||
|
</googleJavaFormat>
|
||||||
|
|
||||||
|
<removeUnusedImports/>
|
||||||
|
<importOrder/>
|
||||||
|
|
||||||
|
</java>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
@ -287,5 +329,6 @@
|
|||||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||||
<junit-version>4.13.2</junit-version>
|
<junit-version>4.13.2</junit-version>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<spotless.version>2.17.3</spotless.version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
|
apply plugin: 'com.diffplug.spotless'
|
||||||
|
|
||||||
group = 'org.openapitools'
|
group = 'org.openapitools'
|
||||||
version = '1.0.0'
|
version = '1.0.0'
|
||||||
@ -12,6 +13,7 @@ buildscript {
|
|||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.3.+'
|
classpath 'com.android.tools.build:gradle:2.3.+'
|
||||||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
||||||
|
classpath 'com.diffplug.spotless:spotless-plugin-gradle:5.17.1'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -123,3 +125,27 @@ dependencies {
|
|||||||
javadoc {
|
javadoc {
|
||||||
options.tags = [ "http.response.details:a:Http Response Details" ]
|
options.tags = [ "http.response.details:a:Http Response Details" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
// To apply changes directly to the file, run `gradlew spotlessApply`
|
||||||
|
// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle
|
||||||
|
spotless {
|
||||||
|
format 'misc', {
|
||||||
|
// define the files (e.g. '*.gradle', '*.md') to apply `misc` to
|
||||||
|
target '.gitignore'
|
||||||
|
|
||||||
|
// define the steps to apply to those files
|
||||||
|
trimTrailingWhitespace()
|
||||||
|
indentWithSpaces() // Takes an integer argument if you don't like 4
|
||||||
|
endWithNewline()
|
||||||
|
}
|
||||||
|
java {
|
||||||
|
// don't need to set target, it is inferred from java
|
||||||
|
|
||||||
|
// apply a specific flavor of google-java-format
|
||||||
|
googleJavaFormat('1.8').aosp().reflowLongStrings()
|
||||||
|
|
||||||
|
removeUnusedImports()
|
||||||
|
importOrder()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -179,6 +179,48 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<!-- Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
To apply changes directly to the file, run `mvn spotless:apply`
|
||||||
|
Ref: https://github.com/diffplug/spotless/tree/main/plugin-maven
|
||||||
|
-->
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.diffplug.spotless</groupId>
|
||||||
|
<artifactId>spotless-maven-plugin</artifactId>
|
||||||
|
<version>${spotless.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<formats>
|
||||||
|
<!-- you can define as many formats as you want, each is independent -->
|
||||||
|
<format>
|
||||||
|
<!-- define the files to apply to -->
|
||||||
|
<includes>
|
||||||
|
<include>.gitignore</include>
|
||||||
|
</includes>
|
||||||
|
<!-- define the steps to apply to those files -->
|
||||||
|
<trimTrailingWhitespace/>
|
||||||
|
<endWithNewline/>
|
||||||
|
<indent>
|
||||||
|
<tabs>true</tabs>
|
||||||
|
<spacesPerTab>4</spacesPerTab>
|
||||||
|
</indent>
|
||||||
|
</format>
|
||||||
|
</formats>
|
||||||
|
<!-- define a language-specific format -->
|
||||||
|
<java>
|
||||||
|
<!-- no need to specify files, inferred automatically, but you can if you want -->
|
||||||
|
|
||||||
|
<!-- apply a specific flavor of google-java-format and reflow long strings -->
|
||||||
|
<googleJavaFormat>
|
||||||
|
<version>1.8</version>
|
||||||
|
<style>AOSP</style>
|
||||||
|
<reflowLongStrings>true</reflowLongStrings>
|
||||||
|
</googleJavaFormat>
|
||||||
|
|
||||||
|
<removeUnusedImports/>
|
||||||
|
<importOrder/>
|
||||||
|
|
||||||
|
</java>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
@ -297,5 +339,6 @@
|
|||||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||||
<junit-version>4.13.2</junit-version>
|
<junit-version>4.13.2</junit-version>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<spotless.version>2.17.3</spotless.version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
|
apply plugin: 'com.diffplug.spotless'
|
||||||
|
|
||||||
group = 'org.openapitools'
|
group = 'org.openapitools'
|
||||||
version = '1.0.0'
|
version = '1.0.0'
|
||||||
@ -12,6 +13,7 @@ buildscript {
|
|||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.3.+'
|
classpath 'com.android.tools.build:gradle:2.3.+'
|
||||||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
||||||
|
classpath 'com.diffplug.spotless:spotless-plugin-gradle:5.17.1'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -122,3 +124,27 @@ dependencies {
|
|||||||
javadoc {
|
javadoc {
|
||||||
options.tags = [ "http.response.details:a:Http Response Details" ]
|
options.tags = [ "http.response.details:a:Http Response Details" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
// To apply changes directly to the file, run `gradlew spotlessApply`
|
||||||
|
// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle
|
||||||
|
spotless {
|
||||||
|
format 'misc', {
|
||||||
|
// define the files (e.g. '*.gradle', '*.md') to apply `misc` to
|
||||||
|
target '.gitignore'
|
||||||
|
|
||||||
|
// define the steps to apply to those files
|
||||||
|
trimTrailingWhitespace()
|
||||||
|
indentWithSpaces() // Takes an integer argument if you don't like 4
|
||||||
|
endWithNewline()
|
||||||
|
}
|
||||||
|
java {
|
||||||
|
// don't need to set target, it is inferred from java
|
||||||
|
|
||||||
|
// apply a specific flavor of google-java-format
|
||||||
|
googleJavaFormat('1.8').aosp().reflowLongStrings()
|
||||||
|
|
||||||
|
removeUnusedImports()
|
||||||
|
importOrder()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -179,6 +179,48 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<!-- Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
To apply changes directly to the file, run `mvn spotless:apply`
|
||||||
|
Ref: https://github.com/diffplug/spotless/tree/main/plugin-maven
|
||||||
|
-->
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.diffplug.spotless</groupId>
|
||||||
|
<artifactId>spotless-maven-plugin</artifactId>
|
||||||
|
<version>${spotless.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<formats>
|
||||||
|
<!-- you can define as many formats as you want, each is independent -->
|
||||||
|
<format>
|
||||||
|
<!-- define the files to apply to -->
|
||||||
|
<includes>
|
||||||
|
<include>.gitignore</include>
|
||||||
|
</includes>
|
||||||
|
<!-- define the steps to apply to those files -->
|
||||||
|
<trimTrailingWhitespace/>
|
||||||
|
<endWithNewline/>
|
||||||
|
<indent>
|
||||||
|
<tabs>true</tabs>
|
||||||
|
<spacesPerTab>4</spacesPerTab>
|
||||||
|
</indent>
|
||||||
|
</format>
|
||||||
|
</formats>
|
||||||
|
<!-- define a language-specific format -->
|
||||||
|
<java>
|
||||||
|
<!-- no need to specify files, inferred automatically, but you can if you want -->
|
||||||
|
|
||||||
|
<!-- apply a specific flavor of google-java-format and reflow long strings -->
|
||||||
|
<googleJavaFormat>
|
||||||
|
<version>1.8</version>
|
||||||
|
<style>AOSP</style>
|
||||||
|
<reflowLongStrings>true</reflowLongStrings>
|
||||||
|
</googleJavaFormat>
|
||||||
|
|
||||||
|
<removeUnusedImports/>
|
||||||
|
<importOrder/>
|
||||||
|
|
||||||
|
</java>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
@ -299,5 +341,6 @@
|
|||||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||||
<junit-version>4.13.2</junit-version>
|
<junit-version>4.13.2</junit-version>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<spotless.version>2.17.3</spotless.version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
|
apply plugin: 'com.diffplug.spotless'
|
||||||
|
|
||||||
group = 'org.openapitools'
|
group = 'org.openapitools'
|
||||||
version = '1.0.0'
|
version = '1.0.0'
|
||||||
@ -12,6 +13,7 @@ buildscript {
|
|||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.3.+'
|
classpath 'com.android.tools.build:gradle:2.3.+'
|
||||||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
||||||
|
classpath 'com.diffplug.spotless:spotless-plugin-gradle:5.17.1'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -122,3 +124,27 @@ dependencies {
|
|||||||
javadoc {
|
javadoc {
|
||||||
options.tags = [ "http.response.details:a:Http Response Details" ]
|
options.tags = [ "http.response.details:a:Http Response Details" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
// To apply changes directly to the file, run `gradlew spotlessApply`
|
||||||
|
// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle
|
||||||
|
spotless {
|
||||||
|
format 'misc', {
|
||||||
|
// define the files (e.g. '*.gradle', '*.md') to apply `misc` to
|
||||||
|
target '.gitignore'
|
||||||
|
|
||||||
|
// define the steps to apply to those files
|
||||||
|
trimTrailingWhitespace()
|
||||||
|
indentWithSpaces() // Takes an integer argument if you don't like 4
|
||||||
|
endWithNewline()
|
||||||
|
}
|
||||||
|
java {
|
||||||
|
// don't need to set target, it is inferred from java
|
||||||
|
|
||||||
|
// apply a specific flavor of google-java-format
|
||||||
|
googleJavaFormat('1.8').aosp().reflowLongStrings()
|
||||||
|
|
||||||
|
removeUnusedImports()
|
||||||
|
importOrder()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -179,6 +179,48 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<!-- Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
To apply changes directly to the file, run `mvn spotless:apply`
|
||||||
|
Ref: https://github.com/diffplug/spotless/tree/main/plugin-maven
|
||||||
|
-->
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.diffplug.spotless</groupId>
|
||||||
|
<artifactId>spotless-maven-plugin</artifactId>
|
||||||
|
<version>${spotless.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<formats>
|
||||||
|
<!-- you can define as many formats as you want, each is independent -->
|
||||||
|
<format>
|
||||||
|
<!-- define the files to apply to -->
|
||||||
|
<includes>
|
||||||
|
<include>.gitignore</include>
|
||||||
|
</includes>
|
||||||
|
<!-- define the steps to apply to those files -->
|
||||||
|
<trimTrailingWhitespace/>
|
||||||
|
<endWithNewline/>
|
||||||
|
<indent>
|
||||||
|
<tabs>true</tabs>
|
||||||
|
<spacesPerTab>4</spacesPerTab>
|
||||||
|
</indent>
|
||||||
|
</format>
|
||||||
|
</formats>
|
||||||
|
<!-- define a language-specific format -->
|
||||||
|
<java>
|
||||||
|
<!-- no need to specify files, inferred automatically, but you can if you want -->
|
||||||
|
|
||||||
|
<!-- apply a specific flavor of google-java-format and reflow long strings -->
|
||||||
|
<googleJavaFormat>
|
||||||
|
<version>1.8</version>
|
||||||
|
<style>AOSP</style>
|
||||||
|
<reflowLongStrings>true</reflowLongStrings>
|
||||||
|
</googleJavaFormat>
|
||||||
|
|
||||||
|
<removeUnusedImports/>
|
||||||
|
<importOrder/>
|
||||||
|
|
||||||
|
</java>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
@ -292,5 +334,6 @@
|
|||||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||||
<junit-version>4.13.2</junit-version>
|
<junit-version>4.13.2</junit-version>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<spotless.version>2.17.3</spotless.version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
@ -1,17 +1,12 @@
|
|||||||
package org.openapitools.client;
|
package org.openapitools.client;
|
||||||
|
|
||||||
import okhttp3.OkHttpClient;
|
|
||||||
import org.openapitools.client.auth.*;
|
|
||||||
|
|
||||||
import java.text.DateFormat;
|
|
||||||
import java.text.SimpleDateFormat;
|
|
||||||
import java.util.*;
|
|
||||||
import java.util.TimeZone;
|
|
||||||
|
|
||||||
import org.junit.*;
|
|
||||||
import static org.junit.Assert.*;
|
|
||||||
import static org.hamcrest.CoreMatchers.*;
|
import static org.hamcrest.CoreMatchers.*;
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import okhttp3.OkHttpClient;
|
||||||
|
import org.junit.*;
|
||||||
|
import org.openapitools.client.auth.*;
|
||||||
|
|
||||||
public class ApiClientTest {
|
public class ApiClientTest {
|
||||||
ApiClient apiClient;
|
ApiClient apiClient;
|
||||||
@ -54,16 +49,16 @@ public class ApiClientTest {
|
|||||||
String[] accepts = {"application/json", "application/xml"};
|
String[] accepts = {"application/json", "application/xml"};
|
||||||
assertEquals("application/json", apiClient.selectHeaderAccept(accepts));
|
assertEquals("application/json", apiClient.selectHeaderAccept(accepts));
|
||||||
|
|
||||||
accepts = new String[]{"APPLICATION/XML", "APPLICATION/JSON"};
|
accepts = new String[] {"APPLICATION/XML", "APPLICATION/JSON"};
|
||||||
assertEquals("APPLICATION/JSON", apiClient.selectHeaderAccept(accepts));
|
assertEquals("APPLICATION/JSON", apiClient.selectHeaderAccept(accepts));
|
||||||
|
|
||||||
accepts = new String[]{"application/xml", "application/json; charset=UTF8"};
|
accepts = new String[] {"application/xml", "application/json; charset=UTF8"};
|
||||||
assertEquals("application/json; charset=UTF8", apiClient.selectHeaderAccept(accepts));
|
assertEquals("application/json; charset=UTF8", apiClient.selectHeaderAccept(accepts));
|
||||||
|
|
||||||
accepts = new String[]{"text/plain", "application/xml"};
|
accepts = new String[] {"text/plain", "application/xml"};
|
||||||
assertEquals("text/plain,application/xml", apiClient.selectHeaderAccept(accepts));
|
assertEquals("text/plain,application/xml", apiClient.selectHeaderAccept(accepts));
|
||||||
|
|
||||||
accepts = new String[]{};
|
accepts = new String[] {};
|
||||||
assertNull(apiClient.selectHeaderAccept(accepts));
|
assertNull(apiClient.selectHeaderAccept(accepts));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,16 +67,17 @@ public class ApiClientTest {
|
|||||||
String[] contentTypes = {"application/json", "application/xml"};
|
String[] contentTypes = {"application/json", "application/xml"};
|
||||||
assertEquals("application/json", apiClient.selectHeaderContentType(contentTypes));
|
assertEquals("application/json", apiClient.selectHeaderContentType(contentTypes));
|
||||||
|
|
||||||
contentTypes = new String[]{"APPLICATION/JSON", "APPLICATION/XML"};
|
contentTypes = new String[] {"APPLICATION/JSON", "APPLICATION/XML"};
|
||||||
assertEquals("APPLICATION/JSON", apiClient.selectHeaderContentType(contentTypes));
|
assertEquals("APPLICATION/JSON", apiClient.selectHeaderContentType(contentTypes));
|
||||||
|
|
||||||
contentTypes = new String[]{"application/xml", "application/json; charset=UTF8"};
|
contentTypes = new String[] {"application/xml", "application/json; charset=UTF8"};
|
||||||
assertEquals("application/json; charset=UTF8", apiClient.selectHeaderContentType(contentTypes));
|
assertEquals(
|
||||||
|
"application/json; charset=UTF8", apiClient.selectHeaderContentType(contentTypes));
|
||||||
|
|
||||||
contentTypes = new String[]{"text/plain", "application/xml"};
|
contentTypes = new String[] {"text/plain", "application/xml"};
|
||||||
assertEquals("text/plain", apiClient.selectHeaderContentType(contentTypes));
|
assertEquals("text/plain", apiClient.selectHeaderContentType(contentTypes));
|
||||||
|
|
||||||
contentTypes = new String[]{};
|
contentTypes = new String[] {};
|
||||||
assertNull(apiClient.selectHeaderContentType(contentTypes));
|
assertNull(apiClient.selectHeaderContentType(contentTypes));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -293,7 +289,9 @@ public class ApiClientTest {
|
|||||||
List<Pair> multiPairs = apiClient.parameterToPairs("multi", name, values);
|
List<Pair> multiPairs = apiClient.parameterToPairs("multi", name, values);
|
||||||
assertEquals(values.size(), multiPairs.size());
|
assertEquals(values.size(), multiPairs.size());
|
||||||
for (int i = 0; i < values.size(); i++) {
|
for (int i = 0; i < values.size(); i++) {
|
||||||
assertEquals(apiClient.escapeString(apiClient.parameterToString(values.get(i))), multiPairs.get(i).getValue());
|
assertEquals(
|
||||||
|
apiClient.escapeString(apiClient.parameterToString(values.get(i))),
|
||||||
|
multiPairs.get(i).getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
// all other formats
|
// all other formats
|
||||||
@ -312,7 +310,9 @@ public class ApiClientTest {
|
|||||||
// must equal input values
|
// must equal input values
|
||||||
assertEquals(values.size(), pairValueSplit.length);
|
assertEquals(values.size(), pairValueSplit.length);
|
||||||
for (int i = 0; i < values.size(); i++) {
|
for (int i = 0; i < values.size(); i++) {
|
||||||
assertEquals(apiClient.escapeString(apiClient.parameterToString(values.get(i))), pairValueSplit[i]);
|
assertEquals(
|
||||||
|
apiClient.escapeString(apiClient.parameterToString(values.get(i))),
|
||||||
|
pairValueSplit[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -337,9 +337,7 @@ public class ApiClientTest {
|
|||||||
assertThat(apiClient.getHttpClient(), is(not(oldClient)));
|
assertThat(apiClient.getHttpClient(), is(not(oldClient)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Tests the invariant that the HttpClient for the ApiClient must never be null */
|
||||||
* Tests the invariant that the HttpClient for the ApiClient must never be null
|
|
||||||
*/
|
|
||||||
@Test(expected = NullPointerException.class)
|
@Test(expected = NullPointerException.class)
|
||||||
public void testNullHttpClient() {
|
public void testNullHttpClient() {
|
||||||
apiClient.setHttpClient(null);
|
apiClient.setHttpClient(null);
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package org.openapitools.client;
|
package org.openapitools.client;
|
||||||
|
|
||||||
import org.junit.*;
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
import org.junit.*;
|
||||||
|
|
||||||
public class ConfigurationTest {
|
public class ConfigurationTest {
|
||||||
@Test
|
@Test
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
package org.openapitools.client;
|
package org.openapitools.client;
|
||||||
|
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
import com.google.gson.reflect.TypeToken;
|
import com.google.gson.reflect.TypeToken;
|
||||||
|
|
||||||
import org.openapitools.client.model.Order;
|
|
||||||
|
|
||||||
import java.lang.Exception;
|
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.text.DateFormat;
|
import java.text.DateFormat;
|
||||||
@ -14,17 +12,15 @@ import java.util.Date;
|
|||||||
import java.util.GregorianCalendar;
|
import java.util.GregorianCalendar;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.TimeZone;
|
import java.util.TimeZone;
|
||||||
|
|
||||||
import okio.ByteString;
|
import okio.ByteString;
|
||||||
import org.junit.*;
|
import org.junit.*;
|
||||||
|
import org.openapitools.client.model.Order;
|
||||||
import org.threeten.bp.LocalDate;
|
import org.threeten.bp.LocalDate;
|
||||||
import org.threeten.bp.OffsetDateTime;
|
import org.threeten.bp.OffsetDateTime;
|
||||||
import org.threeten.bp.ZoneId;
|
import org.threeten.bp.ZoneId;
|
||||||
import org.threeten.bp.ZoneOffset;
|
import org.threeten.bp.ZoneOffset;
|
||||||
import org.threeten.bp.format.DateTimeFormatter;
|
import org.threeten.bp.format.DateTimeFormatter;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
|
||||||
|
|
||||||
public class JSONTest {
|
public class JSONTest {
|
||||||
private ApiClient apiClient = null;
|
private ApiClient apiClient = null;
|
||||||
private JSON json = null;
|
private JSON json = null;
|
||||||
@ -44,13 +40,20 @@ public class JSONTest {
|
|||||||
|
|
||||||
assertEquals(str, json.serialize(date));
|
assertEquals(str, json.serialize(date));
|
||||||
assertEquals(json.deserialize(str, java.sql.Date.class), date);
|
assertEquals(json.deserialize(str, java.sql.Date.class), date);
|
||||||
assertEquals(json.deserialize("\"2015-11-07T03:49:09.356" + getCurrentTimezoneOffset() + "\"", java.sql.Date.class).toString(), date.toString());
|
assertEquals(
|
||||||
|
json.deserialize(
|
||||||
|
"\"2015-11-07T03:49:09.356" + getCurrentTimezoneOffset() + "\"",
|
||||||
|
java.sql.Date.class)
|
||||||
|
.toString(),
|
||||||
|
date.toString());
|
||||||
|
|
||||||
// custom date format: without day
|
// custom date format: without day
|
||||||
DateFormat format = new SimpleDateFormat("yyyy-MM", Locale.ROOT);
|
DateFormat format = new SimpleDateFormat("yyyy-MM", Locale.ROOT);
|
||||||
apiClient.setSqlDateFormat(format);
|
apiClient.setSqlDateFormat(format);
|
||||||
String dateStr = "\"2015-11\"";
|
String dateStr = "\"2015-11\"";
|
||||||
assertEquals(dateStr, json.serialize(json.deserialize("\"2015-11-07T03:49:09Z\"", java.sql.Date.class)));
|
assertEquals(
|
||||||
|
dateStr,
|
||||||
|
json.serialize(json.deserialize("\"2015-11-07T03:49:09Z\"", java.sql.Date.class)));
|
||||||
assertEquals(dateStr, json.serialize(json.deserialize("\"2015-11\"", java.sql.Date.class)));
|
assertEquals(dateStr, json.serialize(json.deserialize("\"2015-11\"", java.sql.Date.class)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -85,9 +88,14 @@ public class JSONTest {
|
|||||||
apiClient.setDateFormat(format);
|
apiClient.setDateFormat(format);
|
||||||
|
|
||||||
String dateStr = "\"2015-11-07T13:49:09+10:00\"";
|
String dateStr = "\"2015-11-07T13:49:09+10:00\"";
|
||||||
assertEquals(dateStr, json.serialize(json.deserialize("\"2015-11-07T03:49:09+00:00\"", Date.class)));
|
assertEquals(
|
||||||
assertEquals(dateStr, json.serialize(json.deserialize("\"2015-11-07T03:49:09Z\"", Date.class)));
|
dateStr,
|
||||||
assertEquals(dateStr, json.serialize(json.deserialize("\"2015-11-07T00:49:09-03:00\"", Date.class)));
|
json.serialize(json.deserialize("\"2015-11-07T03:49:09+00:00\"", Date.class)));
|
||||||
|
assertEquals(
|
||||||
|
dateStr, json.serialize(json.deserialize("\"2015-11-07T03:49:09Z\"", Date.class)));
|
||||||
|
assertEquals(
|
||||||
|
dateStr,
|
||||||
|
json.serialize(json.deserialize("\"2015-11-07T00:49:09-03:00\"", Date.class)));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// invalid time zone format
|
// invalid time zone format
|
||||||
@ -103,16 +111,16 @@ public class JSONTest {
|
|||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
// OK
|
// OK
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testOffsetDateTimeTypeAdapter() {
|
public void testOffsetDateTimeTypeAdapter() {
|
||||||
final String str = "\"2016-09-09T08:02:03.123-03:00\"";
|
final String str = "\"2016-09-09T08:02:03.123-03:00\"";
|
||||||
OffsetDateTime date = OffsetDateTime.of(2016, 9, 9, 8, 2, 3, 123000000, ZoneOffset.of("-3"));
|
OffsetDateTime date =
|
||||||
|
OffsetDateTime.of(2016, 9, 9, 8, 2, 3, 123000000, ZoneOffset.of("-3"));
|
||||||
|
|
||||||
assertEquals(str, json.serialize(date));
|
assertEquals(str, json.serialize(date));
|
||||||
//Use toString() instead of isEqual to verify that the offset is preserved
|
// Use toString() instead of isEqual to verify that the offset is preserved
|
||||||
assertEquals(json.deserialize(str, OffsetDateTime.class).toString(), date.toString());
|
assertEquals(json.deserialize(str, OffsetDateTime.class).toString(), date.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -125,7 +133,6 @@ public class JSONTest {
|
|||||||
assertEquals(json.deserialize(str, LocalDate.class), date);
|
assertEquals(json.deserialize(str, LocalDate.class), date);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testDefaultDate() throws Exception {
|
public void testDefaultDate() throws Exception {
|
||||||
final DateTimeFormatter datetimeFormat = DateTimeFormatter.ISO_OFFSET_DATE_TIME;
|
final DateTimeFormatter datetimeFormat = DateTimeFormatter.ISO_OFFSET_DATE_TIME;
|
||||||
@ -133,19 +140,20 @@ public class JSONTest {
|
|||||||
order.setShipDate(datetimeFormat.parse(dateStr, OffsetDateTime.FROM));
|
order.setShipDate(datetimeFormat.parse(dateStr, OffsetDateTime.FROM));
|
||||||
|
|
||||||
String str = json.serialize(order);
|
String str = json.serialize(order);
|
||||||
Type type = new TypeToken<Order>() { }.getType();
|
Type type = new TypeToken<Order>() {}.getType();
|
||||||
Order o = json.deserialize(str, type);
|
Order o = json.deserialize(str, type);
|
||||||
assertEquals(dateStr, datetimeFormat.format(o.getShipDate()));
|
assertEquals(dateStr, datetimeFormat.format(o.getShipDate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCustomDate() throws Exception {
|
public void testCustomDate() throws Exception {
|
||||||
final DateTimeFormatter datetimeFormat = DateTimeFormatter.ISO_OFFSET_DATE_TIME.withZone(ZoneId.of("Etc/GMT+2"));
|
final DateTimeFormatter datetimeFormat =
|
||||||
|
DateTimeFormatter.ISO_OFFSET_DATE_TIME.withZone(ZoneId.of("Etc/GMT+2"));
|
||||||
final String dateStr = "2015-11-07T14:11:05-02:00";
|
final String dateStr = "2015-11-07T14:11:05-02:00";
|
||||||
order.setShipDate(datetimeFormat.parse(dateStr, OffsetDateTime.FROM));
|
order.setShipDate(datetimeFormat.parse(dateStr, OffsetDateTime.FROM));
|
||||||
|
|
||||||
String str = json.serialize(order);
|
String str = json.serialize(order);
|
||||||
Type type = new TypeToken<Order>() { }.getType();
|
Type type = new TypeToken<Order>() {}.getType();
|
||||||
Order o = json.deserialize(str, type);
|
Order o = json.deserialize(str, type);
|
||||||
assertEquals(dateStr, datetimeFormat.format(o.getShipDate()));
|
assertEquals(dateStr, datetimeFormat.format(o.getShipDate()));
|
||||||
}
|
}
|
||||||
@ -160,7 +168,8 @@ public class JSONTest {
|
|||||||
String serializedBytesWithQuotes = json.serialize(expectedBytes);
|
String serializedBytesWithQuotes = json.serialize(expectedBytes);
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
String serializedBytes = serializedBytesWithQuotes.substring(1, serializedBytesWithQuotes.length() - 1);
|
String serializedBytes =
|
||||||
|
serializedBytesWithQuotes.substring(1, serializedBytesWithQuotes.length() - 1);
|
||||||
if (json.getGson().htmlSafe()) {
|
if (json.getGson().htmlSafe()) {
|
||||||
serializedBytes = serializedBytes.replaceAll("\\\\u003d", "=");
|
serializedBytes = serializedBytes.replaceAll("\\\\u003d", "=");
|
||||||
}
|
}
|
||||||
@ -177,16 +186,18 @@ public class JSONTest {
|
|||||||
final ByteString expectedByteString = ByteString.of(expectedBytes);
|
final ByteString expectedByteString = ByteString.of(expectedBytes);
|
||||||
final String serializedBytes = expectedByteString.base64();
|
final String serializedBytes = expectedByteString.base64();
|
||||||
final String serializedBytesWithQuotes = "\"" + serializedBytes + "\"";
|
final String serializedBytesWithQuotes = "\"" + serializedBytes + "\"";
|
||||||
Type type = new TypeToken<byte[]>() { }.getType();
|
Type type = new TypeToken<byte[]>() {}.getType();
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
byte[] actualDeserializedBytes = json.deserialize(serializedBytesWithQuotes, type);
|
byte[] actualDeserializedBytes = json.deserialize(serializedBytesWithQuotes, type);
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
assertEquals(expectedBytesAsString, new String(actualDeserializedBytes, StandardCharsets.UTF_8));
|
assertEquals(
|
||||||
|
expectedBytesAsString, new String(actualDeserializedBytes, StandardCharsets.UTF_8));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Obtained 22JAN2018 from stackoverflow answer by PuguaSoft https://stackoverflow.com/questions/11399491/java-timezone-offset
|
// Obtained 22JAN2018 from stackoverflow answer by PuguaSoft
|
||||||
|
// https://stackoverflow.com/questions/11399491/java-timezone-offset
|
||||||
// Direct link https://stackoverflow.com/a/16680815/3166133
|
// Direct link https://stackoverflow.com/a/16680815/3166133
|
||||||
public static String getCurrentTimezoneOffset() {
|
public static String getCurrentTimezoneOffset() {
|
||||||
|
|
||||||
@ -194,9 +205,14 @@ public class JSONTest {
|
|||||||
Calendar cal = GregorianCalendar.getInstance(tz, Locale.ROOT);
|
Calendar cal = GregorianCalendar.getInstance(tz, Locale.ROOT);
|
||||||
int offsetInMillis = tz.getOffset(cal.getTimeInMillis());
|
int offsetInMillis = tz.getOffset(cal.getTimeInMillis());
|
||||||
|
|
||||||
String offset = String.format(Locale.ROOT,"%02d:%02d", Math.abs(offsetInMillis / 3600000), Math.abs((offsetInMillis / 60000) % 60));
|
String offset =
|
||||||
|
String.format(
|
||||||
|
Locale.ROOT,
|
||||||
|
"%02d:%02d",
|
||||||
|
Math.abs(offsetInMillis / 3600000),
|
||||||
|
Math.abs((offsetInMillis / 60000) % 60));
|
||||||
offset = (offsetInMillis >= 0 ? "+" : "-") + offset;
|
offset = (offsetInMillis >= 0 ? "+" : "-") + offset;
|
||||||
|
|
||||||
return offset;
|
return offset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,21 +1,21 @@
|
|||||||
package org.openapitools.client;
|
package org.openapitools.client;
|
||||||
|
|
||||||
import org.junit.*;
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
import org.junit.*;
|
||||||
|
|
||||||
public class StringUtilTest {
|
public class StringUtilTest {
|
||||||
@Test
|
@Test
|
||||||
public void testContainsIgnoreCase() {
|
public void testContainsIgnoreCase() {
|
||||||
assertTrue(StringUtil.containsIgnoreCase(new String[]{"abc"}, "abc"));
|
assertTrue(StringUtil.containsIgnoreCase(new String[] {"abc"}, "abc"));
|
||||||
assertTrue(StringUtil.containsIgnoreCase(new String[]{"abc"}, "ABC"));
|
assertTrue(StringUtil.containsIgnoreCase(new String[] {"abc"}, "ABC"));
|
||||||
assertTrue(StringUtil.containsIgnoreCase(new String[]{"ABC"}, "abc"));
|
assertTrue(StringUtil.containsIgnoreCase(new String[] {"ABC"}, "abc"));
|
||||||
assertTrue(StringUtil.containsIgnoreCase(new String[]{null, "abc"}, "ABC"));
|
assertTrue(StringUtil.containsIgnoreCase(new String[] {null, "abc"}, "ABC"));
|
||||||
assertTrue(StringUtil.containsIgnoreCase(new String[]{null, "abc"}, null));
|
assertTrue(StringUtil.containsIgnoreCase(new String[] {null, "abc"}, null));
|
||||||
|
|
||||||
assertFalse(StringUtil.containsIgnoreCase(new String[]{"abc"}, "def"));
|
assertFalse(StringUtil.containsIgnoreCase(new String[] {"abc"}, "def"));
|
||||||
assertFalse(StringUtil.containsIgnoreCase(new String[]{}, "ABC"));
|
assertFalse(StringUtil.containsIgnoreCase(new String[] {}, "ABC"));
|
||||||
assertFalse(StringUtil.containsIgnoreCase(new String[]{}, null));
|
assertFalse(StringUtil.containsIgnoreCase(new String[] {}, null));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -27,7 +27,7 @@ public class StringUtilTest {
|
|||||||
assertEquals("aa bb cc", StringUtil.join(array, " "));
|
assertEquals("aa bb cc", StringUtil.join(array, " "));
|
||||||
assertEquals("aa\nbb\ncc", StringUtil.join(array, "\n"));
|
assertEquals("aa\nbb\ncc", StringUtil.join(array, "\n"));
|
||||||
|
|
||||||
assertEquals("", StringUtil.join(new String[]{}, ","));
|
assertEquals("", StringUtil.join(new String[] {}, ","));
|
||||||
assertEquals("abc", StringUtil.join(new String[]{"abc"}, ","));
|
assertEquals("abc", StringUtil.join(new String[] {"abc"}, ","));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,42 +3,33 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
|
|
||||||
|
import org.junit.Ignore;
|
||||||
|
import org.junit.Test;
|
||||||
import org.openapitools.client.ApiException;
|
import org.openapitools.client.ApiException;
|
||||||
import org.openapitools.client.model.Client;
|
import org.openapitools.client.model.Client;
|
||||||
import org.junit.Test;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
/** API tests for AnotherFakeApi */
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* API tests for AnotherFakeApi
|
|
||||||
*/
|
|
||||||
@Ignore
|
@Ignore
|
||||||
public class AnotherFakeApiTest {
|
public class AnotherFakeApiTest {
|
||||||
|
|
||||||
private final AnotherFakeApi api = new AnotherFakeApi();
|
private final AnotherFakeApi api = new AnotherFakeApi();
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* To test special tags
|
* To test special tags
|
||||||
*
|
*
|
||||||
* To test special tags and operation ID starting with number
|
* <p>To test special tags and operation ID starting with number
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException if the Api call fails
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void call123testSpecialTagsTest() throws ApiException {
|
public void call123testSpecialTagsTest() throws ApiException {
|
||||||
@ -47,5 +38,4 @@ public class AnotherFakeApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,50 +3,43 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiException;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import org.openapitools.client.model.Client;
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.junit.Ignore;
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.openapitools.client.ApiException;
|
||||||
|
import org.openapitools.client.model.Client;
|
||||||
import org.openapitools.client.model.FileSchemaTestClass;
|
import org.openapitools.client.model.FileSchemaTestClass;
|
||||||
import org.threeten.bp.LocalDate;
|
|
||||||
import org.threeten.bp.OffsetDateTime;
|
|
||||||
import org.openapitools.client.model.OuterComposite;
|
import org.openapitools.client.model.OuterComposite;
|
||||||
import org.openapitools.client.model.User;
|
import org.openapitools.client.model.User;
|
||||||
import org.openapitools.client.model.XmlItem;
|
import org.openapitools.client.model.XmlItem;
|
||||||
import org.junit.Test;
|
import org.threeten.bp.LocalDate;
|
||||||
import org.junit.Ignore;
|
import org.threeten.bp.OffsetDateTime;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
/** API tests for FakeApi */
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* API tests for FakeApi
|
|
||||||
*/
|
|
||||||
@Ignore
|
@Ignore
|
||||||
public class FakeApiTest {
|
public class FakeApiTest {
|
||||||
|
|
||||||
private final FakeApi api = new FakeApi();
|
private final FakeApi api = new FakeApi();
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* creates an XmlItem
|
* creates an XmlItem
|
||||||
*
|
*
|
||||||
* this route creates an XmlItem
|
* <p>this route creates an XmlItem
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException if the Api call fails
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void createXmlItemTest() throws ApiException {
|
public void createXmlItemTest() throws ApiException {
|
||||||
@ -55,14 +48,11 @@ public class FakeApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
*
|
|
||||||
* Test serialization of outer boolean types
|
* Test serialization of outer boolean types
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException if the Api call fails
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void fakeOuterBooleanSerializeTest() throws ApiException {
|
public void fakeOuterBooleanSerializeTest() throws ApiException {
|
||||||
@ -71,14 +61,11 @@ public class FakeApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
*
|
|
||||||
* Test serialization of object with outer number type
|
* Test serialization of object with outer number type
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException if the Api call fails
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void fakeOuterCompositeSerializeTest() throws ApiException {
|
public void fakeOuterCompositeSerializeTest() throws ApiException {
|
||||||
@ -87,14 +74,11 @@ public class FakeApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
*
|
|
||||||
* Test serialization of outer number types
|
* Test serialization of outer number types
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException if the Api call fails
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void fakeOuterNumberSerializeTest() throws ApiException {
|
public void fakeOuterNumberSerializeTest() throws ApiException {
|
||||||
@ -103,14 +87,11 @@ public class FakeApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
*
|
|
||||||
* Test serialization of outer string types
|
* Test serialization of outer string types
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException if the Api call fails
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void fakeOuterStringSerializeTest() throws ApiException {
|
public void fakeOuterStringSerializeTest() throws ApiException {
|
||||||
@ -119,14 +100,11 @@ public class FakeApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
*
|
|
||||||
* For this test, the body for this request much reference a schema named `File`.
|
* For this test, the body for this request much reference a schema named `File`.
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException if the Api call fails
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testBodyWithFileSchemaTest() throws ApiException {
|
public void testBodyWithFileSchemaTest() throws ApiException {
|
||||||
@ -135,15 +113,8 @@ public class FakeApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** @throws ApiException if the Api call fails */
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @throws ApiException
|
|
||||||
* if the Api call fails
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testBodyWithQueryParamsTest() throws ApiException {
|
public void testBodyWithQueryParamsTest() throws ApiException {
|
||||||
String query = null;
|
String query = null;
|
||||||
@ -152,14 +123,13 @@ public class FakeApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
*
|
*
|
||||||
* To test \"client\" model
|
* <p>To test \"client\" model
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException if the Api call fails
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testClientModelTest() throws ApiException {
|
public void testClientModelTest() throws ApiException {
|
||||||
@ -168,14 +138,13 @@ public class FakeApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
*
|
*
|
||||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
* <p>Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException if the Api call fails
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testEndpointParametersTest() throws ApiException {
|
public void testEndpointParametersTest() throws ApiException {
|
||||||
@ -193,18 +162,31 @@ public class FakeApiTest {
|
|||||||
OffsetDateTime dateTime = null;
|
OffsetDateTime dateTime = null;
|
||||||
String password = null;
|
String password = null;
|
||||||
String paramCallback = null;
|
String paramCallback = null;
|
||||||
api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
|
api.testEndpointParameters(
|
||||||
|
number,
|
||||||
|
_double,
|
||||||
|
patternWithoutDelimiter,
|
||||||
|
_byte,
|
||||||
|
integer,
|
||||||
|
int32,
|
||||||
|
int64,
|
||||||
|
_float,
|
||||||
|
string,
|
||||||
|
binary,
|
||||||
|
date,
|
||||||
|
dateTime,
|
||||||
|
password,
|
||||||
|
paramCallback);
|
||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* To test enum parameters
|
* To test enum parameters
|
||||||
*
|
*
|
||||||
* To test enum parameters
|
* <p>To test enum parameters
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException if the Api call fails
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testEnumParametersTest() throws ApiException {
|
public void testEnumParametersTest() throws ApiException {
|
||||||
@ -216,18 +198,25 @@ public class FakeApiTest {
|
|||||||
Double enumQueryDouble = null;
|
Double enumQueryDouble = null;
|
||||||
List<String> enumFormStringArray = null;
|
List<String> enumFormStringArray = null;
|
||||||
String enumFormString = null;
|
String enumFormString = null;
|
||||||
api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
|
api.testEnumParameters(
|
||||||
|
enumHeaderStringArray,
|
||||||
|
enumHeaderString,
|
||||||
|
enumQueryStringArray,
|
||||||
|
enumQueryString,
|
||||||
|
enumQueryInteger,
|
||||||
|
enumQueryDouble,
|
||||||
|
enumFormStringArray,
|
||||||
|
enumFormString);
|
||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fake endpoint to test group parameters (optional)
|
* Fake endpoint to test group parameters (optional)
|
||||||
*
|
*
|
||||||
* Fake endpoint to test group parameters (optional)
|
* <p>Fake endpoint to test group parameters (optional)
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException if the Api call fails
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testGroupParametersTest() throws ApiException {
|
public void testGroupParametersTest() throws ApiException {
|
||||||
@ -245,14 +234,11 @@ public class FakeApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* test inline additionalProperties
|
* test inline additionalProperties
|
||||||
*
|
*
|
||||||
*
|
* @throws ApiException if the Api call fails
|
||||||
*
|
|
||||||
* @throws ApiException
|
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testInlineAdditionalPropertiesTest() throws ApiException {
|
public void testInlineAdditionalPropertiesTest() throws ApiException {
|
||||||
@ -261,14 +247,11 @@ public class FakeApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* test json serialization of form data
|
* test json serialization of form data
|
||||||
*
|
*
|
||||||
*
|
* @throws ApiException if the Api call fails
|
||||||
*
|
|
||||||
* @throws ApiException
|
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testJsonFormDataTest() throws ApiException {
|
public void testJsonFormDataTest() throws ApiException {
|
||||||
@ -278,5 +261,4 @@ public class FakeApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,42 +3,33 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
|
|
||||||
|
import org.junit.Ignore;
|
||||||
|
import org.junit.Test;
|
||||||
import org.openapitools.client.ApiException;
|
import org.openapitools.client.ApiException;
|
||||||
import org.openapitools.client.model.Client;
|
import org.openapitools.client.model.Client;
|
||||||
import org.junit.Test;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
/** API tests for FakeClassnameTags123Api */
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* API tests for FakeClassnameTags123Api
|
|
||||||
*/
|
|
||||||
@Ignore
|
@Ignore
|
||||||
public class FakeClassnameTags123ApiTest {
|
public class FakeClassnameTags123ApiTest {
|
||||||
|
|
||||||
private final FakeClassnameTags123Api api = new FakeClassnameTags123Api();
|
private final FakeClassnameTags123Api api = new FakeClassnameTags123Api();
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* To test class name in snake case
|
* To test class name in snake case
|
||||||
*
|
*
|
||||||
* To test class name in snake case
|
* <p>To test class name in snake case
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException if the Api call fails
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testClassnameTest() throws ApiException {
|
public void testClassnameTest() throws ApiException {
|
||||||
@ -47,5 +38,4 @@ public class FakeClassnameTags123ApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -10,45 +10,41 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiException;
|
import static org.junit.Assert.*;
|
||||||
import org.openapitools.client.model.Pet;
|
|
||||||
import org.openapitools.client.auth.*;
|
|
||||||
import org.openapitools.client.model.*;
|
|
||||||
import org.openapitools.client.*;
|
|
||||||
|
|
||||||
|
import java.io.BufferedWriter;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.FileWriter;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.concurrent.ConcurrentLinkedQueue;
|
import java.util.Arrays;
|
||||||
import java.util.concurrent.CountDownLatch;
|
|
||||||
import java.util.concurrent.TimeUnit;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
import java.util.concurrent.ConcurrentLinkedQueue;
|
||||||
|
import java.util.concurrent.CountDownLatch;
|
||||||
import java.util.concurrent.ThreadLocalRandom;
|
import java.util.concurrent.ThreadLocalRandom;
|
||||||
import java.io.BufferedWriter;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.io.File;
|
import org.junit.*;
|
||||||
import java.io.FileWriter;
|
import org.openapitools.client.*;
|
||||||
|
import org.openapitools.client.ApiException;
|
||||||
|
import org.openapitools.client.auth.*;
|
||||||
|
import org.openapitools.client.model.*;
|
||||||
|
import org.openapitools.client.model.Pet;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import org.junit.*;
|
/** API tests for PetApi */
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* API tests for PetApi
|
|
||||||
*/
|
|
||||||
public class PetApiTest {
|
public class PetApiTest {
|
||||||
|
|
||||||
private PetApi api = new PetApi();
|
private PetApi api = new PetApi();
|
||||||
private final Logger LOG = LoggerFactory.getLogger(PetApiTest.class);
|
private final Logger LOG = LoggerFactory.getLogger(PetApiTest.class);
|
||||||
// In the circle.yml file, /etc/host is configured with an entry to resolve petstore.swagger.io to 127.0.0.1
|
// In the circle.yml file, /etc/host is configured with an entry to resolve petstore.swagger.io
|
||||||
|
// to 127.0.0.1
|
||||||
private static String basePath = "http://petstore.swagger.io:80/v2";
|
private static String basePath = "http://petstore.swagger.io:80/v2";
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
@ -118,27 +114,35 @@ public class PetApiTest {
|
|||||||
// to store returned Pet or error message/exception
|
// to store returned Pet or error message/exception
|
||||||
final Map<String, Object> result = new HashMap<String, Object>();
|
final Map<String, Object> result = new HashMap<String, Object>();
|
||||||
|
|
||||||
api.getPetByIdAsync(pet.getId(), new ApiCallback<Pet>() {
|
api.getPetByIdAsync(
|
||||||
@Override
|
pet.getId(),
|
||||||
public void onFailure(ApiException e, int statusCode, Map<String, List<String>> responseHeaders) {
|
new ApiCallback<Pet>() {
|
||||||
result.put("error", e.getMessage());
|
@Override
|
||||||
}
|
public void onFailure(
|
||||||
|
ApiException e,
|
||||||
|
int statusCode,
|
||||||
|
Map<String, List<String>> responseHeaders) {
|
||||||
|
result.put("error", e.getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(Pet pet, int statusCode, Map<String, List<String>> responseHeaders) {
|
public void onSuccess(
|
||||||
result.put("pet", pet);
|
Pet pet, int statusCode, Map<String, List<String>> responseHeaders) {
|
||||||
}
|
result.put("pet", pet);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onUploadProgress(long bytesWritten, long contentLength, boolean done) {
|
public void onUploadProgress(
|
||||||
//empty
|
long bytesWritten, long contentLength, boolean done) {
|
||||||
}
|
// empty
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDownloadProgress(long bytesRead, long contentLength, boolean done) {
|
public void onDownloadProgress(
|
||||||
//empty
|
long bytesRead, long contentLength, boolean done) {
|
||||||
}
|
// empty
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// wait for the asynchronous call to finish (at most 10 seconds)
|
// wait for the asynchronous call to finish (at most 10 seconds)
|
||||||
final int maxTry = 10;
|
final int maxTry = 10;
|
||||||
@ -167,27 +171,35 @@ public class PetApiTest {
|
|||||||
|
|
||||||
// test getting a nonexistent pet
|
// test getting a nonexistent pet
|
||||||
result.clear();
|
result.clear();
|
||||||
api.getPetByIdAsync(-10000L, new ApiCallback<Pet>() {
|
api.getPetByIdAsync(
|
||||||
@Override
|
-10000L,
|
||||||
public void onFailure(ApiException e, int statusCode, Map<String, List<String>> responseHeaders) {
|
new ApiCallback<Pet>() {
|
||||||
result.put("exception", e);
|
@Override
|
||||||
}
|
public void onFailure(
|
||||||
|
ApiException e,
|
||||||
|
int statusCode,
|
||||||
|
Map<String, List<String>> responseHeaders) {
|
||||||
|
result.put("exception", e);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(Pet pet, int statusCode, Map<String, List<String>> responseHeaders) {
|
public void onSuccess(
|
||||||
result.put("pet", pet);
|
Pet pet, int statusCode, Map<String, List<String>> responseHeaders) {
|
||||||
}
|
result.put("pet", pet);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onUploadProgress(long bytesWritten, long contentLength, boolean done) {
|
public void onUploadProgress(
|
||||||
//empty
|
long bytesWritten, long contentLength, boolean done) {
|
||||||
}
|
// empty
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDownloadProgress(long bytesRead, long contentLength, boolean done) {
|
public void onDownloadProgress(
|
||||||
//empty
|
long bytesRead, long contentLength, boolean done) {
|
||||||
}
|
// empty
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// wait for the asynchronous call to finish (at most 10 seconds)
|
// wait for the asynchronous call to finish (at most 10 seconds)
|
||||||
final int maxTry = 10;
|
final int maxTry = 10;
|
||||||
@ -272,7 +284,6 @@ public class PetApiTest {
|
|||||||
api.deletePet(pet2.getId(), null);
|
api.deletePet(pet2.getId(), null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testUpdatePet() throws Exception {
|
public void testUpdatePet() throws Exception {
|
||||||
Pet pet = createPet();
|
Pet pet = createPet();
|
||||||
@ -398,7 +409,8 @@ public class PetApiTest {
|
|||||||
assertTrue(pet1.hashCode() == pet1.hashCode());
|
assertTrue(pet1.hashCode() == pet1.hashCode());
|
||||||
|
|
||||||
pet2.setName("really-happy");
|
pet2.setName("really-happy");
|
||||||
pet2.setPhotoUrls(new HashSet<>(Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2")));
|
pet2.setPhotoUrls(
|
||||||
|
new HashSet<>(Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2")));
|
||||||
assertFalse(pet1.equals(pet2));
|
assertFalse(pet1.equals(pet2));
|
||||||
assertFalse(pet2.equals(pet1));
|
assertFalse(pet2.equals(pet1));
|
||||||
assertFalse(pet1.hashCode() == (pet2.hashCode()));
|
assertFalse(pet1.hashCode() == (pet2.hashCode()));
|
||||||
@ -406,7 +418,8 @@ public class PetApiTest {
|
|||||||
assertTrue(pet2.hashCode() == pet2.hashCode());
|
assertTrue(pet2.hashCode() == pet2.hashCode());
|
||||||
|
|
||||||
pet1.setName("really-happy");
|
pet1.setName("really-happy");
|
||||||
pet1.setPhotoUrls(new HashSet<>(Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2")));
|
pet1.setPhotoUrls(
|
||||||
|
new HashSet<>(Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2")));
|
||||||
assertTrue(pet1.equals(pet2));
|
assertTrue(pet1.equals(pet2));
|
||||||
assertTrue(pet2.equals(pet1));
|
assertTrue(pet2.equals(pet1));
|
||||||
assertTrue(pet1.hashCode() == pet2.hashCode());
|
assertTrue(pet1.hashCode() == pet2.hashCode());
|
||||||
@ -414,7 +427,6 @@ public class PetApiTest {
|
|||||||
assertTrue(pet1.hashCode() == pet1.hashCode());
|
assertTrue(pet1.hashCode() == pet1.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private Pet createPet() {
|
private Pet createPet() {
|
||||||
Pet pet = new Pet();
|
Pet pet = new Pet();
|
||||||
pet.setId(ThreadLocalRandom.current().nextLong(Long.MAX_VALUE));
|
pet.setId(ThreadLocalRandom.current().nextLong(Long.MAX_VALUE));
|
||||||
@ -425,7 +437,8 @@ public class PetApiTest {
|
|||||||
|
|
||||||
pet.setCategory(category);
|
pet.setCategory(category);
|
||||||
pet.setStatus(Pet.StatusEnum.AVAILABLE);
|
pet.setStatus(Pet.StatusEnum.AVAILABLE);
|
||||||
Set<String> photos = new HashSet<>(Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2"));
|
Set<String> photos =
|
||||||
|
new HashSet<>(Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2"));
|
||||||
pet.setPhotoUrls(photos);
|
pet.setPhotoUrls(photos);
|
||||||
|
|
||||||
return pet;
|
return pet;
|
||||||
@ -443,17 +456,14 @@ public class PetApiTest {
|
|||||||
assertNotNull(actual);
|
assertNotNull(actual);
|
||||||
assertEquals(expected.getId(), actual.getId());
|
assertEquals(expected.getId(), actual.getId());
|
||||||
assertNotNull(actual.getCategory());
|
assertNotNull(actual.getCategory());
|
||||||
assertEquals(expected.getCategory().getName(),
|
assertEquals(expected.getCategory().getName(), actual.getCategory().getName());
|
||||||
actual.getCategory().getName());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assert that the given upload/download progress list satisfies the
|
* Assert that the given upload/download progress list satisfies the following constraints:
|
||||||
* following constraints:
|
*
|
||||||
* <p>
|
* <p>- List is not empty - Byte count should be nondecreasing - The last element, and only the
|
||||||
* - List is not empty
|
* last element, should have done=true
|
||||||
* - Byte count should be nondecreasing
|
|
||||||
* - The last element, and only the last element, should have done=true
|
|
||||||
*/
|
*/
|
||||||
private void assertValidProgress(List<Progress> progressList) {
|
private void assertValidProgress(List<Progress> progressList) {
|
||||||
assertFalse(progressList.isEmpty());
|
assertFalse(progressList.isEmpty());
|
||||||
@ -463,8 +473,7 @@ public class PetApiTest {
|
|||||||
for (Progress progress : progressList) {
|
for (Progress progress : progressList) {
|
||||||
if (prev != null) {
|
if (prev != null) {
|
||||||
if (prev.done || prev.bytes > progress.bytes) {
|
if (prev.done || prev.bytes > progress.bytes) {
|
||||||
fail("Progress list out of order at index " + index
|
fail("Progress list out of order at index " + index + ": " + progressList);
|
||||||
+ ": " + progressList);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
prev = progress;
|
prev = progress;
|
||||||
@ -495,7 +504,8 @@ public class PetApiTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onFailure(ApiException e, int statusCode, Map<String, List<String>> responseHeaders) {
|
public void onFailure(
|
||||||
|
ApiException e, int statusCode, Map<String, List<String>> responseHeaders) {
|
||||||
exception = e;
|
exception = e;
|
||||||
this.done = true;
|
this.done = true;
|
||||||
this.success = false;
|
this.success = false;
|
||||||
|
@ -3,42 +3,35 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
import org.junit.Ignore;
|
||||||
|
import org.junit.Test;
|
||||||
import org.openapitools.client.ApiException;
|
import org.openapitools.client.ApiException;
|
||||||
import org.openapitools.client.model.Order;
|
import org.openapitools.client.model.Order;
|
||||||
import org.junit.Test;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
/** API tests for StoreApi */
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* API tests for StoreApi
|
|
||||||
*/
|
|
||||||
@Ignore
|
@Ignore
|
||||||
public class StoreApiTest {
|
public class StoreApiTest {
|
||||||
|
|
||||||
private final StoreApi api = new StoreApi();
|
private final StoreApi api = new StoreApi();
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete purchase order by ID
|
* Delete purchase order by ID
|
||||||
*
|
*
|
||||||
* For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
* <p>For valid response try integer IDs with value < 1000. Anything above 1000 or
|
||||||
|
* nonintegers will generate API errors
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException if the Api call fails
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void deleteOrderTest() throws ApiException {
|
public void deleteOrderTest() throws ApiException {
|
||||||
@ -47,14 +40,13 @@ public class StoreApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns pet inventories by status
|
* Returns pet inventories by status
|
||||||
*
|
*
|
||||||
* Returns a map of status codes to quantities
|
* <p>Returns a map of status codes to quantities
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException if the Api call fails
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void getInventoryTest() throws ApiException {
|
public void getInventoryTest() throws ApiException {
|
||||||
@ -62,14 +54,14 @@ public class StoreApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find purchase order by ID
|
* Find purchase order by ID
|
||||||
*
|
*
|
||||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
* <p>For valid response try integer IDs with value <= 5 or > 10. Other values will
|
||||||
|
* generated exceptions
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException if the Api call fails
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void getOrderByIdTest() throws ApiException {
|
public void getOrderByIdTest() throws ApiException {
|
||||||
@ -78,14 +70,11 @@ public class StoreApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Place an order for a pet
|
* Place an order for a pet
|
||||||
*
|
*
|
||||||
*
|
* @throws ApiException if the Api call fails
|
||||||
*
|
|
||||||
* @throws ApiException
|
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void placeOrderTest() throws ApiException {
|
public void placeOrderTest() throws ApiException {
|
||||||
@ -94,5 +83,4 @@ public class StoreApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,42 +3,34 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.junit.Ignore;
|
||||||
|
import org.junit.Test;
|
||||||
import org.openapitools.client.ApiException;
|
import org.openapitools.client.ApiException;
|
||||||
import org.openapitools.client.model.User;
|
import org.openapitools.client.model.User;
|
||||||
import org.junit.Test;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
/** API tests for UserApi */
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* API tests for UserApi
|
|
||||||
*/
|
|
||||||
@Ignore
|
@Ignore
|
||||||
public class UserApiTest {
|
public class UserApiTest {
|
||||||
|
|
||||||
private final UserApi api = new UserApi();
|
private final UserApi api = new UserApi();
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create user
|
* Create user
|
||||||
*
|
*
|
||||||
* This can only be done by the logged in user.
|
* <p>This can only be done by the logged in user.
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException if the Api call fails
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void createUserTest() throws ApiException {
|
public void createUserTest() throws ApiException {
|
||||||
@ -47,14 +39,11 @@ public class UserApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
*
|
* @throws ApiException if the Api call fails
|
||||||
*
|
|
||||||
* @throws ApiException
|
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void createUsersWithArrayInputTest() throws ApiException {
|
public void createUsersWithArrayInputTest() throws ApiException {
|
||||||
@ -63,14 +52,11 @@ public class UserApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
*
|
* @throws ApiException if the Api call fails
|
||||||
*
|
|
||||||
* @throws ApiException
|
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void createUsersWithListInputTest() throws ApiException {
|
public void createUsersWithListInputTest() throws ApiException {
|
||||||
@ -79,14 +65,13 @@ public class UserApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete user
|
* Delete user
|
||||||
*
|
*
|
||||||
* This can only be done by the logged in user.
|
* <p>This can only be done by the logged in user.
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException if the Api call fails
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void deleteUserTest() throws ApiException {
|
public void deleteUserTest() throws ApiException {
|
||||||
@ -95,14 +80,11 @@ public class UserApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get user by user name
|
* Get user by user name
|
||||||
*
|
*
|
||||||
*
|
* @throws ApiException if the Api call fails
|
||||||
*
|
|
||||||
* @throws ApiException
|
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void getUserByNameTest() throws ApiException {
|
public void getUserByNameTest() throws ApiException {
|
||||||
@ -111,14 +93,11 @@ public class UserApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs user into the system
|
* Logs user into the system
|
||||||
*
|
*
|
||||||
*
|
* @throws ApiException if the Api call fails
|
||||||
*
|
|
||||||
* @throws ApiException
|
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void loginUserTest() throws ApiException {
|
public void loginUserTest() throws ApiException {
|
||||||
@ -128,14 +107,11 @@ public class UserApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs out current logged in user session
|
* Logs out current logged in user session
|
||||||
*
|
*
|
||||||
*
|
* @throws ApiException if the Api call fails
|
||||||
*
|
|
||||||
* @throws ApiException
|
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void logoutUserTest() throws ApiException {
|
public void logoutUserTest() throws ApiException {
|
||||||
@ -143,14 +119,13 @@ public class UserApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updated user
|
* Updated user
|
||||||
*
|
*
|
||||||
* This can only be done by the logged in user.
|
* <p>This can only be done by the logged in user.
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException if the Api call fails
|
||||||
* if the Api call fails
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void updateUserTest() throws ApiException {
|
public void updateUserTest() throws ApiException {
|
||||||
@ -160,5 +135,4 @@ public class UserApiTest {
|
|||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
package org.openapitools.client.auth;
|
package org.openapitools.client.auth;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.openapitools.client.Pair;
|
|
||||||
import org.junit.*;
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.junit.*;
|
||||||
|
import org.openapitools.client.Pair;
|
||||||
|
|
||||||
public class ApiKeyAuthTest {
|
public class ApiKeyAuthTest {
|
||||||
@Test
|
@Test
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
package org.openapitools.client.auth;
|
package org.openapitools.client.auth;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.openapitools.client.Pair;
|
|
||||||
import org.junit.*;
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.junit.*;
|
||||||
|
import org.openapitools.client.Pair;
|
||||||
|
|
||||||
public class HttpBasicAuthTest {
|
public class HttpBasicAuthTest {
|
||||||
HttpBasicAuth auth = null;
|
HttpBasicAuth auth = null;
|
||||||
@ -32,7 +31,8 @@ public class HttpBasicAuthTest {
|
|||||||
assertEquals(0, queryParams.size());
|
assertEquals(0, queryParams.size());
|
||||||
assertEquals(0, cookieParams.size());
|
assertEquals(0, cookieParams.size());
|
||||||
assertEquals(1, headerParams.size());
|
assertEquals(1, headerParams.size());
|
||||||
// the string below is base64-encoded result of "my-username:my-password" with the "Basic " prefix
|
// the string below is base64-encoded result of "my-username:my-password" with the "Basic "
|
||||||
|
// prefix
|
||||||
String expected = "Basic bXktdXNlcm5hbWU6bXktcGFzc3dvcmQ=";
|
String expected = "Basic bXktdXNlcm5hbWU6bXktcGFzc3dvcmQ=";
|
||||||
assertEquals(expected, headerParams.get("Authorization"));
|
assertEquals(expected, headerParams.get("Authorization"));
|
||||||
|
|
||||||
|
@ -1,7 +1,19 @@
|
|||||||
package org.openapitools.client.auth;
|
package org.openapitools.client.auth;
|
||||||
|
|
||||||
import okhttp3.Interceptor.Chain;
|
import static org.junit.Assert.assertEquals;
|
||||||
|
import static org.mockito.ArgumentMatchers.any;
|
||||||
|
import static org.mockito.Mockito.mock;
|
||||||
|
import static org.mockito.Mockito.when;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.net.HttpURLConnection;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.concurrent.Callable;
|
||||||
|
import java.util.concurrent.ExecutorService;
|
||||||
|
import java.util.concurrent.Executors;
|
||||||
|
import java.util.concurrent.Future;
|
||||||
import okhttp3.*;
|
import okhttp3.*;
|
||||||
|
import okhttp3.Interceptor.Chain;
|
||||||
import okhttp3.Response.Builder;
|
import okhttp3.Response.Builder;
|
||||||
import org.apache.commons.lang3.reflect.FieldUtils;
|
import org.apache.commons.lang3.reflect.FieldUtils;
|
||||||
import org.apache.oltu.oauth2.client.OAuthClient;
|
import org.apache.oltu.oauth2.client.OAuthClient;
|
||||||
@ -14,27 +26,19 @@ import org.junit.Test;
|
|||||||
import org.mockito.invocation.InvocationOnMock;
|
import org.mockito.invocation.InvocationOnMock;
|
||||||
import org.mockito.stubbing.Answer;
|
import org.mockito.stubbing.Answer;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.net.HttpURLConnection;
|
|
||||||
import java.util.Collections;
|
|
||||||
import java.util.concurrent.Callable;
|
|
||||||
import java.util.concurrent.ExecutorService;
|
|
||||||
import java.util.concurrent.Executors;
|
|
||||||
import java.util.concurrent.Future;
|
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
|
||||||
import static org.mockito.ArgumentMatchers.any;
|
|
||||||
import static org.mockito.Mockito.mock;
|
|
||||||
import static org.mockito.Mockito.when;
|
|
||||||
|
|
||||||
public class RetryingOAuthTest {
|
public class RetryingOAuthTest {
|
||||||
|
|
||||||
private RetryingOAuth oauth;
|
private RetryingOAuth oauth;
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
oauth = new RetryingOAuth("_clientId", "_clientSecret", OAuthFlow.accessCode,
|
oauth =
|
||||||
"https://token.example.com", Collections.<String, String>emptyMap());
|
new RetryingOAuth(
|
||||||
|
"_clientId",
|
||||||
|
"_clientSecret",
|
||||||
|
OAuthFlow.accessCode,
|
||||||
|
"https://token.example.com",
|
||||||
|
Collections.<String, String>emptyMap());
|
||||||
oauth.setAccessToken("expired-access-token");
|
oauth.setAccessToken("expired-access-token");
|
||||||
FieldUtils.writeField(oauth, "oAuthClient", mockOAuthClient(), true);
|
FieldUtils.writeField(oauth, "oAuthClient", mockOAuthClient(), true);
|
||||||
}
|
}
|
||||||
@ -48,12 +52,13 @@ public class RetryingOAuthTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testTwoConcurrentRequestsUnauthorized() throws Exception {
|
public void testTwoConcurrentRequestsUnauthorized() throws Exception {
|
||||||
|
|
||||||
Callable<Response> callable = new Callable<Response>() {
|
Callable<Response> callable =
|
||||||
@Override
|
new Callable<Response>() {
|
||||||
public Response call() throws Exception {
|
@Override
|
||||||
return oauth.intercept(mockChain());
|
public Response call() throws Exception {
|
||||||
}
|
return oauth.intercept(mockChain());
|
||||||
};
|
}
|
||||||
|
};
|
||||||
ExecutorService executor = Executors.newFixedThreadPool(2);
|
ExecutorService executor = Executors.newFixedThreadPool(2);
|
||||||
try {
|
try {
|
||||||
Future<Response> response1 = executor.submit(callable);
|
Future<Response> response1 = executor.submit(callable);
|
||||||
@ -68,14 +73,16 @@ public class RetryingOAuthTest {
|
|||||||
|
|
||||||
private OAuthClient mockOAuthClient() throws OAuthProblemException, OAuthSystemException {
|
private OAuthClient mockOAuthClient() throws OAuthProblemException, OAuthSystemException {
|
||||||
OAuthJSONAccessTokenResponse response = mock(OAuthJSONAccessTokenResponse.class);
|
OAuthJSONAccessTokenResponse response = mock(OAuthJSONAccessTokenResponse.class);
|
||||||
when(response.getAccessToken()).thenAnswer(new Answer<String>() {
|
when(response.getAccessToken())
|
||||||
@Override
|
.thenAnswer(
|
||||||
public String answer(InvocationOnMock invocation) throws Throwable {
|
new Answer<String>() {
|
||||||
// sleep ensures that the bug is triggered.
|
@Override
|
||||||
Thread.sleep(1000);
|
public String answer(InvocationOnMock invocation) throws Throwable {
|
||||||
return "new-access-token";
|
// sleep ensures that the bug is triggered.
|
||||||
}
|
Thread.sleep(1000);
|
||||||
});
|
return "new-access-token";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
OAuthClient client = mock(OAuthClient.class);
|
OAuthClient client = mock(OAuthClient.class);
|
||||||
when(client.accessToken(any(OAuthClientRequest.class))).thenReturn(response);
|
when(client.accessToken(any(OAuthClientRequest.class))).thenReturn(response);
|
||||||
@ -85,27 +92,31 @@ public class RetryingOAuthTest {
|
|||||||
private Chain mockChain() throws IOException {
|
private Chain mockChain() throws IOException {
|
||||||
Chain chain = mock(Chain.class);
|
Chain chain = mock(Chain.class);
|
||||||
|
|
||||||
final Request request = new Request.Builder()
|
final Request request = new Request.Builder().url("https://api.example.com").build();
|
||||||
.url("https://api.example.com")
|
|
||||||
.build();
|
|
||||||
when(chain.request()).thenReturn(request);
|
when(chain.request()).thenReturn(request);
|
||||||
|
|
||||||
when(chain.proceed(any(Request.class))).thenAnswer(new Answer<Response>() {
|
when(chain.proceed(any(Request.class)))
|
||||||
@Override
|
.thenAnswer(
|
||||||
public Response answer(InvocationOnMock inv) {
|
new Answer<Response>() {
|
||||||
Request r = inv.getArgument(0);
|
@Override
|
||||||
int responseCode = "Bearer new-access-token".equals(r.header("Authorization"))
|
public Response answer(InvocationOnMock inv) {
|
||||||
? HttpURLConnection.HTTP_OK
|
Request r = inv.getArgument(0);
|
||||||
: HttpURLConnection.HTTP_UNAUTHORIZED;
|
int responseCode =
|
||||||
return new Builder()
|
"Bearer new-access-token".equals(r.header("Authorization"))
|
||||||
.protocol(Protocol.HTTP_1_0)
|
? HttpURLConnection.HTTP_OK
|
||||||
.message("sup")
|
: HttpURLConnection.HTTP_UNAUTHORIZED;
|
||||||
.request(request)
|
return new Builder()
|
||||||
.body(ResponseBody.create(new byte[0], MediaType.get("application/test")))
|
.protocol(Protocol.HTTP_1_0)
|
||||||
.code(responseCode)
|
.message("sup")
|
||||||
.build();
|
.request(request)
|
||||||
}
|
.body(
|
||||||
});
|
ResponseBody.create(
|
||||||
|
new byte[0],
|
||||||
|
MediaType.get("application/test")))
|
||||||
|
.code(responseCode)
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return chain;
|
return chain;
|
||||||
}
|
}
|
||||||
|
@ -3,51 +3,31 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for AdditionalPropertiesAnyType */
|
||||||
/**
|
|
||||||
* Model tests for AdditionalPropertiesAnyType
|
|
||||||
*/
|
|
||||||
public class AdditionalPropertiesAnyTypeTest {
|
public class AdditionalPropertiesAnyTypeTest {
|
||||||
private final AdditionalPropertiesAnyType model = new AdditionalPropertiesAnyType();
|
private final AdditionalPropertiesAnyType model = new AdditionalPropertiesAnyType();
|
||||||
|
|
||||||
/**
|
/** Model tests for AdditionalPropertiesAnyType */
|
||||||
* Model tests for AdditionalPropertiesAnyType
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testAdditionalPropertiesAnyType() {
|
public void testAdditionalPropertiesAnyType() {
|
||||||
// TODO: test AdditionalPropertiesAnyType
|
// TODO: test AdditionalPropertiesAnyType
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'name' */
|
||||||
* Test the property 'name'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void nameTest() {
|
public void nameTest() {
|
||||||
// TODO: test name
|
// TODO: test name
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,52 +3,31 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for AdditionalPropertiesArray */
|
||||||
/**
|
|
||||||
* Model tests for AdditionalPropertiesArray
|
|
||||||
*/
|
|
||||||
public class AdditionalPropertiesArrayTest {
|
public class AdditionalPropertiesArrayTest {
|
||||||
private final AdditionalPropertiesArray model = new AdditionalPropertiesArray();
|
private final AdditionalPropertiesArray model = new AdditionalPropertiesArray();
|
||||||
|
|
||||||
/**
|
/** Model tests for AdditionalPropertiesArray */
|
||||||
* Model tests for AdditionalPropertiesArray
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testAdditionalPropertiesArray() {
|
public void testAdditionalPropertiesArray() {
|
||||||
// TODO: test AdditionalPropertiesArray
|
// TODO: test AdditionalPropertiesArray
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'name' */
|
||||||
* Test the property 'name'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void nameTest() {
|
public void nameTest() {
|
||||||
// TODO: test name
|
// TODO: test name
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,51 +3,31 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for AdditionalPropertiesBoolean */
|
||||||
/**
|
|
||||||
* Model tests for AdditionalPropertiesBoolean
|
|
||||||
*/
|
|
||||||
public class AdditionalPropertiesBooleanTest {
|
public class AdditionalPropertiesBooleanTest {
|
||||||
private final AdditionalPropertiesBoolean model = new AdditionalPropertiesBoolean();
|
private final AdditionalPropertiesBoolean model = new AdditionalPropertiesBoolean();
|
||||||
|
|
||||||
/**
|
/** Model tests for AdditionalPropertiesBoolean */
|
||||||
* Model tests for AdditionalPropertiesBoolean
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testAdditionalPropertiesBoolean() {
|
public void testAdditionalPropertiesBoolean() {
|
||||||
// TODO: test AdditionalPropertiesBoolean
|
// TODO: test AdditionalPropertiesBoolean
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'name' */
|
||||||
* Test the property 'name'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void nameTest() {
|
public void nameTest() {
|
||||||
// TODO: test name
|
// TODO: test name
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,60 +3,37 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for AdditionalPropertiesClass */
|
||||||
/**
|
|
||||||
* Model tests for AdditionalPropertiesClass
|
|
||||||
*/
|
|
||||||
public class AdditionalPropertiesClassTest {
|
public class AdditionalPropertiesClassTest {
|
||||||
private final AdditionalPropertiesClass model = new AdditionalPropertiesClass();
|
private final AdditionalPropertiesClass model = new AdditionalPropertiesClass();
|
||||||
|
|
||||||
/**
|
/** Model tests for AdditionalPropertiesClass */
|
||||||
* Model tests for AdditionalPropertiesClass
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testAdditionalPropertiesClass() {
|
public void testAdditionalPropertiesClass() {
|
||||||
// TODO: test AdditionalPropertiesClass
|
// TODO: test AdditionalPropertiesClass
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'mapProperty' */
|
||||||
* Test the property 'mapProperty'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void mapPropertyTest() {
|
public void mapPropertyTest() {
|
||||||
// TODO: test mapProperty
|
// TODO: test mapProperty
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'mapOfMapProperty' */
|
||||||
* Test the property 'mapOfMapProperty'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void mapOfMapPropertyTest() {
|
public void mapOfMapPropertyTest() {
|
||||||
// TODO: test mapOfMapProperty
|
// TODO: test mapOfMapProperty
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,51 +3,31 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for AdditionalPropertiesInteger */
|
||||||
/**
|
|
||||||
* Model tests for AdditionalPropertiesInteger
|
|
||||||
*/
|
|
||||||
public class AdditionalPropertiesIntegerTest {
|
public class AdditionalPropertiesIntegerTest {
|
||||||
private final AdditionalPropertiesInteger model = new AdditionalPropertiesInteger();
|
private final AdditionalPropertiesInteger model = new AdditionalPropertiesInteger();
|
||||||
|
|
||||||
/**
|
/** Model tests for AdditionalPropertiesInteger */
|
||||||
* Model tests for AdditionalPropertiesInteger
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testAdditionalPropertiesInteger() {
|
public void testAdditionalPropertiesInteger() {
|
||||||
// TODO: test AdditionalPropertiesInteger
|
// TODO: test AdditionalPropertiesInteger
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'name' */
|
||||||
* Test the property 'name'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void nameTest() {
|
public void nameTest() {
|
||||||
// TODO: test name
|
// TODO: test name
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,52 +3,31 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for AdditionalPropertiesNumber */
|
||||||
/**
|
|
||||||
* Model tests for AdditionalPropertiesNumber
|
|
||||||
*/
|
|
||||||
public class AdditionalPropertiesNumberTest {
|
public class AdditionalPropertiesNumberTest {
|
||||||
private final AdditionalPropertiesNumber model = new AdditionalPropertiesNumber();
|
private final AdditionalPropertiesNumber model = new AdditionalPropertiesNumber();
|
||||||
|
|
||||||
/**
|
/** Model tests for AdditionalPropertiesNumber */
|
||||||
* Model tests for AdditionalPropertiesNumber
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testAdditionalPropertiesNumber() {
|
public void testAdditionalPropertiesNumber() {
|
||||||
// TODO: test AdditionalPropertiesNumber
|
// TODO: test AdditionalPropertiesNumber
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'name' */
|
||||||
* Test the property 'name'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void nameTest() {
|
public void nameTest() {
|
||||||
// TODO: test name
|
// TODO: test name
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,51 +3,31 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for AdditionalPropertiesObject */
|
||||||
/**
|
|
||||||
* Model tests for AdditionalPropertiesObject
|
|
||||||
*/
|
|
||||||
public class AdditionalPropertiesObjectTest {
|
public class AdditionalPropertiesObjectTest {
|
||||||
private final AdditionalPropertiesObject model = new AdditionalPropertiesObject();
|
private final AdditionalPropertiesObject model = new AdditionalPropertiesObject();
|
||||||
|
|
||||||
/**
|
/** Model tests for AdditionalPropertiesObject */
|
||||||
* Model tests for AdditionalPropertiesObject
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testAdditionalPropertiesObject() {
|
public void testAdditionalPropertiesObject() {
|
||||||
// TODO: test AdditionalPropertiesObject
|
// TODO: test AdditionalPropertiesObject
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'name' */
|
||||||
* Test the property 'name'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void nameTest() {
|
public void nameTest() {
|
||||||
// TODO: test name
|
// TODO: test name
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,51 +3,31 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for AdditionalPropertiesString */
|
||||||
/**
|
|
||||||
* Model tests for AdditionalPropertiesString
|
|
||||||
*/
|
|
||||||
public class AdditionalPropertiesStringTest {
|
public class AdditionalPropertiesStringTest {
|
||||||
private final AdditionalPropertiesString model = new AdditionalPropertiesString();
|
private final AdditionalPropertiesString model = new AdditionalPropertiesString();
|
||||||
|
|
||||||
/**
|
/** Model tests for AdditionalPropertiesString */
|
||||||
* Model tests for AdditionalPropertiesString
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testAdditionalPropertiesString() {
|
public void testAdditionalPropertiesString() {
|
||||||
// TODO: test AdditionalPropertiesString
|
// TODO: test AdditionalPropertiesString
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'name' */
|
||||||
* Test the property 'name'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void nameTest() {
|
public void nameTest() {
|
||||||
// TODO: test name
|
// TODO: test name
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,57 +3,37 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for Animal */
|
||||||
/**
|
|
||||||
* Model tests for Animal
|
|
||||||
*/
|
|
||||||
public class AnimalTest {
|
public class AnimalTest {
|
||||||
private final Animal model = new Animal();
|
private final Animal model = new Animal();
|
||||||
|
|
||||||
/**
|
/** Model tests for Animal */
|
||||||
* Model tests for Animal
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testAnimal() {
|
public void testAnimal() {
|
||||||
// TODO: test Animal
|
// TODO: test Animal
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'className' */
|
||||||
* Test the property 'className'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void classNameTest() {
|
public void classNameTest() {
|
||||||
// TODO: test className
|
// TODO: test className
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'color' */
|
||||||
* Test the property 'color'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void colorTest() {
|
public void colorTest() {
|
||||||
// TODO: test color
|
// TODO: test color
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,49 +3,33 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import org.apache.commons.lang3.builder.EqualsBuilder;
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
/**
|
/** Model tests for ArrayOfArrayOfNumberOnly */
|
||||||
* Model tests for ArrayOfArrayOfNumberOnly
|
|
||||||
*/
|
|
||||||
public class ArrayOfArrayOfNumberOnlyTest {
|
public class ArrayOfArrayOfNumberOnlyTest {
|
||||||
private final ArrayOfArrayOfNumberOnly model = new ArrayOfArrayOfNumberOnly();
|
private final ArrayOfArrayOfNumberOnly model = new ArrayOfArrayOfNumberOnly();
|
||||||
|
|
||||||
/**
|
/** Model tests for ArrayOfArrayOfNumberOnly */
|
||||||
* Model tests for ArrayOfArrayOfNumberOnly
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void test() {
|
public void test() {
|
||||||
// TODO: test ArrayOfArrayOfNumberOnly
|
// TODO: test ArrayOfArrayOfNumberOnly
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'arrayArrayNumber' */
|
||||||
* Test the property 'arrayArrayNumber'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void arrayArrayNumberTest() {
|
public void arrayArrayNumberTest() {
|
||||||
BigDecimal b1 = new BigDecimal("12.3");
|
BigDecimal b1 = new BigDecimal("12.3");
|
||||||
@ -68,5 +52,4 @@ public class ArrayOfArrayOfNumberOnlyTest {
|
|||||||
|
|
||||||
Assert.assertTrue(model2.equals(model));
|
Assert.assertTrue(model2.equals(model));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,52 +3,31 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for ArrayOfNumberOnly */
|
||||||
/**
|
|
||||||
* Model tests for ArrayOfNumberOnly
|
|
||||||
*/
|
|
||||||
public class ArrayOfNumberOnlyTest {
|
public class ArrayOfNumberOnlyTest {
|
||||||
private final ArrayOfNumberOnly model = new ArrayOfNumberOnly();
|
private final ArrayOfNumberOnly model = new ArrayOfNumberOnly();
|
||||||
|
|
||||||
/**
|
/** Model tests for ArrayOfNumberOnly */
|
||||||
* Model tests for ArrayOfNumberOnly
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testArrayOfNumberOnly() {
|
public void testArrayOfNumberOnly() {
|
||||||
// TODO: test ArrayOfNumberOnly
|
// TODO: test ArrayOfNumberOnly
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'arrayNumber' */
|
||||||
* Test the property 'arrayNumber'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void arrayNumberTest() {
|
public void arrayNumberTest() {
|
||||||
// TODO: test arrayNumber
|
// TODO: test arrayNumber
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,68 +3,43 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import org.openapitools.client.model.ReadOnlyFirst;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for ArrayTest */
|
||||||
/**
|
|
||||||
* Model tests for ArrayTest
|
|
||||||
*/
|
|
||||||
public class ArrayTestTest {
|
public class ArrayTestTest {
|
||||||
private final ArrayTest model = new ArrayTest();
|
private final ArrayTest model = new ArrayTest();
|
||||||
|
|
||||||
/**
|
/** Model tests for ArrayTest */
|
||||||
* Model tests for ArrayTest
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testArrayTest() {
|
public void testArrayTest() {
|
||||||
// TODO: test ArrayTest
|
// TODO: test ArrayTest
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'arrayOfString' */
|
||||||
* Test the property 'arrayOfString'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void arrayOfStringTest() {
|
public void arrayOfStringTest() {
|
||||||
// TODO: test arrayOfString
|
// TODO: test arrayOfString
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'arrayArrayOfInteger' */
|
||||||
* Test the property 'arrayArrayOfInteger'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void arrayArrayOfIntegerTest() {
|
public void arrayArrayOfIntegerTest() {
|
||||||
// TODO: test arrayArrayOfInteger
|
// TODO: test arrayArrayOfInteger
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'arrayArrayOfModel' */
|
||||||
* Test the property 'arrayArrayOfModel'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void arrayArrayOfModelTest() {
|
public void arrayArrayOfModelTest() {
|
||||||
// TODO: test arrayArrayOfModel
|
// TODO: test arrayArrayOfModel
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,49 +3,31 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for BigCatAllOf */
|
||||||
/**
|
|
||||||
* Model tests for BigCatAllOf
|
|
||||||
*/
|
|
||||||
public class BigCatAllOfTest {
|
public class BigCatAllOfTest {
|
||||||
private final BigCatAllOf model = new BigCatAllOf();
|
private final BigCatAllOf model = new BigCatAllOf();
|
||||||
|
|
||||||
/**
|
/** Model tests for BigCatAllOf */
|
||||||
* Model tests for BigCatAllOf
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testBigCatAllOf() {
|
public void testBigCatAllOf() {
|
||||||
// TODO: test BigCatAllOf
|
// TODO: test BigCatAllOf
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'kind' */
|
||||||
* Test the property 'kind'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void kindTest() {
|
public void kindTest() {
|
||||||
// TODO: test kind
|
// TODO: test kind
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,75 +3,49 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.openapitools.client.model.BigCatAllOf;
|
|
||||||
import org.openapitools.client.model.Cat;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for BigCat */
|
||||||
/**
|
|
||||||
* Model tests for BigCat
|
|
||||||
*/
|
|
||||||
public class BigCatTest {
|
public class BigCatTest {
|
||||||
private final BigCat model = new BigCat();
|
private final BigCat model = new BigCat();
|
||||||
|
|
||||||
/**
|
/** Model tests for BigCat */
|
||||||
* Model tests for BigCat
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testBigCat() {
|
public void testBigCat() {
|
||||||
// TODO: test BigCat
|
// TODO: test BigCat
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'className' */
|
||||||
* Test the property 'className'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void classNameTest() {
|
public void classNameTest() {
|
||||||
// TODO: test className
|
// TODO: test className
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'color' */
|
||||||
* Test the property 'color'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void colorTest() {
|
public void colorTest() {
|
||||||
// TODO: test color
|
// TODO: test color
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'declawed' */
|
||||||
* Test the property 'declawed'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void declawedTest() {
|
public void declawedTest() {
|
||||||
// TODO: test declawed
|
// TODO: test declawed
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'kind' */
|
||||||
* Test the property 'kind'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void kindTest() {
|
public void kindTest() {
|
||||||
// TODO: test kind
|
// TODO: test kind
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,89 +3,61 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for Capitalization */
|
||||||
/**
|
|
||||||
* Model tests for Capitalization
|
|
||||||
*/
|
|
||||||
public class CapitalizationTest {
|
public class CapitalizationTest {
|
||||||
private final Capitalization model = new Capitalization();
|
private final Capitalization model = new Capitalization();
|
||||||
|
|
||||||
/**
|
/** Model tests for Capitalization */
|
||||||
* Model tests for Capitalization
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testCapitalization() {
|
public void testCapitalization() {
|
||||||
// TODO: test Capitalization
|
// TODO: test Capitalization
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'smallCamel' */
|
||||||
* Test the property 'smallCamel'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void smallCamelTest() {
|
public void smallCamelTest() {
|
||||||
// TODO: test smallCamel
|
// TODO: test smallCamel
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'capitalCamel' */
|
||||||
* Test the property 'capitalCamel'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void capitalCamelTest() {
|
public void capitalCamelTest() {
|
||||||
// TODO: test capitalCamel
|
// TODO: test capitalCamel
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'smallSnake' */
|
||||||
* Test the property 'smallSnake'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void smallSnakeTest() {
|
public void smallSnakeTest() {
|
||||||
// TODO: test smallSnake
|
// TODO: test smallSnake
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'capitalSnake' */
|
||||||
* Test the property 'capitalSnake'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void capitalSnakeTest() {
|
public void capitalSnakeTest() {
|
||||||
// TODO: test capitalSnake
|
// TODO: test capitalSnake
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'scAETHFlowPoints' */
|
||||||
* Test the property 'scAETHFlowPoints'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void scAETHFlowPointsTest() {
|
public void scAETHFlowPointsTest() {
|
||||||
// TODO: test scAETHFlowPoints
|
// TODO: test scAETHFlowPoints
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'ATT_NAME' */
|
||||||
* Test the property 'ATT_NAME'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void ATT_NAMETest() {
|
public void ATT_NAMETest() {
|
||||||
// TODO: test ATT_NAME
|
// TODO: test ATT_NAME
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,49 +3,31 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for CatAllOf */
|
||||||
/**
|
|
||||||
* Model tests for CatAllOf
|
|
||||||
*/
|
|
||||||
public class CatAllOfTest {
|
public class CatAllOfTest {
|
||||||
private final CatAllOf model = new CatAllOf();
|
private final CatAllOf model = new CatAllOf();
|
||||||
|
|
||||||
/**
|
/** Model tests for CatAllOf */
|
||||||
* Model tests for CatAllOf
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testCatAllOf() {
|
public void testCatAllOf() {
|
||||||
// TODO: test CatAllOf
|
// TODO: test CatAllOf
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'declawed' */
|
||||||
* Test the property 'declawed'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void declawedTest() {
|
public void declawedTest() {
|
||||||
// TODO: test declawed
|
// TODO: test declawed
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,66 +3,43 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.openapitools.client.model.Animal;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for Cat */
|
||||||
/**
|
|
||||||
* Model tests for Cat
|
|
||||||
*/
|
|
||||||
public class CatTest {
|
public class CatTest {
|
||||||
private final Cat model = new Cat();
|
private final Cat model = new Cat();
|
||||||
|
|
||||||
/**
|
/** Model tests for Cat */
|
||||||
* Model tests for Cat
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testCat() {
|
public void testCat() {
|
||||||
// TODO: test Cat
|
// TODO: test Cat
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'className' */
|
||||||
* Test the property 'className'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void classNameTest() {
|
public void classNameTest() {
|
||||||
// TODO: test className
|
// TODO: test className
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'color' */
|
||||||
* Test the property 'color'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void colorTest() {
|
public void colorTest() {
|
||||||
// TODO: test color
|
// TODO: test color
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'declawed' */
|
||||||
* Test the property 'declawed'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void declawedTest() {
|
public void declawedTest() {
|
||||||
// TODO: test declawed
|
// TODO: test declawed
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,57 +3,37 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for Category */
|
||||||
/**
|
|
||||||
* Model tests for Category
|
|
||||||
*/
|
|
||||||
public class CategoryTest {
|
public class CategoryTest {
|
||||||
private final Category model = new Category();
|
private final Category model = new Category();
|
||||||
|
|
||||||
/**
|
/** Model tests for Category */
|
||||||
* Model tests for Category
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testCategory() {
|
public void testCategory() {
|
||||||
// TODO: test Category
|
// TODO: test Category
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'id' */
|
||||||
* Test the property 'id'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void idTest() {
|
public void idTest() {
|
||||||
// TODO: test id
|
// TODO: test id
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'name' */
|
||||||
* Test the property 'name'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void nameTest() {
|
public void nameTest() {
|
||||||
// TODO: test name
|
// TODO: test name
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,49 +3,31 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for ClassModel */
|
||||||
/**
|
|
||||||
* Model tests for ClassModel
|
|
||||||
*/
|
|
||||||
public class ClassModelTest {
|
public class ClassModelTest {
|
||||||
private final ClassModel model = new ClassModel();
|
private final ClassModel model = new ClassModel();
|
||||||
|
|
||||||
/**
|
/** Model tests for ClassModel */
|
||||||
* Model tests for ClassModel
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testClassModel() {
|
public void testClassModel() {
|
||||||
// TODO: test ClassModel
|
// TODO: test ClassModel
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'propertyClass' */
|
||||||
* Test the property 'propertyClass'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void propertyClassTest() {
|
public void propertyClassTest() {
|
||||||
// TODO: test propertyClass
|
// TODO: test propertyClass
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,49 +3,31 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for Client */
|
||||||
/**
|
|
||||||
* Model tests for Client
|
|
||||||
*/
|
|
||||||
public class ClientTest {
|
public class ClientTest {
|
||||||
private final Client model = new Client();
|
private final Client model = new Client();
|
||||||
|
|
||||||
/**
|
/** Model tests for Client */
|
||||||
* Model tests for Client
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testClient() {
|
public void testClient() {
|
||||||
// TODO: test Client
|
// TODO: test Client
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'client' */
|
||||||
* Test the property 'client'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void clientTest() {
|
public void clientTest() {
|
||||||
// TODO: test client
|
// TODO: test client
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,49 +3,31 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for DogAllOf */
|
||||||
/**
|
|
||||||
* Model tests for DogAllOf
|
|
||||||
*/
|
|
||||||
public class DogAllOfTest {
|
public class DogAllOfTest {
|
||||||
private final DogAllOf model = new DogAllOf();
|
private final DogAllOf model = new DogAllOf();
|
||||||
|
|
||||||
/**
|
/** Model tests for DogAllOf */
|
||||||
* Model tests for DogAllOf
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testDogAllOf() {
|
public void testDogAllOf() {
|
||||||
// TODO: test DogAllOf
|
// TODO: test DogAllOf
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'breed' */
|
||||||
* Test the property 'breed'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void breedTest() {
|
public void breedTest() {
|
||||||
// TODO: test breed
|
// TODO: test breed
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,66 +3,43 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.openapitools.client.model.Animal;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for Dog */
|
||||||
/**
|
|
||||||
* Model tests for Dog
|
|
||||||
*/
|
|
||||||
public class DogTest {
|
public class DogTest {
|
||||||
private final Dog model = new Dog();
|
private final Dog model = new Dog();
|
||||||
|
|
||||||
/**
|
/** Model tests for Dog */
|
||||||
* Model tests for Dog
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testDog() {
|
public void testDog() {
|
||||||
// TODO: test Dog
|
// TODO: test Dog
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'className' */
|
||||||
* Test the property 'className'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void classNameTest() {
|
public void classNameTest() {
|
||||||
// TODO: test className
|
// TODO: test className
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'color' */
|
||||||
* Test the property 'color'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void colorTest() {
|
public void colorTest() {
|
||||||
// TODO: test color
|
// TODO: test color
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'breed' */
|
||||||
* Test the property 'breed'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void breedTest() {
|
public void breedTest() {
|
||||||
// TODO: test breed
|
// TODO: test breed
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,59 +3,37 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for EnumArrays */
|
||||||
/**
|
|
||||||
* Model tests for EnumArrays
|
|
||||||
*/
|
|
||||||
public class EnumArraysTest {
|
public class EnumArraysTest {
|
||||||
private final EnumArrays model = new EnumArrays();
|
private final EnumArrays model = new EnumArrays();
|
||||||
|
|
||||||
/**
|
/** Model tests for EnumArrays */
|
||||||
* Model tests for EnumArrays
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testEnumArrays() {
|
public void testEnumArrays() {
|
||||||
// TODO: test EnumArrays
|
// TODO: test EnumArrays
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'justSymbol' */
|
||||||
* Test the property 'justSymbol'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void justSymbolTest() {
|
public void justSymbolTest() {
|
||||||
// TODO: test justSymbol
|
// TODO: test justSymbol
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'arrayEnum' */
|
||||||
* Test the property 'arrayEnum'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void arrayEnumTest() {
|
public void arrayEnumTest() {
|
||||||
// TODO: test arrayEnum
|
// TODO: test arrayEnum
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,32 +3,23 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for EnumClass */
|
||||||
/**
|
|
||||||
* Model tests for EnumClass
|
|
||||||
*/
|
|
||||||
public class EnumClassTest {
|
public class EnumClassTest {
|
||||||
/**
|
/** Model tests for EnumClass */
|
||||||
* Model tests for EnumClass
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testEnumClass() {
|
public void testEnumClass() {
|
||||||
// TODO: test EnumClass
|
// TODO: test EnumClass
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,82 +3,55 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.openapitools.client.model.OuterEnum;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for EnumTest */
|
||||||
/**
|
|
||||||
* Model tests for EnumTest
|
|
||||||
*/
|
|
||||||
public class EnumTestTest {
|
public class EnumTestTest {
|
||||||
private final EnumTest model = new EnumTest();
|
private final EnumTest model = new EnumTest();
|
||||||
|
|
||||||
/**
|
/** Model tests for EnumTest */
|
||||||
* Model tests for EnumTest
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testEnumTest() {
|
public void testEnumTest() {
|
||||||
// TODO: test EnumTest
|
// TODO: test EnumTest
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'enumString' */
|
||||||
* Test the property 'enumString'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void enumStringTest() {
|
public void enumStringTest() {
|
||||||
// TODO: test enumString
|
// TODO: test enumString
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'enumStringRequired' */
|
||||||
* Test the property 'enumStringRequired'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void enumStringRequiredTest() {
|
public void enumStringRequiredTest() {
|
||||||
// TODO: test enumStringRequired
|
// TODO: test enumStringRequired
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'enumInteger' */
|
||||||
* Test the property 'enumInteger'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void enumIntegerTest() {
|
public void enumIntegerTest() {
|
||||||
// TODO: test enumInteger
|
// TODO: test enumInteger
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'enumNumber' */
|
||||||
* Test the property 'enumNumber'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void enumNumberTest() {
|
public void enumNumberTest() {
|
||||||
// TODO: test enumNumber
|
// TODO: test enumNumber
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'outerEnum' */
|
||||||
* Test the property 'outerEnum'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void outerEnumTest() {
|
public void outerEnumTest() {
|
||||||
// TODO: test outerEnum
|
// TODO: test outerEnum
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
|
import com.google.gson.Gson;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
public class EnumValueTest {
|
public class EnumValueTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -3,59 +3,37 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for FileSchemaTestClass */
|
||||||
/**
|
|
||||||
* Model tests for FileSchemaTestClass
|
|
||||||
*/
|
|
||||||
public class FileSchemaTestClassTest {
|
public class FileSchemaTestClassTest {
|
||||||
private final FileSchemaTestClass model = new FileSchemaTestClass();
|
private final FileSchemaTestClass model = new FileSchemaTestClass();
|
||||||
|
|
||||||
/**
|
/** Model tests for FileSchemaTestClass */
|
||||||
* Model tests for FileSchemaTestClass
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testFileSchemaTestClass() {
|
public void testFileSchemaTestClass() {
|
||||||
// TODO: test FileSchemaTestClass
|
// TODO: test FileSchemaTestClass
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'file' */
|
||||||
* Test the property 'file'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void fileTest() {
|
public void fileTest() {
|
||||||
// TODO: test file
|
// TODO: test file
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'files' */
|
||||||
* Test the property 'files'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void filesTest() {
|
public void filesTest() {
|
||||||
// TODO: test files
|
// TODO: test files
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,150 +3,103 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.util.UUID;
|
|
||||||
import org.threeten.bp.LocalDate;
|
|
||||||
import org.threeten.bp.OffsetDateTime;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for FormatTest */
|
||||||
/**
|
|
||||||
* Model tests for FormatTest
|
|
||||||
*/
|
|
||||||
public class FormatTestTest {
|
public class FormatTestTest {
|
||||||
private final FormatTest model = new FormatTest();
|
private final FormatTest model = new FormatTest();
|
||||||
|
|
||||||
/**
|
/** Model tests for FormatTest */
|
||||||
* Model tests for FormatTest
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testFormatTest() {
|
public void testFormatTest() {
|
||||||
// TODO: test FormatTest
|
// TODO: test FormatTest
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'integer' */
|
||||||
* Test the property 'integer'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void integerTest() {
|
public void integerTest() {
|
||||||
// TODO: test integer
|
// TODO: test integer
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'int32' */
|
||||||
* Test the property 'int32'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void int32Test() {
|
public void int32Test() {
|
||||||
// TODO: test int32
|
// TODO: test int32
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'int64' */
|
||||||
* Test the property 'int64'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void int64Test() {
|
public void int64Test() {
|
||||||
// TODO: test int64
|
// TODO: test int64
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'number' */
|
||||||
* Test the property 'number'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void numberTest() {
|
public void numberTest() {
|
||||||
// TODO: test number
|
// TODO: test number
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property '_float' */
|
||||||
* Test the property '_float'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void _floatTest() {
|
public void _floatTest() {
|
||||||
// TODO: test _float
|
// TODO: test _float
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property '_double' */
|
||||||
* Test the property '_double'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void _doubleTest() {
|
public void _doubleTest() {
|
||||||
// TODO: test _double
|
// TODO: test _double
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'string' */
|
||||||
* Test the property 'string'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void stringTest() {
|
public void stringTest() {
|
||||||
// TODO: test string
|
// TODO: test string
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property '_byte' */
|
||||||
* Test the property '_byte'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void _byteTest() {
|
public void _byteTest() {
|
||||||
// TODO: test _byte
|
// TODO: test _byte
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'binary' */
|
||||||
* Test the property 'binary'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void binaryTest() {
|
public void binaryTest() {
|
||||||
// TODO: test binary
|
// TODO: test binary
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'date' */
|
||||||
* Test the property 'date'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void dateTest() {
|
public void dateTest() {
|
||||||
// TODO: test date
|
// TODO: test date
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'dateTime' */
|
||||||
* Test the property 'dateTime'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void dateTimeTest() {
|
public void dateTimeTest() {
|
||||||
// TODO: test dateTime
|
// TODO: test dateTime
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'uuid' */
|
||||||
* Test the property 'uuid'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void uuidTest() {
|
public void uuidTest() {
|
||||||
// TODO: test uuid
|
// TODO: test uuid
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'password' */
|
||||||
* Test the property 'password'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void passwordTest() {
|
public void passwordTest() {
|
||||||
// TODO: test password
|
// TODO: test password
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,57 +3,37 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for HasOnlyReadOnly */
|
||||||
/**
|
|
||||||
* Model tests for HasOnlyReadOnly
|
|
||||||
*/
|
|
||||||
public class HasOnlyReadOnlyTest {
|
public class HasOnlyReadOnlyTest {
|
||||||
private final HasOnlyReadOnly model = new HasOnlyReadOnly();
|
private final HasOnlyReadOnly model = new HasOnlyReadOnly();
|
||||||
|
|
||||||
/**
|
/** Model tests for HasOnlyReadOnly */
|
||||||
* Model tests for HasOnlyReadOnly
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testHasOnlyReadOnly() {
|
public void testHasOnlyReadOnly() {
|
||||||
// TODO: test HasOnlyReadOnly
|
// TODO: test HasOnlyReadOnly
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'bar' */
|
||||||
* Test the property 'bar'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void barTest() {
|
public void barTest() {
|
||||||
// TODO: test bar
|
// TODO: test bar
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'foo' */
|
||||||
* Test the property 'foo'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void fooTest() {
|
public void fooTest() {
|
||||||
// TODO: test foo
|
// TODO: test foo
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,76 +3,49 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for MapTest */
|
||||||
/**
|
|
||||||
* Model tests for MapTest
|
|
||||||
*/
|
|
||||||
public class MapTestTest {
|
public class MapTestTest {
|
||||||
private final MapTest model = new MapTest();
|
private final MapTest model = new MapTest();
|
||||||
|
|
||||||
/**
|
/** Model tests for MapTest */
|
||||||
* Model tests for MapTest
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testMapTest() {
|
public void testMapTest() {
|
||||||
// TODO: test MapTest
|
// TODO: test MapTest
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'mapMapOfString' */
|
||||||
* Test the property 'mapMapOfString'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void mapMapOfStringTest() {
|
public void mapMapOfStringTest() {
|
||||||
// TODO: test mapMapOfString
|
// TODO: test mapMapOfString
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'mapOfEnumString' */
|
||||||
* Test the property 'mapOfEnumString'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void mapOfEnumStringTest() {
|
public void mapOfEnumStringTest() {
|
||||||
// TODO: test mapOfEnumString
|
// TODO: test mapOfEnumString
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'directMap' */
|
||||||
* Test the property 'directMap'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void directMapTest() {
|
public void directMapTest() {
|
||||||
// TODO: test directMap
|
// TODO: test directMap
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'indirectMap' */
|
||||||
* Test the property 'indirectMap'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void indirectMapTest() {
|
public void indirectMapTest() {
|
||||||
// TODO: test indirectMap
|
// TODO: test indirectMap
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,71 +3,44 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.UUID;
|
|
||||||
import org.openapitools.client.model.Animal;
|
|
||||||
import org.threeten.bp.OffsetDateTime;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for MixedPropertiesAndAdditionalPropertiesClass */
|
||||||
/**
|
|
||||||
* Model tests for MixedPropertiesAndAdditionalPropertiesClass
|
|
||||||
*/
|
|
||||||
public class MixedPropertiesAndAdditionalPropertiesClassTest {
|
public class MixedPropertiesAndAdditionalPropertiesClassTest {
|
||||||
private final MixedPropertiesAndAdditionalPropertiesClass model = new MixedPropertiesAndAdditionalPropertiesClass();
|
private final MixedPropertiesAndAdditionalPropertiesClass model =
|
||||||
|
new MixedPropertiesAndAdditionalPropertiesClass();
|
||||||
|
|
||||||
/**
|
/** Model tests for MixedPropertiesAndAdditionalPropertiesClass */
|
||||||
* Model tests for MixedPropertiesAndAdditionalPropertiesClass
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testMixedPropertiesAndAdditionalPropertiesClass() {
|
public void testMixedPropertiesAndAdditionalPropertiesClass() {
|
||||||
// TODO: test MixedPropertiesAndAdditionalPropertiesClass
|
// TODO: test MixedPropertiesAndAdditionalPropertiesClass
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'uuid' */
|
||||||
* Test the property 'uuid'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void uuidTest() {
|
public void uuidTest() {
|
||||||
// TODO: test uuid
|
// TODO: test uuid
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'dateTime' */
|
||||||
* Test the property 'dateTime'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void dateTimeTest() {
|
public void dateTimeTest() {
|
||||||
// TODO: test dateTime
|
// TODO: test dateTime
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'map' */
|
||||||
* Test the property 'map'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void mapTest() {
|
public void mapTest() {
|
||||||
// TODO: test map
|
// TODO: test map
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,57 +3,37 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for Model200Response */
|
||||||
/**
|
|
||||||
* Model tests for Model200Response
|
|
||||||
*/
|
|
||||||
public class Model200ResponseTest {
|
public class Model200ResponseTest {
|
||||||
private final Model200Response model = new Model200Response();
|
private final Model200Response model = new Model200Response();
|
||||||
|
|
||||||
/**
|
/** Model tests for Model200Response */
|
||||||
* Model tests for Model200Response
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testModel200Response() {
|
public void testModel200Response() {
|
||||||
// TODO: test Model200Response
|
// TODO: test Model200Response
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'name' */
|
||||||
* Test the property 'name'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void nameTest() {
|
public void nameTest() {
|
||||||
// TODO: test name
|
// TODO: test name
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'propertyClass' */
|
||||||
* Test the property 'propertyClass'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void propertyClassTest() {
|
public void propertyClassTest() {
|
||||||
// TODO: test propertyClass
|
// TODO: test propertyClass
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,65 +3,43 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for ModelApiResponse */
|
||||||
/**
|
|
||||||
* Model tests for ModelApiResponse
|
|
||||||
*/
|
|
||||||
public class ModelApiResponseTest {
|
public class ModelApiResponseTest {
|
||||||
private final ModelApiResponse model = new ModelApiResponse();
|
private final ModelApiResponse model = new ModelApiResponse();
|
||||||
|
|
||||||
/**
|
/** Model tests for ModelApiResponse */
|
||||||
* Model tests for ModelApiResponse
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testModelApiResponse() {
|
public void testModelApiResponse() {
|
||||||
// TODO: test ModelApiResponse
|
// TODO: test ModelApiResponse
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'code' */
|
||||||
* Test the property 'code'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void codeTest() {
|
public void codeTest() {
|
||||||
// TODO: test code
|
// TODO: test code
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'type' */
|
||||||
* Test the property 'type'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void typeTest() {
|
public void typeTest() {
|
||||||
// TODO: test type
|
// TODO: test type
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'message' */
|
||||||
* Test the property 'message'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void messageTest() {
|
public void messageTest() {
|
||||||
// TODO: test message
|
// TODO: test message
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,49 +3,31 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for ModelReturn */
|
||||||
/**
|
|
||||||
* Model tests for ModelReturn
|
|
||||||
*/
|
|
||||||
public class ModelReturnTest {
|
public class ModelReturnTest {
|
||||||
private final ModelReturn model = new ModelReturn();
|
private final ModelReturn model = new ModelReturn();
|
||||||
|
|
||||||
/**
|
/** Model tests for ModelReturn */
|
||||||
* Model tests for ModelReturn
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testModelReturn() {
|
public void testModelReturn() {
|
||||||
// TODO: test ModelReturn
|
// TODO: test ModelReturn
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property '_return' */
|
||||||
* Test the property '_return'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void _returnTest() {
|
public void _returnTest() {
|
||||||
// TODO: test _return
|
// TODO: test _return
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,73 +3,49 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for Name */
|
||||||
/**
|
|
||||||
* Model tests for Name
|
|
||||||
*/
|
|
||||||
public class NameTest {
|
public class NameTest {
|
||||||
private final Name model = new Name();
|
private final Name model = new Name();
|
||||||
|
|
||||||
/**
|
/** Model tests for Name */
|
||||||
* Model tests for Name
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testName() {
|
public void testName() {
|
||||||
// TODO: test Name
|
// TODO: test Name
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'name' */
|
||||||
* Test the property 'name'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void nameTest() {
|
public void nameTest() {
|
||||||
// TODO: test name
|
// TODO: test name
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'snakeCase' */
|
||||||
* Test the property 'snakeCase'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void snakeCaseTest() {
|
public void snakeCaseTest() {
|
||||||
// TODO: test snakeCase
|
// TODO: test snakeCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'property' */
|
||||||
* Test the property 'property'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void propertyTest() {
|
public void propertyTest() {
|
||||||
// TODO: test property
|
// TODO: test property
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property '_123number' */
|
||||||
* Test the property '_123number'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void _123numberTest() {
|
public void _123numberTest() {
|
||||||
// TODO: test _123number
|
// TODO: test _123number
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,50 +3,31 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for NumberOnly */
|
||||||
/**
|
|
||||||
* Model tests for NumberOnly
|
|
||||||
*/
|
|
||||||
public class NumberOnlyTest {
|
public class NumberOnlyTest {
|
||||||
private final NumberOnly model = new NumberOnly();
|
private final NumberOnly model = new NumberOnly();
|
||||||
|
|
||||||
/**
|
/** Model tests for NumberOnly */
|
||||||
* Model tests for NumberOnly
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testNumberOnly() {
|
public void testNumberOnly() {
|
||||||
// TODO: test NumberOnly
|
// TODO: test NumberOnly
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'justNumber' */
|
||||||
* Test the property 'justNumber'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void justNumberTest() {
|
public void justNumberTest() {
|
||||||
// TODO: test justNumber
|
// TODO: test justNumber
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,90 +3,61 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.threeten.bp.OffsetDateTime;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for Order */
|
||||||
/**
|
|
||||||
* Model tests for Order
|
|
||||||
*/
|
|
||||||
public class OrderTest {
|
public class OrderTest {
|
||||||
private final Order model = new Order();
|
private final Order model = new Order();
|
||||||
|
|
||||||
/**
|
/** Model tests for Order */
|
||||||
* Model tests for Order
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testOrder() {
|
public void testOrder() {
|
||||||
// TODO: test Order
|
// TODO: test Order
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'id' */
|
||||||
* Test the property 'id'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void idTest() {
|
public void idTest() {
|
||||||
// TODO: test id
|
// TODO: test id
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'petId' */
|
||||||
* Test the property 'petId'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void petIdTest() {
|
public void petIdTest() {
|
||||||
// TODO: test petId
|
// TODO: test petId
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'quantity' */
|
||||||
* Test the property 'quantity'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void quantityTest() {
|
public void quantityTest() {
|
||||||
// TODO: test quantity
|
// TODO: test quantity
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'shipDate' */
|
||||||
* Test the property 'shipDate'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void shipDateTest() {
|
public void shipDateTest() {
|
||||||
// TODO: test shipDate
|
// TODO: test shipDate
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'status' */
|
||||||
* Test the property 'status'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void statusTest() {
|
public void statusTest() {
|
||||||
// TODO: test status
|
// TODO: test status
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'complete' */
|
||||||
* Test the property 'complete'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void completeTest() {
|
public void completeTest() {
|
||||||
// TODO: test complete
|
// TODO: test complete
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,66 +3,43 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for OuterComposite */
|
||||||
/**
|
|
||||||
* Model tests for OuterComposite
|
|
||||||
*/
|
|
||||||
public class OuterCompositeTest {
|
public class OuterCompositeTest {
|
||||||
private final OuterComposite model = new OuterComposite();
|
private final OuterComposite model = new OuterComposite();
|
||||||
|
|
||||||
/**
|
/** Model tests for OuterComposite */
|
||||||
* Model tests for OuterComposite
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testOuterComposite() {
|
public void testOuterComposite() {
|
||||||
// TODO: test OuterComposite
|
// TODO: test OuterComposite
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'myNumber' */
|
||||||
* Test the property 'myNumber'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void myNumberTest() {
|
public void myNumberTest() {
|
||||||
// TODO: test myNumber
|
// TODO: test myNumber
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'myString' */
|
||||||
* Test the property 'myString'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void myStringTest() {
|
public void myStringTest() {
|
||||||
// TODO: test myString
|
// TODO: test myString
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'myBoolean' */
|
||||||
* Test the property 'myBoolean'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void myBooleanTest() {
|
public void myBooleanTest() {
|
||||||
// TODO: test myBoolean
|
// TODO: test myBoolean
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,32 +3,23 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for OuterEnum */
|
||||||
/**
|
|
||||||
* Model tests for OuterEnum
|
|
||||||
*/
|
|
||||||
public class OuterEnumTest {
|
public class OuterEnumTest {
|
||||||
/**
|
/** Model tests for OuterEnum */
|
||||||
* Model tests for OuterEnum
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testOuterEnum() {
|
public void testOuterEnum() {
|
||||||
// TODO: test OuterEnum
|
// TODO: test OuterEnum
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,42 +3,24 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import org.openapitools.client.model.Category;
|
|
||||||
import org.openapitools.client.model.Tag;
|
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for Pet */
|
||||||
/**
|
|
||||||
* Model tests for Pet
|
|
||||||
*/
|
|
||||||
public class PetTest {
|
public class PetTest {
|
||||||
private final Pet model = new Pet();
|
private final Pet model = new Pet();
|
||||||
|
|
||||||
/**
|
/** Model tests for Pet */
|
||||||
* Model tests for Pet
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testPet() {
|
public void testPet() {
|
||||||
// test Pet
|
// test Pet
|
||||||
@ -52,52 +34,39 @@ public class PetTest {
|
|||||||
Assert.assertTrue(model.equals(model2));
|
Assert.assertTrue(model.equals(model2));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'id' */
|
||||||
* Test the property 'id'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void idTest() {
|
public void idTest() {
|
||||||
// TODO: test id
|
// TODO: test id
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'category' */
|
||||||
* Test the property 'category'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void categoryTest() {
|
public void categoryTest() {
|
||||||
// TODO: test category
|
// TODO: test category
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'name' */
|
||||||
* Test the property 'name'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void nameTest() {
|
public void nameTest() {
|
||||||
// TODO: test name
|
// TODO: test name
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'photoUrls' */
|
||||||
* Test the property 'photoUrls'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void photoUrlsTest() {
|
public void photoUrlsTest() {
|
||||||
// TODO: test photoUrls
|
// TODO: test photoUrls
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'tags' */
|
||||||
* Test the property 'tags'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void tagsTest() {
|
public void tagsTest() {
|
||||||
// TODO: test tags
|
// TODO: test tags
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'status' */
|
||||||
* Test the property 'status'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void statusTest() {
|
public void statusTest() {
|
||||||
// TODO: test status
|
// TODO: test status
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,57 +3,37 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for ReadOnlyFirst */
|
||||||
/**
|
|
||||||
* Model tests for ReadOnlyFirst
|
|
||||||
*/
|
|
||||||
public class ReadOnlyFirstTest {
|
public class ReadOnlyFirstTest {
|
||||||
private final ReadOnlyFirst model = new ReadOnlyFirst();
|
private final ReadOnlyFirst model = new ReadOnlyFirst();
|
||||||
|
|
||||||
/**
|
/** Model tests for ReadOnlyFirst */
|
||||||
* Model tests for ReadOnlyFirst
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testReadOnlyFirst() {
|
public void testReadOnlyFirst() {
|
||||||
// TODO: test ReadOnlyFirst
|
// TODO: test ReadOnlyFirst
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'bar' */
|
||||||
* Test the property 'bar'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void barTest() {
|
public void barTest() {
|
||||||
// TODO: test bar
|
// TODO: test bar
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'baz' */
|
||||||
* Test the property 'baz'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void bazTest() {
|
public void bazTest() {
|
||||||
// TODO: test baz
|
// TODO: test baz
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,49 +3,31 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for SpecialModelName */
|
||||||
/**
|
|
||||||
* Model tests for SpecialModelName
|
|
||||||
*/
|
|
||||||
public class SpecialModelNameTest {
|
public class SpecialModelNameTest {
|
||||||
private final SpecialModelName model = new SpecialModelName();
|
private final SpecialModelName model = new SpecialModelName();
|
||||||
|
|
||||||
/**
|
/** Model tests for SpecialModelName */
|
||||||
* Model tests for SpecialModelName
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testSpecialModelName() {
|
public void testSpecialModelName() {
|
||||||
// TODO: test SpecialModelName
|
// TODO: test SpecialModelName
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property '$specialPropertyName' */
|
||||||
* Test the property '$specialPropertyName'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void $specialPropertyNameTest() {
|
public void $specialPropertyNameTest() {
|
||||||
// TODO: test $specialPropertyName
|
// TODO: test $specialPropertyName
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,57 +3,37 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for Tag */
|
||||||
/**
|
|
||||||
* Model tests for Tag
|
|
||||||
*/
|
|
||||||
public class TagTest {
|
public class TagTest {
|
||||||
private final Tag model = new Tag();
|
private final Tag model = new Tag();
|
||||||
|
|
||||||
/**
|
/** Model tests for Tag */
|
||||||
* Model tests for Tag
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testTag() {
|
public void testTag() {
|
||||||
// TODO: test Tag
|
// TODO: test Tag
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'id' */
|
||||||
* Test the property 'id'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void idTest() {
|
public void idTest() {
|
||||||
// TODO: test id
|
// TODO: test id
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'name' */
|
||||||
* Test the property 'name'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void nameTest() {
|
public void nameTest() {
|
||||||
// TODO: test name
|
// TODO: test name
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,84 +3,55 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for TypeHolderDefault */
|
||||||
/**
|
|
||||||
* Model tests for TypeHolderDefault
|
|
||||||
*/
|
|
||||||
public class TypeHolderDefaultTest {
|
public class TypeHolderDefaultTest {
|
||||||
private final TypeHolderDefault model = new TypeHolderDefault();
|
private final TypeHolderDefault model = new TypeHolderDefault();
|
||||||
|
|
||||||
/**
|
/** Model tests for TypeHolderDefault */
|
||||||
* Model tests for TypeHolderDefault
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testTypeHolderDefault() {
|
public void testTypeHolderDefault() {
|
||||||
// TODO: test TypeHolderDefault
|
// TODO: test TypeHolderDefault
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'stringItem' */
|
||||||
* Test the property 'stringItem'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void stringItemTest() {
|
public void stringItemTest() {
|
||||||
// TODO: test stringItem
|
// TODO: test stringItem
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'numberItem' */
|
||||||
* Test the property 'numberItem'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void numberItemTest() {
|
public void numberItemTest() {
|
||||||
// TODO: test numberItem
|
// TODO: test numberItem
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'integerItem' */
|
||||||
* Test the property 'integerItem'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void integerItemTest() {
|
public void integerItemTest() {
|
||||||
// TODO: test integerItem
|
// TODO: test integerItem
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'boolItem' */
|
||||||
* Test the property 'boolItem'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void boolItemTest() {
|
public void boolItemTest() {
|
||||||
// TODO: test boolItem
|
// TODO: test boolItem
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'arrayItem' */
|
||||||
* Test the property 'arrayItem'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void arrayItemTest() {
|
public void arrayItemTest() {
|
||||||
// TODO: test arrayItem
|
// TODO: test arrayItem
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,84 +3,55 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for TypeHolderExample */
|
||||||
/**
|
|
||||||
* Model tests for TypeHolderExample
|
|
||||||
*/
|
|
||||||
public class TypeHolderExampleTest {
|
public class TypeHolderExampleTest {
|
||||||
private final TypeHolderExample model = new TypeHolderExample();
|
private final TypeHolderExample model = new TypeHolderExample();
|
||||||
|
|
||||||
/**
|
/** Model tests for TypeHolderExample */
|
||||||
* Model tests for TypeHolderExample
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testTypeHolderExample() {
|
public void testTypeHolderExample() {
|
||||||
// TODO: test TypeHolderExample
|
// TODO: test TypeHolderExample
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'stringItem' */
|
||||||
* Test the property 'stringItem'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void stringItemTest() {
|
public void stringItemTest() {
|
||||||
// TODO: test stringItem
|
// TODO: test stringItem
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'numberItem' */
|
||||||
* Test the property 'numberItem'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void numberItemTest() {
|
public void numberItemTest() {
|
||||||
// TODO: test numberItem
|
// TODO: test numberItem
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'integerItem' */
|
||||||
* Test the property 'integerItem'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void integerItemTest() {
|
public void integerItemTest() {
|
||||||
// TODO: test integerItem
|
// TODO: test integerItem
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'boolItem' */
|
||||||
* Test the property 'boolItem'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void boolItemTest() {
|
public void boolItemTest() {
|
||||||
// TODO: test boolItem
|
// TODO: test boolItem
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'arrayItem' */
|
||||||
* Test the property 'arrayItem'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void arrayItemTest() {
|
public void arrayItemTest() {
|
||||||
// TODO: test arrayItem
|
// TODO: test arrayItem
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,105 +3,73 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for User */
|
||||||
/**
|
|
||||||
* Model tests for User
|
|
||||||
*/
|
|
||||||
public class UserTest {
|
public class UserTest {
|
||||||
private final User model = new User();
|
private final User model = new User();
|
||||||
|
|
||||||
/**
|
/** Model tests for User */
|
||||||
* Model tests for User
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testUser() {
|
public void testUser() {
|
||||||
// TODO: test User
|
// TODO: test User
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'id' */
|
||||||
* Test the property 'id'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void idTest() {
|
public void idTest() {
|
||||||
// TODO: test id
|
// TODO: test id
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'username' */
|
||||||
* Test the property 'username'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void usernameTest() {
|
public void usernameTest() {
|
||||||
// TODO: test username
|
// TODO: test username
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'firstName' */
|
||||||
* Test the property 'firstName'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void firstNameTest() {
|
public void firstNameTest() {
|
||||||
// TODO: test firstName
|
// TODO: test firstName
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'lastName' */
|
||||||
* Test the property 'lastName'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void lastNameTest() {
|
public void lastNameTest() {
|
||||||
// TODO: test lastName
|
// TODO: test lastName
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'email' */
|
||||||
* Test the property 'email'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void emailTest() {
|
public void emailTest() {
|
||||||
// TODO: test email
|
// TODO: test email
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'password' */
|
||||||
* Test the property 'password'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void passwordTest() {
|
public void passwordTest() {
|
||||||
// TODO: test password
|
// TODO: test password
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'phone' */
|
||||||
* Test the property 'phone'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void phoneTest() {
|
public void phoneTest() {
|
||||||
// TODO: test phone
|
// TODO: test phone
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'userStatus' */
|
||||||
* Test the property 'userStatus'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void userStatusTest() {
|
public void userStatusTest() {
|
||||||
// TODO: test userStatus
|
// TODO: test userStatus
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,276 +3,199 @@
|
|||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* 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
|
* OpenAPI spec version: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
import com.google.gson.TypeAdapter;
|
|
||||||
import com.google.gson.annotations.JsonAdapter;
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
|
||||||
import com.google.gson.stream.JsonReader;
|
|
||||||
import com.google.gson.stream.JsonWriter;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/** Model tests for XmlItem */
|
||||||
/**
|
|
||||||
* Model tests for XmlItem
|
|
||||||
*/
|
|
||||||
public class XmlItemTest {
|
public class XmlItemTest {
|
||||||
private final XmlItem model = new XmlItem();
|
private final XmlItem model = new XmlItem();
|
||||||
|
|
||||||
/**
|
/** Model tests for XmlItem */
|
||||||
* Model tests for XmlItem
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testXmlItem() {
|
public void testXmlItem() {
|
||||||
// TODO: test XmlItem
|
// TODO: test XmlItem
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'attributeString' */
|
||||||
* Test the property 'attributeString'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void attributeStringTest() {
|
public void attributeStringTest() {
|
||||||
// TODO: test attributeString
|
// TODO: test attributeString
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'attributeNumber' */
|
||||||
* Test the property 'attributeNumber'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void attributeNumberTest() {
|
public void attributeNumberTest() {
|
||||||
// TODO: test attributeNumber
|
// TODO: test attributeNumber
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'attributeInteger' */
|
||||||
* Test the property 'attributeInteger'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void attributeIntegerTest() {
|
public void attributeIntegerTest() {
|
||||||
// TODO: test attributeInteger
|
// TODO: test attributeInteger
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'attributeBoolean' */
|
||||||
* Test the property 'attributeBoolean'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void attributeBooleanTest() {
|
public void attributeBooleanTest() {
|
||||||
// TODO: test attributeBoolean
|
// TODO: test attributeBoolean
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'wrappedArray' */
|
||||||
* Test the property 'wrappedArray'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void wrappedArrayTest() {
|
public void wrappedArrayTest() {
|
||||||
// TODO: test wrappedArray
|
// TODO: test wrappedArray
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'nameString' */
|
||||||
* Test the property 'nameString'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void nameStringTest() {
|
public void nameStringTest() {
|
||||||
// TODO: test nameString
|
// TODO: test nameString
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'nameNumber' */
|
||||||
* Test the property 'nameNumber'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void nameNumberTest() {
|
public void nameNumberTest() {
|
||||||
// TODO: test nameNumber
|
// TODO: test nameNumber
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'nameInteger' */
|
||||||
* Test the property 'nameInteger'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void nameIntegerTest() {
|
public void nameIntegerTest() {
|
||||||
// TODO: test nameInteger
|
// TODO: test nameInteger
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'nameBoolean' */
|
||||||
* Test the property 'nameBoolean'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void nameBooleanTest() {
|
public void nameBooleanTest() {
|
||||||
// TODO: test nameBoolean
|
// TODO: test nameBoolean
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'nameArray' */
|
||||||
* Test the property 'nameArray'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void nameArrayTest() {
|
public void nameArrayTest() {
|
||||||
// TODO: test nameArray
|
// TODO: test nameArray
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'nameWrappedArray' */
|
||||||
* Test the property 'nameWrappedArray'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void nameWrappedArrayTest() {
|
public void nameWrappedArrayTest() {
|
||||||
// TODO: test nameWrappedArray
|
// TODO: test nameWrappedArray
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'prefixString' */
|
||||||
* Test the property 'prefixString'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void prefixStringTest() {
|
public void prefixStringTest() {
|
||||||
// TODO: test prefixString
|
// TODO: test prefixString
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'prefixNumber' */
|
||||||
* Test the property 'prefixNumber'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void prefixNumberTest() {
|
public void prefixNumberTest() {
|
||||||
// TODO: test prefixNumber
|
// TODO: test prefixNumber
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'prefixInteger' */
|
||||||
* Test the property 'prefixInteger'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void prefixIntegerTest() {
|
public void prefixIntegerTest() {
|
||||||
// TODO: test prefixInteger
|
// TODO: test prefixInteger
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'prefixBoolean' */
|
||||||
* Test the property 'prefixBoolean'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void prefixBooleanTest() {
|
public void prefixBooleanTest() {
|
||||||
// TODO: test prefixBoolean
|
// TODO: test prefixBoolean
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'prefixArray' */
|
||||||
* Test the property 'prefixArray'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void prefixArrayTest() {
|
public void prefixArrayTest() {
|
||||||
// TODO: test prefixArray
|
// TODO: test prefixArray
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'prefixWrappedArray' */
|
||||||
* Test the property 'prefixWrappedArray'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void prefixWrappedArrayTest() {
|
public void prefixWrappedArrayTest() {
|
||||||
// TODO: test prefixWrappedArray
|
// TODO: test prefixWrappedArray
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'namespaceString' */
|
||||||
* Test the property 'namespaceString'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void namespaceStringTest() {
|
public void namespaceStringTest() {
|
||||||
// TODO: test namespaceString
|
// TODO: test namespaceString
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'namespaceNumber' */
|
||||||
* Test the property 'namespaceNumber'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void namespaceNumberTest() {
|
public void namespaceNumberTest() {
|
||||||
// TODO: test namespaceNumber
|
// TODO: test namespaceNumber
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'namespaceInteger' */
|
||||||
* Test the property 'namespaceInteger'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void namespaceIntegerTest() {
|
public void namespaceIntegerTest() {
|
||||||
// TODO: test namespaceInteger
|
// TODO: test namespaceInteger
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'namespaceBoolean' */
|
||||||
* Test the property 'namespaceBoolean'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void namespaceBooleanTest() {
|
public void namespaceBooleanTest() {
|
||||||
// TODO: test namespaceBoolean
|
// TODO: test namespaceBoolean
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'namespaceArray' */
|
||||||
* Test the property 'namespaceArray'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void namespaceArrayTest() {
|
public void namespaceArrayTest() {
|
||||||
// TODO: test namespaceArray
|
// TODO: test namespaceArray
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'namespaceWrappedArray' */
|
||||||
* Test the property 'namespaceWrappedArray'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void namespaceWrappedArrayTest() {
|
public void namespaceWrappedArrayTest() {
|
||||||
// TODO: test namespaceWrappedArray
|
// TODO: test namespaceWrappedArray
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'prefixNsString' */
|
||||||
* Test the property 'prefixNsString'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void prefixNsStringTest() {
|
public void prefixNsStringTest() {
|
||||||
// TODO: test prefixNsString
|
// TODO: test prefixNsString
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'prefixNsNumber' */
|
||||||
* Test the property 'prefixNsNumber'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void prefixNsNumberTest() {
|
public void prefixNsNumberTest() {
|
||||||
// TODO: test prefixNsNumber
|
// TODO: test prefixNsNumber
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'prefixNsInteger' */
|
||||||
* Test the property 'prefixNsInteger'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void prefixNsIntegerTest() {
|
public void prefixNsIntegerTest() {
|
||||||
// TODO: test prefixNsInteger
|
// TODO: test prefixNsInteger
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'prefixNsBoolean' */
|
||||||
* Test the property 'prefixNsBoolean'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void prefixNsBooleanTest() {
|
public void prefixNsBooleanTest() {
|
||||||
// TODO: test prefixNsBoolean
|
// TODO: test prefixNsBoolean
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'prefixNsArray' */
|
||||||
* Test the property 'prefixNsArray'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void prefixNsArrayTest() {
|
public void prefixNsArrayTest() {
|
||||||
// TODO: test prefixNsArray
|
// TODO: test prefixNsArray
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Test the property 'prefixNsWrappedArray' */
|
||||||
* Test the property 'prefixNsWrappedArray'
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void prefixNsWrappedArrayTest() {
|
public void prefixNsWrappedArrayTest() {
|
||||||
// TODO: test prefixNsWrappedArray
|
// TODO: test prefixNsWrappedArray
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user