TestCase

@Test void testGetBoardPost() { BoardService boardService = new MariaBoardService(); long id = 24; BoardPost boardPost = boardService.getBoardPost(id); System.out.println(">> boardPost=" + boardPost); fail("Not yet implemented"); } JUnit을 깔아서 테스트를 해봤는데 계속 fail이 떴다. 그래서 로직이 잘못된 줄 알고 몇 분 동안 로직을 고치고 있었다. fail 부분을 지워주지 않는다면 계속 실패가 뜬다. (사용법을 숙지 안 한 내 잘못 껄껄) 왜냐면 fail 메서드를 호출하는 건 의도적으로 실패하도록 표시되는거기 때문이..
해버니
'TestCase' 태그의 글 목록