Notice
Recent Posts
Recent Comments
Link
«   2024/07   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

WON.dev

BoardAttachMapperTests.java 본문

SPRING/chapter04_MVC

BoardAttachMapperTests.java

GAWON 2023. 7. 18. 09:37
package org.joonzis.mapper;


import java.util.List;

import org.joonzis.domain.BoardAttachVO;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import lombok.Setter;
import lombok.extern.log4j.Log4j;

@Log4j
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("file:src/main/webapp/WEB-INF/spring/root-context.xml")
public class BoardAttachMapperTests {

	@Setter(onMethod_ = @Autowired)
	BoardAttachMapper mapper;
	
	/*
	@Test
	public void testfindByBno() {
		List<BoardAttachVO> list = mapper.findByBno(1);
		for(BoardAttachVO vo : list) {
			log.info(vo);
		}
	}
	
	*/
	/*
	@Test
	public void testInsert() {
		BoardAttachVO vo = new BoardAttachVO();
		vo.setUuid("다른이름");
		vo.setUploadPath("다운로드");
		vo.setFileName("파일이름");
		vo.setBno(1);
		mapper.insert(vo);
		log.info(vo);
		
	}
	*/
	
	@Test
	public void testDelete() {
		 mapper.delete("아이디");
		 
	}
	
	
}

'SPRING > chapter04_MVC' 카테고리의 다른 글

MemberMapperTests.java  (0) 2023.07.18
BoardMapperTests.java  (0) 2023.07.18
BoardControllerTests.java  (0) 2023.07.18
log4jdbc.log4j2.properties  (0) 2023.07.18
log4j.xml  (0) 2023.07.18