[JUnit] Assert에 대해 알아보자
📝Assert
assertTrue
org.junit.Assert.assertTrue(someBooleanExpression);
단언은 JUnit 테스트에서 자주 사용되기 때문에 대부분 군더더기를 줄이고자 정적 import를 사용한다
import static org.junit.Assert.*;
//사용 예시
@Test
public void hasPositiveBalance(){
account.deposit(50);
assertTr...
gunn96.hashnode.dev3 min read