-
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Cucumberjwtvue' into JWTVueSecondary
- Loading branch information
Showing
4 changed files
with
83 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Feature: Vue | ||
|
||
Scenario: Should initialize Vue application | ||
When I generate vue application | ||
Then I should have files in "src/main/webapp" | ||
| index.html | | ||
And I should have files in "src/main/webapp/app" | ||
| env.d.ts | | ||
| main.ts | | ||
And I should have files in "src/main/webapp/app/router" | ||
| router.ts | | ||
And I should have files in "src/main/webapp/app/http" | ||
| AxiosHttp.ts | | ||
And I should have files in "src/main/webapp/app/common/domain" | ||
| Logger.ts | | ||
| Message.ts | | ||
And I should have files in "src/main/webapp/app/common/secondary" | ||
| ConsoleLogger.ts | | ||
And I should have files in "src/main/webapp/app/common/primary/app" | ||
| App.component.ts | | ||
| App.html | | ||
| App.vue | | ||
| index.ts | | ||
|
||
Scenario: Should add jwt authentication to Vue application | ||
When I add jwt to vue application | ||
Then I should have files in "src/main/webapp/app/common/domain" | ||
| AuthenticationService.ts | | ||
| JWTStoreService.ts | | ||
| Login.ts | | ||
| User.ts | | ||
And I should have files in "src/main/webapp/app/common/primary/homepage" | ||
| Homepage.component.ts | | ||
| Homepage.html | | ||
| Homepage.vue | | ||
| index.ts | | ||
And I should have files in "src/main/webapp/app/common/primary/login" | ||
| Login.component.ts | | ||
| Login.html | | ||
| Login.vue | | ||
| index.ts | | ||
And I should have files in "src/main/webapp/app/common/secondary" | ||
| AuthenticationRepository.ts | | ||
| ConsoleLogger.ts | | ||
| RestLogin.ts | | ||
| UserDTO.ts | |
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
70 changes: 0 additions & 70 deletions
70
...ch/jhipster/lite/generator/client/vue/core/infrastructure/primary/rest/VueResourceIT.java
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
...va/tech/jhipster/lite/generator/client/vue/core/infrastructure/primary/rest/VueSteps.java
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,17 @@ | ||
package tech.jhipster.lite.generator.client.vue.core.infrastructure.primary.rest; | ||
|
||
import io.cucumber.java.en.When; | ||
import tech.jhipster.lite.generator.ModulesSteps; | ||
|
||
public class VueSteps extends ModulesSteps { | ||
|
||
@When("I generate vue application") | ||
public void addVue() { | ||
applyModuleForDefaultProject("/api/inits/full", "/api/clients/vue"); | ||
} | ||
|
||
@When("I add jwt to vue application") | ||
public void addVueJwt() { | ||
applyModuleForDefaultProject("/api/inits/full", "/api/clients/vue", "/api/clients/vue/stores/pinia", "/api/clients/vue/jwt"); | ||
} | ||
} |