개발블로그

  • 홈
  • 태그
  • 방명록

PARAM 1

parameter를 이용한 test code

아래와 같이 반복적인 테스트 코드를 작성해야 할 때가 있다. @Test public void testFree() throws Exception { //given Event event = Event.builder() .basePrice(0) .maxPrice(0) .build(); //when event.update(); //then assertThat(event.isFree()).isTrue(); //given event = Event.builder() .basePrice(100) .maxPrice(0) .build(); //when event.update(); //then assertThat(event.isFree()).isFalse(); //given event = Event.builder() .ba..

JAVA 2022.07.26
이전
1
다음
더보기
프로필사진

개발블로그

개발자 박응디 cjdrud123@naver.com

  • 분류 전체보기 (126)
    • JAVA (81)
    • Python & Django (6)
    • Server(설정 등) (5)
    • DB (2)
    • Git (4)
    • Swift (7)
    • React (6)
    • AWS (2)
    • CT (5)
    • 참고사항 (8)

Tag

java, TDD, test, 개발, query, DB, testcode, mapping, React, python, JPA, code, 설정, entity, IP, APP, 개발자, IOS, Spring, swift,

Calendar

«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

Copyright © Kakao Corp. All rights reserved.

티스토리툴바