Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
unanchoi authored May 9, 2024
1 parent 12783f9 commit d26a48b
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion spring-code-for-deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,32 @@

## Test

#### Test Tool
- [JUnit5](https://junit.org/junit5/docs/current/user-guide/)
- AssertJ
- Mockito

### 기본적인 Test 골격
- BDD 기반으로 시나리오를 정의하여 Test => given, when, then에 맞춰서 Test 작성함.

```Java

@Test
@DisplayName("")
void test() throws Exception {

}
```

#### Spring Boot에서의 Test
- Spring Boot Test에서는 기본적으로 `@SpringBootTest`를 사용하여 테스트를 작성함.


### Layered Architecture 정리

![스크린샷 2024-05-09 오후 4 16 48](https://github.com/DO-SOPT-SERVER/unan/assets/81692211/7ec3aabe-d761-40da-8ab1-f1156642d1da)


## Entity

### Entity 구현
Expand Down Expand Up @@ -84,11 +108,11 @@ public class Member extends BaseTimeEntity {
}
```


## Repository

### Repository Test


Repository Test는 `@DataJpaTest`를 사용하여 작성할 수 있습니다.

```java
Expand Down

0 comments on commit d26a48b

Please sign in to comment.