BoardServiceTests
페이지 정보
본문
package web.service;
import java.util.Arrays;
import java.util.UUID;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import lombok.extern.log4j.Log4j2;
import web.dto.BoardDTO;
import web.dto.PageRequestDTO;
import web.dto.PageResponseDTO;
@SpringBootTest
@Log4j2
public class BoardServiceTests {
@Autowired
private BoardService boardService;
@Test
public void testReadAll() { //image 첨부까지 조회
Long bno = 101L;
BoardDTO boardDTO = boardService.readOne(bno);
log.info(boardDTO);
for(String fileName : boardDTO.getFileNames()) {
log.info(fileName);
}
}
...
...
}
- 이전글BoardServiceImpl 24.07.02
- 다음글== 공란 == 24.07.01
댓글목록
등록된 댓글이 없습니다.