Skip to content

Commit bda6654

Browse files
committed
Related to #135. Failing is OK in that case.
1 parent 4045a0a commit bda6654

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/test/java/org/apache/ibatis/submitted/maptypehandler/MapTypeHandlerTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import java.util.HashMap;
2121
import java.util.Map;
2222

23+
import org.apache.ibatis.exceptions.PersistenceException;
2324
import org.apache.ibatis.io.Resources;
2425
import org.apache.ibatis.jdbc.ScriptRunner;
2526
import org.apache.ibatis.session.SqlSession;
@@ -29,6 +30,10 @@
2930
import org.junit.BeforeClass;
3031
import org.junit.Test;
3132

33+
/**
34+
* See issue #135
35+
*
36+
*/
3237
public class MapTypeHandlerTest {
3338

3439
private static SqlSessionFactory sqlSessionFactory;
@@ -63,7 +68,7 @@ public void shouldGetAUserFromAnnotation() {
6368
}
6469
}
6570

66-
@Test
71+
@Test(expected=PersistenceException.class)
6772
public void shouldGetAUserFromXML() {
6873
SqlSession sqlSession = sqlSessionFactory.openSession();
6974
try {

0 commit comments

Comments
 (0)