From aa841130841e4e4b4eaa24b02d8a4e44e9ee3c04 Mon Sep 17 00:00:00 2001 From: nyx Date: Thu, 5 Oct 2023 18:43:36 +0900 Subject: [PATCH] =?UTF-8?q?import=E3=83=95=E3=82=A9=E3=83=BC=E3=83=9E?= =?UTF-8?q?=E3=83=83=E3=83=88=E5=B4=A9=E3=82=8C=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/usecase/EmployeeRegisterUseCase.kt | 1 + .../controller/RegisterInEmployeeUpdateControllerTest.kt | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/example/kotlinonspringboot/domain/usecase/EmployeeRegisterUseCase.kt b/src/main/kotlin/com/example/kotlinonspringboot/domain/usecase/EmployeeRegisterUseCase.kt index 04dd91a..1cfab65 100644 --- a/src/main/kotlin/com/example/kotlinonspringboot/domain/usecase/EmployeeRegisterUseCase.kt +++ b/src/main/kotlin/com/example/kotlinonspringboot/domain/usecase/EmployeeRegisterUseCase.kt @@ -7,6 +7,7 @@ interface EmployeeRegisterUseCase { /** * 登録ユースケース * @param unRegisteredEmployee 未登録社員 + * @return 常にtrue */ fun register(unRegisteredEmployee: Employee.UnRegisteredEmployee): Boolean } diff --git a/src/test/kotlin/com/example/kotlinonspringboot/presentation/controller/RegisterInEmployeeUpdateControllerTest.kt b/src/test/kotlin/com/example/kotlinonspringboot/presentation/controller/RegisterInEmployeeUpdateControllerTest.kt index 39aaccd..d38f372 100644 --- a/src/test/kotlin/com/example/kotlinonspringboot/presentation/controller/RegisterInEmployeeUpdateControllerTest.kt +++ b/src/test/kotlin/com/example/kotlinonspringboot/presentation/controller/RegisterInEmployeeUpdateControllerTest.kt @@ -2,7 +2,11 @@ package com.example.kotlinonspringboot.presentation.controller import com.example.kotlinonspringboot.domain.model.EmployeeServiceException import com.example.kotlinonspringboot.domain.usecase.EmployeeRegisterUseCase -import org.junit.jupiter.api.* +import org.junit.jupiter.api.BeforeEach +import org.junit.jupiter.api.DisplayName +import org.junit.jupiter.api.Nested +import org.junit.jupiter.api.Test +import org.junit.jupiter.api.TestInstance import org.junit.jupiter.params.ParameterizedTest import org.junit.jupiter.params.provider.Arguments import org.junit.jupiter.params.provider.MethodSource