command entity

This commit is contained in:
jinho jeong
2022-04-22 11:19:07 +09:00
parent d49f0a00e8
commit 552c5dcc93
12 changed files with 181 additions and 6 deletions

View File

@@ -0,0 +1,26 @@
package com.example.oneul.service;
import com.example.oneul.DTO.LoginDTO;
import com.example.oneul.model.UserEntity;
import com.example.oneul.service.command.UserCommandService;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.junit.jupiter.MockitoExtension;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.transaction.annotation.Transactional;
@Transactional
@SpringBootTest
@ExtendWith(MockitoExtension.class)
public class UserCommandServiceTest {
@Autowired
private UserCommandService userCommandService;
@Test
public void signUpTest(){
LoginDTO loginDTO = new LoginDTO("zzzinho", "password");
UserEntity user = userCommandService.signUp(loginDTO.toEntity());
}
}