μ€νλ§ ν΅μ¬ μ리 - κΈ°λ³ΈνΈμ λ€μΌλ©΄μ λμ¨ assertThat !
Test μ½λλ₯Ό μμ±ν λ, system.out.print()μΌλ‘ μΆλ ₯νμ§ μκ³ μμ€μ½λμ νΉμ λͺ¨λμ΄ μ νν λμνλμ§ κ²μ¦νκΈ° μν΄ μ¬μ©νλ€.
AssertJλ μλ° Juit ν μ€νΈμ½λμ μ¬μ©λμ΄, ν μ€νΈμ½λμ κ°λ μ±κ³Ό νΈμμ±μ λμ¬μ£Όλ λΌμ΄λΈλ¬λ¦¬μ΄λ€.
AssertJμμ λͺ¨λ ν μ€νΈμ½λλ assertThat() μΌλ‘ μμνλ€.
κ°μμμλ λ€μκ³Ό κ°μ΄ μ¬μ©νμλ€.
import org.assertj.core.api.Assertions;
Assertions.assertThat(ν
μ€νΈ νκ²).isEqualTo(κΈ°λλλ κ°);
μ’ λ κ°λ μ±(?)μ λμ΄λ €λ©΄
import static org.assertj.core.api.Assertions.*;
assertThat(ν
μ€νΈ νκ²).isEqualTo(κΈ°λλλ κ°);
λ€μκ³Ό κ°μ΄ μ¬μ©ν μ μλ€
(μΈν 리μ μ΄μμ option + enterλλ₯΄κ³ Add-on demand static import ~ μ ν)
λ°μν