@@ -120,8 +120,7 @@ public void testModelFileSuffix() {
120120 @ Test
121121 public void testOperationIdParser () {
122122 OpenAPI openAPI = TestUtils .createOpenAPI ();
123- Operation operation1 = new Operation ().operationId ("123_test_@#$%_special_tags" ).responses (new ApiResponses ().addApiResponse ("201"
124- , new ApiResponse ().description ("OK" )));
123+ Operation operation1 = new Operation ().operationId ("123_test_@#$%_special_tags" ).responses (new ApiResponses ().addApiResponse ("201" , new ApiResponse ().description ("OK" )));
125124 openAPI .path ("another-fake/dummy/" , new PathItem ().get (operation1 ));
126125 final TypeScriptAngularClientCodegen codegen = new TypeScriptAngularClientCodegen ();
127126 codegen .setOpenAPI (openAPI );
@@ -427,9 +426,9 @@ public void testBasePath() throws IOException {
427426
428427 // WHEN
429428 final CodegenConfigurator configurator = new CodegenConfigurator ()
430- .setGeneratorName ("typescript-angular" )
431- .setInputSpec (specPath )
432- .setOutputDir (output .getAbsolutePath ().replace ("\\ " , "/" ));
429+ .setGeneratorName ("typescript-angular" )
430+ .setInputSpec (specPath )
431+ .setOutputDir (output .getAbsolutePath ().replace ("\\ " , "/" ));
433432
434433 final ClientOptInput clientOptInput = configurator .toClientOptInput ();
435434
@@ -451,9 +450,9 @@ public void testEnumAsConst() throws IOException {
451450
452451 // WHEN
453452 final CodegenConfigurator configurator = new CodegenConfigurator ()
454- .setGeneratorName ("typescript-angular" )
455- .setInputSpec (specPath )
456- .setOutputDir (output .getAbsolutePath ().replace ("\\ " , "/" ));
453+ .setGeneratorName ("typescript-angular" )
454+ .setInputSpec (specPath )
455+ .setOutputDir (output .getAbsolutePath ().replace ("\\ " , "/" ));
457456
458457 final ClientOptInput clientOptInput = configurator .toClientOptInput ();
459458
@@ -476,9 +475,9 @@ public void testDeepObject() throws IOException {
476475
477476 // WHEN
478477 final CodegenConfigurator configurator = new CodegenConfigurator ()
479- .setGeneratorName ("typescript-angular" )
480- .setInputSpec (specPath )
481- .setOutputDir (output .getAbsolutePath ().replace ("\\ " , "/" ));
478+ .setGeneratorName ("typescript-angular" )
479+ .setInputSpec (specPath )
480+ .setOutputDir (output .getAbsolutePath ().replace ("\\ " , "/" ));
482481
483482 final ClientOptInput clientOptInput = configurator .toClientOptInput ();
484483
@@ -501,9 +500,9 @@ public void testOpenIdCredentialsAreSet() throws IOException {
501500
502501 // WHEN
503502 final CodegenConfigurator configurator = new CodegenConfigurator ()
504- .setGeneratorName ("typescript-angular" )
505- .setInputSpec (specPath )
506- .setOutputDir (output .getAbsolutePath ().replace ("\\ " , "/" ));
503+ .setGeneratorName ("typescript-angular" )
504+ .setInputSpec (specPath )
505+ .setOutputDir (output .getAbsolutePath ().replace ("\\ " , "/" ));
507506
508507 final ClientOptInput clientOptInput = configurator .toClientOptInput ();
509508
@@ -512,8 +511,7 @@ public void testOpenIdCredentialsAreSet() throws IOException {
512511
513512 //THEN
514513 final String fileContents = Files .readString (Paths .get (output + "/api/default.service.ts" ));
515- String credentialsSet = "localVarHeaders = this.configuration.addCredentialToHeaders('oidc', 'Authorization', localVarHeaders, " +
516- "'Bearer ');" ;
514+ String credentialsSet = "localVarHeaders = this.configuration.addCredentialToHeaders('oidc', 'Authorization', localVarHeaders, 'Bearer ');" ;
517515 assertThat (fileContents ).contains (credentialsSet );
518516 }
519517
0 commit comments