강의

멘토링

커뮤니티

Inflearn Community Q&A

cristiano's profile image
cristiano

asked

Spring Boot JUnit Testing - Bank Application with Security

Create a bank transfer service

longValue() 질문

Resolved

Written on

·

209

0

Long 타입을 비교할때 longValue() 를 쓰셨는데

Long 이라는 레퍼런스 객체를 비교할 때 equals() 를 써도 되지 않나요 ? 제가 equals() 로 하고 테스트해봤는데 오류가 뜨지는 않아서 뭐가 더 나은지 궁금합니다 !

spring-bootjunit소프트웨어-테스트

Answer 1

0

metacoding님의 프로필 이미지
metacoding
Instructor

멀 쓰셔도 테스트만 통과한다면 상관없습니다!! ㅎㅎ

cristiano's profile image
cristiano

asked

Ask a question