Skip to content

Commit

Permalink
Merge pull request #2400 from DamnClin/missing-indetation-property
Browse files Browse the repository at this point in the history
Add missing indentation properties
  • Loading branch information
pascalgrimaud authored Jul 6, 2022
2 parents bf74c1d + e31c0af commit db5b3cf
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ JHipsterModuleResource archUnitModule(JavaArchUnitApplicationService archUnit) {
.builder()
.legacyUrl("/api/servers/java/arch")
.slug("java-archunit")
.propertiesDefinition(JHipsterModulePropertiesDefinition.builder().addBasePackage().build())
.propertiesDefinition(JHipsterModulePropertiesDefinition.builder().addBasePackage().addIndentation().build())
.apiDoc(new JHipsterModuleApiDoc("Java", "Add Hexagonal Arch classes to project"))
.factory(archUnit::buildModule);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ JHipsterModuleResource springdocWithSecurityJwtModule(SpringdocApplicationServic
}

private JHipsterModulePropertiesDefinition buildPropertiesDefinition() {
return JHipsterModulePropertiesDefinition.builder().addBasePackage().addProjectBaseName().build();
return JHipsterModulePropertiesDefinition.builder().addBasePackage().addProjectBaseName().addIndentation().build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ JHipsterModuleResource oAuth2Module(OAuth2SecurityApplicationService oAuth2) {
.builder()
.legacyUrl("/api/servers/spring-boot/security-systems/oauth2")
.slug("springboot-oauth2")
.propertiesDefinition(JHipsterModulePropertiesDefinition.builder().addBasePackage().addProjectBaseName().build())
.propertiesDefinition(JHipsterModulePropertiesDefinition.builder().addBasePackage().addProjectBaseName().addIndentation().build())
.apiDoc(
new JHipsterModuleApiDoc(
"Spring Boot - MVC - Security",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ JHipsterModuleResource eurekaModule(EurekaApplicationService eureka) {
.builder()
.legacyUrl("/api/servers/spring-boot/distributed-systems/spring-cloud/eureka-client")
.slug("eureka-client")
.propertiesDefinition(JHipsterModulePropertiesDefinition.builder().addProjectBaseName().build())
.propertiesDefinition(JHipsterModulePropertiesDefinition.builder().addProjectBaseName().addIndentation().build())
.apiDoc(new JHipsterModuleApiDoc("Spring Boot - Spring Cloud", "Add Spring Cloud Eureka Client"))
.factory(eureka::buildModule);
}
Expand Down
3 changes: 2 additions & 1 deletion src/test/features/springdoc.feature
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ Feature: Springdoc modules
And I should have files in "src/test/resources/config"
| application.properties |


Scenario: Should get Springdoc module properties definition
When I get module "springdoc-openapi" properties definition
Then I should have properties definitions
| Key | Type | Mandatory |
| packageName | STRING | true |
| baseName | STRING | true |
| prettierDefaultIndent | INTEGER | false |

Scenario: Should add Springdoc elements using module url
When I apply "springdoc-openapi" module to default project with maven file
Expand Down Expand Up @@ -96,6 +96,7 @@ Feature: Springdoc modules
| Key | Type | Mandatory |
| packageName | STRING | true |
| baseName | STRING | true |
| prettierDefaultIndent | INTEGER | false |

Scenario: Should add Springdoc with JWT Security elements using module url
When I apply "springdoc-openapi-with-security-jwt" module to default project with maven file
Expand Down

0 comments on commit db5b3cf

Please sign in to comment.