Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[java][jersey2] update junit from 4.x to 5.x (major upgrade) (#11898)
* update java jersey2 junit to 5.x * update jersey2-java8-special-characters * update jersey2-java8-localdatetime * update samples/openapi3/client/petstore/java/jersey2-java8 * better code format
- Loading branch information
Showing
222 changed files
with
1,047 additions
and
1,417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
modules/openapi-generator/src/main/resources/Java/libraries/jersey2/model_test.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{{>licenseInfo}} | ||
|
||
package {{package}}; | ||
|
||
{{#imports}}import {{import}}; | ||
{{/imports}} | ||
|
||
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.api.Disabled; | ||
import org.junit.jupiter.api.Test; | ||
|
||
{{#fullJavaUtil}} | ||
import java.util.ArrayList; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
{{/fullJavaUtil}} | ||
/** | ||
* Model tests for {{classname}} | ||
*/ | ||
public class {{classname}}Test { | ||
{{#models}} | ||
{{#model}} | ||
{{^vendorExtensions.x-is-one-of-interface}} | ||
{{^isEnum}} | ||
private final {{classname}} model = new {{classname}}(); | ||
|
||
{{/isEnum}} | ||
/** | ||
* Model tests for {{classname}} | ||
*/ | ||
@Test | ||
public void test{{classname}}() { | ||
// TODO: test {{classname}} | ||
} | ||
|
||
{{#allVars}} | ||
/** | ||
* Test the property '{{name}}' | ||
*/ | ||
@Test | ||
public void {{name}}Test() { | ||
// TODO: test {{name}} | ||
} | ||
|
||
{{/allVars}} | ||
{{/vendorExtensions.x-is-one-of-interface}} | ||
{{/model}} | ||
{{/models}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.