From 9fe186cdd6ebdc1061f35916811bc809030d5042 Mon Sep 17 00:00:00 2001 From: Gabin BLOQUET Date: Sat, 17 Feb 2024 14:47:56 +0100 Subject: [PATCH] chore: update cucumber version --- .github/workflows/build.yml | 2 +- .idea/inspectionProfiles/Project_Default.xml | 7 ++ doc/calls.http | 13 ++++ .../repository/todolist.repository.ts | 7 +- service/pom.xml | 68 ++++++++++++------- .../todolist/configuration/WebConfig.java | 16 +++++ .../todolist/domain/task/TaskRepository.java | 16 ----- .../domain/task/addTask/OpenTask.java | 8 --- .../domain/task/infra/dto/TaskRequest.java | 3 - .../todolist/domain/task/model/TaskEvent.java | 25 ------- .../domain/todolist/TodolistCommand.java | 3 - .../todolist/infra/dto/AddTaskRequest.java | 3 - .../infra/dto/PrioritizeTaskRequest.java | 7 -- .../todolist/model/TodolistCommandBus.java | 7 -- .../domain/todolist/model/TodolistEvent.java | 23 ------- .../{domain => }/task/TaskCommand.java | 6 +- .../todolist/task/TaskRepository.java | 16 +++++ .../{domain => }/task/TaskService.java | 10 +-- .../task/TaskUseCaseTransaction.java | 12 ++-- .../{domain => }/task/addTask/AddTask.java | 2 +- .../task/addTask/AddTaskUseCase.java | 10 +-- .../todolist/task/addTask/OpenTask.java | 8 +++ .../task/addTask/TaskCreated.java | 6 +- .../task/completeTask/CompleteTask.java | 4 +- .../completeTask/CompleteTaskUseCase.java | 8 +-- .../task/completeTask/TaskCompleted.java | 6 +- .../task/deleteTask/DeleteTask.java | 4 +- .../task/deleteTask/DeleteTaskUseCase.java | 6 +- .../task/deleteTask/TaskDeleted.java | 6 +- .../task/infra/InMemoryTaskRepository.java | 9 ++- .../{domain => }/task/infra/TaskResource.java | 24 +++---- .../task/infra/TaskSpringEventBus.java | 8 +-- .../task/infra/dto/ActionDto.java | 4 +- .../{domain => }/task/infra/dto/TaskDto.java | 6 +- .../todolist/task/infra/dto/TaskRequest.java | 3 + .../infra/dto/TasksResponseAssembler.java | 6 +- .../{domain => }/task/model/Task.java | 4 +- .../todolist/task/model/TaskEvent.java | 25 +++++++ .../{domain => }/task/model/TaskEventBus.java | 2 +- .../{domain => }/task/model/TaskId.java | 2 +- .../{domain => }/task/model/TaskNotFound.java | 2 +- .../{domain => }/task/model/TaskState.java | 10 +-- .../task/renameTask/RenameTask.java | 4 +- .../task/renameTask/RenameTaskUseCase.java | 6 +- .../task/renameTask/TaskRenamed.java | 6 +- .../todolist/todolist/TodolistCommand.java | 3 + .../todolist/TodolistEventHandler.java | 10 +-- .../todolist/TodolistService.java | 11 +-- .../todolist/TodolistUseCaseTransaction.java | 6 +- .../deprioritizeTask/DeprioritizeTask.java | 6 +- .../DeprioritizeTaskUseCase.java | 6 +- .../deprioritizeTask/TaskDeprioritized.java | 4 +- .../todolist/filter/TodolistQueries.java | 4 +- .../filter/TodolistQueriesAdapter.java | 10 +-- .../todolist/infra/TodolistResource.java | 25 ++++--- .../infra/TodolistSpringCommandBus.java | 6 +- .../todolist/infra/TodolistSpringConfig.java | 55 +++++++-------- .../todolist/infra/dto/AddTaskRequest.java | 3 + .../infra/dto/PrioritizeTaskRequest.java | 7 ++ .../todolist/infra/dto/TodolistDto.java | 6 +- .../todolist/infra/dto/TodolistResponse.java | 4 +- .../infra/dto/TodolistResponseAssembler.java | 8 +-- .../todolist/model/LocalDateTimeSupplier.java | 2 +- .../todolist/model/TaskNotInTodolist.java | 4 +- .../{domain => }/todolist/model/Todolist.java | 20 +++--- .../todolist/model/TodolistCommandBus.java | 7 ++ .../model/TodolistCommandReceiver.java | 4 +- .../todolist/model/TodolistEvent.java | 23 +++++++ .../todolist/model/TodolistNotFound.java | 2 +- .../openApplication/OpenApplication.java | 4 +- .../OpenApplicationUseCase.java | 6 +- .../openApplication/TodolistCreated.java | 4 +- .../prioritizeTask/PrioritizeTask.java | 6 +- .../prioritizeTask/PriorizeTaskUseCase.java | 6 +- .../prioritizeTask/TaskPrioritized.java | 4 +- .../domain/CucumberInitialisationTest.java | 7 -- ....java => CucumberSpringConfiguration.java} | 3 +- .../todolist/domain/RunCucumberTest.java | 14 ++++ .../todolist/domain/ScenarioState.java | 6 +- .../domain/TodolistSpringTestConfig.java | 53 ++++++++------- .../{features => specs}/AddTaskSpec.java | 6 +- .../{features => specs}/CompleteTaskSpec.java | 14 ++-- .../{features => specs}/DeleteTaskSpec.java | 8 +-- .../{features => specs}/FilterTasksSpec.java | 8 +-- .../OpenApplicationSpec.java | 6 +- .../{features => specs}/RenameTaskSpec.java | 8 +-- .../{features => specs}/ReorderTaskSpec.java | 10 +-- .../{features => specs}/TimeTrackingSpec.java | 4 +- .../{features => specs}/TodolistSpec.java | 18 ++--- .../mappers/TaskMapper.java | 2 +- .../infra/InMemoryTaskRepositoryTest.java | 11 +-- .../filter/TodolistQueriesAdapterTest.java | 12 ++-- .../infrastructure/api/TaskResourceTest.java | 18 ++--- .../api/TodolistResourceTest.java | 16 ++--- .../api/dto/TodolistResponseMapperTest.java | 2 +- .../test/resources/junit-platform.properties | 2 +- 96 files changed, 497 insertions(+), 430 deletions(-) create mode 100644 doc/calls.http create mode 100644 service/src/main/java/io/github/gabbloquet/todolist/configuration/WebConfig.java delete mode 100644 service/src/main/java/io/github/gabbloquet/todolist/domain/task/TaskRepository.java delete mode 100644 service/src/main/java/io/github/gabbloquet/todolist/domain/task/addTask/OpenTask.java delete mode 100644 service/src/main/java/io/github/gabbloquet/todolist/domain/task/infra/dto/TaskRequest.java delete mode 100644 service/src/main/java/io/github/gabbloquet/todolist/domain/task/model/TaskEvent.java delete mode 100644 service/src/main/java/io/github/gabbloquet/todolist/domain/todolist/TodolistCommand.java delete mode 100644 service/src/main/java/io/github/gabbloquet/todolist/domain/todolist/infra/dto/AddTaskRequest.java delete mode 100644 service/src/main/java/io/github/gabbloquet/todolist/domain/todolist/infra/dto/PrioritizeTaskRequest.java delete mode 100644 service/src/main/java/io/github/gabbloquet/todolist/domain/todolist/model/TodolistCommandBus.java delete mode 100644 service/src/main/java/io/github/gabbloquet/todolist/domain/todolist/model/TodolistEvent.java rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/TaskCommand.java (63%) create mode 100644 service/src/main/java/io/github/gabbloquet/todolist/task/TaskRepository.java rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/TaskService.java (77%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/TaskUseCaseTransaction.java (69%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/addTask/AddTask.java (80%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/addTask/AddTaskUseCase.java (70%) create mode 100644 service/src/main/java/io/github/gabbloquet/todolist/task/addTask/OpenTask.java rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/addTask/TaskCreated.java (71%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/completeTask/CompleteTask.java (69%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/completeTask/CompleteTaskUseCase.java (69%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/completeTask/TaskCompleted.java (67%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/deleteTask/DeleteTask.java (69%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/deleteTask/DeleteTaskUseCase.java (71%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/deleteTask/TaskDeleted.java (63%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/infra/InMemoryTaskRepository.java (66%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/infra/TaskResource.java (69%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/infra/TaskSpringEventBus.java (74%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/infra/dto/ActionDto.java (58%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/infra/dto/TaskDto.java (70%) create mode 100644 service/src/main/java/io/github/gabbloquet/todolist/task/infra/dto/TaskRequest.java rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/infra/dto/TasksResponseAssembler.java (88%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/model/Task.java (81%) create mode 100644 service/src/main/java/io/github/gabbloquet/todolist/task/model/TaskEvent.java rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/model/TaskEventBus.java (53%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/model/TaskId.java (76%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/model/TaskNotFound.java (81%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/model/TaskState.java (82%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/renameTask/RenameTask.java (72%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/renameTask/RenameTaskUseCase.java (73%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/task/renameTask/TaskRenamed.java (69%) create mode 100644 service/src/main/java/io/github/gabbloquet/todolist/todolist/TodolistCommand.java rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/TodolistEventHandler.java (71%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/TodolistService.java (60%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/TodolistUseCaseTransaction.java (74%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/deprioritizeTask/DeprioritizeTask.java (59%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/deprioritizeTask/DeprioritizeTaskUseCase.java (70%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/deprioritizeTask/TaskDeprioritized.java (72%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/filter/TodolistQueries.java (52%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/filter/TodolistQueriesAdapter.java (76%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/infra/TodolistResource.java (66%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/infra/TodolistSpringCommandBus.java (72%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/infra/TodolistSpringConfig.java (66%) create mode 100644 service/src/main/java/io/github/gabbloquet/todolist/todolist/infra/dto/AddTaskRequest.java create mode 100644 service/src/main/java/io/github/gabbloquet/todolist/todolist/infra/dto/PrioritizeTaskRequest.java rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/infra/dto/TodolistDto.java (63%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/infra/dto/TodolistResponse.java (50%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/infra/dto/TodolistResponseAssembler.java (85%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/model/LocalDateTimeSupplier.java (68%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/model/TaskNotInTodolist.java (59%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/model/Todolist.java (85%) create mode 100644 service/src/main/java/io/github/gabbloquet/todolist/todolist/model/TodolistCommandBus.java rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/model/TodolistCommandReceiver.java (54%) create mode 100644 service/src/main/java/io/github/gabbloquet/todolist/todolist/model/TodolistEvent.java rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/model/TodolistNotFound.java (66%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/openApplication/OpenApplication.java (53%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/openApplication/OpenApplicationUseCase.java (67%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/openApplication/TodolistCreated.java (72%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/prioritizeTask/PrioritizeTask.java (59%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/prioritizeTask/PriorizeTaskUseCase.java (69%) rename service/src/main/java/io/github/gabbloquet/todolist/{domain => }/todolist/prioritizeTask/TaskPrioritized.java (72%) delete mode 100644 service/src/test/java/io/github/gabbloquet/todolist/domain/CucumberInitialisationTest.java rename service/src/test/java/io/github/gabbloquet/todolist/domain/{CucumberBootstrap.java => CucumberSpringConfiguration.java} (70%) create mode 100644 service/src/test/java/io/github/gabbloquet/todolist/domain/RunCucumberTest.java rename service/src/test/java/io/github/gabbloquet/todolist/domain/{features => specs}/AddTaskSpec.java (73%) rename service/src/test/java/io/github/gabbloquet/todolist/domain/{features => specs}/CompleteTaskSpec.java (79%) rename service/src/test/java/io/github/gabbloquet/todolist/domain/{features => specs}/DeleteTaskSpec.java (69%) rename service/src/test/java/io/github/gabbloquet/todolist/domain/{features => specs}/FilterTasksSpec.java (64%) rename service/src/test/java/io/github/gabbloquet/todolist/domain/{features => specs}/OpenApplicationSpec.java (60%) rename service/src/test/java/io/github/gabbloquet/todolist/domain/{features => specs}/RenameTaskSpec.java (71%) rename service/src/test/java/io/github/gabbloquet/todolist/domain/{features => specs}/ReorderTaskSpec.java (72%) rename service/src/test/java/io/github/gabbloquet/todolist/domain/{features => specs}/TimeTrackingSpec.java (79%) rename service/src/test/java/io/github/gabbloquet/todolist/domain/{features => specs}/TodolistSpec.java (87%) rename service/src/test/java/io/github/gabbloquet/todolist/domain/{features => specs}/mappers/TaskMapper.java (91%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4bbf058..2c88b87 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,7 +50,7 @@ jobs: node-version: 16 - name: Install dependencies run: npm ci -# TODO: add step to launch service + working-directory: front - name: Install Playwright Browsers run: npx playwright install --with-deps - name: Run Playwright tests diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index f6e6df0..e0a9152 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -1,6 +1,13 @@