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