Skip to content

Commit

Permalink
test(jpa): merge all jpa cucumber tests
Browse files Browse the repository at this point in the history
  • Loading branch information
murdos committed Jan 25, 2025
1 parent 24081b8 commit cc1e4fc
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 167 deletions.
45 changes: 0 additions & 45 deletions src/test/features/server/springboot/database/jpa-mariadb.feature

This file was deleted.

32 changes: 0 additions & 32 deletions src/test/features/server/springboot/database/jpa-mssql.feature

This file was deleted.

45 changes: 0 additions & 45 deletions src/test/features/server/springboot/database/jpa-mysql.feature

This file was deleted.

This file was deleted.

113 changes: 113 additions & 0 deletions src/test/features/server/springboot/database/jpa.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
Feature: JPA modules

Scenario: Should add PostgresSQL elements using legacy url
When I apply modules to default project
| maven-java |
| spring-boot |
| jpa-postgresql |
Then I should have files in ""
| pom.xml |
And I should have files in "documentation"
| postgresql.md |
And I should have files in "src/main/docker"
| postgresql.yml |
And I should have files in "src/main/java/tech/jhipster/chips/wire/postgresql/infrastructure/secondary"
| DatabaseConfiguration.java |
And I should have files in "src/main/resources/config"
| application.yml |
And I should have files in "src/test/resources/config"
| application-test.yml |

Scenario: Should get PostgresSQL module properties definition
When I get module "jpa-postgresql" properties definition
Then I should have properties definitions
| Key | Type | Mandatory |
| packageName | STRING | true |
| baseName | STRING | true |
| indentSize | INTEGER | false |
| springConfigurationFormat | STRING | false |

Scenario: Should add MariaDB elements using legacy url
When I apply modules to default project
| maven-java |
| spring-boot |
| jpa-mariadb |
Then I should have files in ""
| pom.xml |
And I should have files in "documentation"
| mariadb.md |
And I should have files in "src/main/docker"
| mariadb.yml |
And I should have files in "src/main/java/tech/jhipster/chips/wire/mariadb/infrastructure/secondary"
| DatabaseConfiguration.java |
And I should have files in "src/main/resources/config"
| application.yml |
And I should have files in "src/test/resources/config"
| application-test.yml |

Scenario: Should get MariaDB module properties definition
When I get module "jpa-mariadb" properties definition
Then I should have properties definitions
| Key | Type | Mandatory |
| packageName | STRING | true |
| baseName | STRING | true |
| indentSize | INTEGER | false |
| springConfigurationFormat | STRING | false |

Scenario: Should add MySQL elements using legacy url
When I apply modules to default project
| maven-java |
| spring-boot |
| jpa-mysql |
Then I should have files in ""
| pom.xml |
And I should have files in "documentation"
| mysql.md |
And I should have files in "src/main/docker"
| mysql.yml |
And I should have files in "src/main/java/tech/jhipster/chips/wire/mysql/infrastructure/secondary"
| DatabaseConfiguration.java |
And I should have files in "src/main/resources/config"
| application.yml |
And I should have files in "src/test/resources/config"
| application-test.yml |

Scenario: Should get MySQL module properties definition
When I get module "jpa-mysql" properties definition
Then I should have properties definitions
| Key | Type | Mandatory |
| packageName | STRING | true |
| baseName | STRING | true |
| indentSize | INTEGER | false |
| springConfigurationFormat | STRING | false |

Scenario: Should add MsSQL elements using legacy url
When I apply modules to default project
| maven-java |
| spring-boot |
| jpa-mssql |
Then I should have files in ""
| pom.xml |
And I should have files in "documentation"
| mssql.md |
And I should have files in "src/main/docker"
| mssql.yml |
And I should have files in "src/main/java/tech/jhipster/chips/wire/mssql/infrastructure/secondary"
| DatabaseConfiguration.java |
And I should have files in "src/test/java/tech/jhipster/chips"
| MsSQLTestContainerExtension.java |
And I should have files in "src/test/resources"
| container-license-acceptance.txt |
And I should have files in "src/main/resources/config"
| application.yml |
And I should have files in "src/test/resources/config"
| application-test.yml |

Scenario: Should get MsSQL module properties definition
When I get module "jpa-mssql" properties definition
Then I should have properties definitions
| Key | Type | Mandatory |
| packageName | STRING | true |
| baseName | STRING | true |
| indentSize | INTEGER | false |
| springConfigurationFormat | STRING | false |

0 comments on commit cc1e4fc

Please sign in to comment.