일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- annotation
- junit
- ERD
- TDD
- 우분투
- 오류
- 안드로이드
- 메모
- java se
- 초대장
- 실수
- 오라클
- eclipse
- action
- Modeling
- 초대장 배포
- 디자인 오류
- Log4j
- struts2
- TAG 오류
- Android
- DATABASE
- eclipse plugin
- java
- iBATIS
- Spring Framework
- 관심책
- derby
- Oracle
- Spring
- Today
- 0
- Total
- 579,107
목록TDD (3)
거꾸로 토마토
SpringJUnit4ClassRunner을 기반으로 iBatis DAO객체를 테스트 중입니다. insert 테스트중에 알 수 없는 현상이 발생했습니다. insert 수행에서 오류는 발생하지 않았는데 DB에는 INSERT 되지 않더군요. iBatis의 auto commit 설정을 살펴보니 sqlMap설정에서 transactionManager를 설정하지 않고 외부 dataSource를 사용하게 되면 auto_commit는 자동으로 되지 않는다고. 현재 저는 Spring 에서 설정되어 있습니다. PROPAGATION_REQUIRED PROPAGATION_REQUIRED PROPAGATION_REQUIRED PROPAGATION_REQUIRED PROPAGATION_REQUIRED PROPAGATION_REQ..
1. @ContextConfiguration에 설정 xml 파일을 명시하지 않으면 -context.xml을 디폴트로 하여 찾는다. 없으면 exception을 발생한다. 2. @ContextConfiguration에서 path를 명시 할 때 class path에 존재하면 "classpath:/com/test/Beans.xml" 식으로 "classpath:"로 시작하고 그 외의 path이면 "file:web/WEB-INF/config/Beans.xml" 이런 식으로 "file:"으로 시작한다. 설정하고자 하는 file이 여러 개이면 콤마(,)로 구분하여 나열한다. 3.@TransactionConfiguration 에서 context fingfile에서 설정한 transactionManager bean 명을 ..
import static org.junit.Assert.*; import static test.org.mcomp.common.constants.ErrorCodeConstants.*; import org.junit.Test; import org.junit.internal.runners.JUnit4ClassRunner; import org.junit.runner.RunWith; @RunWith(JUnit4ClassRunner.class) public class ConstatnsTestMain { @Test public void constantsEqualMethodTest2(){ assertTrue(ERROR2.equals(TEST_ERROR2)); } } 참고 내용 1. static import 이용 jdk..