File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/test/java/org/apache/ibatis/submitted/array_result_type Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 26
26
import org .apache .ibatis .session .SqlSessionFactory ;
27
27
import org .apache .ibatis .session .SqlSessionFactoryBuilder ;
28
28
import org .junit .BeforeClass ;
29
- import org .junit .Ignore ;
30
29
import org .junit .Test ;
31
30
32
31
public class ArrayResultTypeTest {
@@ -89,11 +88,12 @@ public void shouldGetSimpleTypeArray() {
89
88
}
90
89
}
91
90
92
- @ Ignore ("primitive array return type is not supported. #555" )
93
- @ Test
91
+ @ Test (expected = ClassCastException .class )
94
92
public void shouldGetPrimitiveArray () {
95
93
SqlSession sqlSession = sqlSessionFactory .openSession ();
96
94
try {
95
+ // Throwing an exception is the expected behavior
96
+ // until #555 is fixed
97
97
Mapper mapper = sqlSession .getMapper (Mapper .class );
98
98
int [] ids = mapper .getUserIdsPrimitive ();
99
99
assertEquals (1 , ids [0 ]);
You can’t perform that action at this time.
0 commit comments