JUnit42 [Spring] JUnit4와 AspectJ 연동 예제 파일이름 : /WEB-INF/src/aspect/TestAspect.java @Aspect public class TestAspect { private static final Logger logger = Logger.getLogger(TestAspect.class); @Before("execution(* *..*add*(..))") public void test(JoinPoint point) throws Throwable{ logger.info("# 테스트로 실행해봅시다 #"); } @Around("execution(* *..modityMember(..))") public void test2(ProceedingJoinPoint point) throws Throwable{ logger.info("# 모든 .. 2008. 10. 20. [Spring] 스프링에서 JUnit4 Test 파일이름 : /WEB-INF/src/test/DAOTest2.java package test; import model.MemberDTO; 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 dao.MemberDAO; @RunWith(SpringJUnit4ClassRunner.class) @Conte.. 2008. 10. 20. 이전 1 다음