File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
modules/swagger-codegen/src/test/java/io/swagger/codegen/v3/service Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ public void testGeneratorService_readmeV3_NoOption() throws IOException {
131
131
}
132
132
}
133
133
}
134
-
134
+
135
135
@ Test (description = "test generator service with html2" )
136
136
public void testGeneratorService_HTML2_Bearer () throws IOException {
137
137
@@ -788,6 +788,23 @@ public void testGeneratorService_ResolvedSpec() throws IOException {
788
788
789
789
}
790
790
791
+ @ Test (description = "test generator service with typescript-angular 3.0" )
792
+ public void testGeneratorServiceTypescriptAngular3 () {
793
+
794
+ GenerationRequest request = new GenerationRequest ();
795
+ request
796
+ .codegenVersion (GenerationRequest .CodegenVersion .V3 )
797
+ .type (GenerationRequest .Type .CLIENT )
798
+ .lang ("typescript-angular" )
799
+ .spec (loadSpecAsNode ("3_0_0/petstore.json" , false , false ))
800
+ .options (
801
+ new Options ()
802
+ .outputDir (getTmpFolder ().getAbsolutePath ())
803
+ );
804
+ List <File > files = new GeneratorService ().generationRequest (request ).generate ();
805
+ Assert .assertFalse (files .isEmpty ());
806
+ }
807
+
791
808
protected static File getTmpFolder () {
792
809
try {
793
810
File outputFolder = Files .createTempFile ("codegentest-" , "-tmp" ).toFile ();
You can’t perform that action at this time.
0 commit comments