Skip to content

Commit a4a9be7

Browse files
committed
While #555 is open, throwing ClassCastException is the expected behavior.
1 parent e9106e3 commit a4a9be7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/org/apache/ibatis/submitted/array_result_type/ArrayResultTypeTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import org.apache.ibatis.session.SqlSessionFactory;
2727
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
2828
import org.junit.BeforeClass;
29-
import org.junit.Ignore;
3029
import org.junit.Test;
3130

3231
public class ArrayResultTypeTest {
@@ -89,11 +88,12 @@ public void shouldGetSimpleTypeArray() {
8988
}
9089
}
9190

92-
@Ignore("primitive array return type is not supported. #555")
93-
@Test
91+
@Test(expected = ClassCastException.class)
9492
public void shouldGetPrimitiveArray() {
9593
SqlSession sqlSession = sqlSessionFactory.openSession();
9694
try {
95+
// Throwing an exception is the expected behavior
96+
// until #555 is fixed
9797
Mapper mapper = sqlSession.getMapper(Mapper.class);
9898
int[] ids = mapper.getUserIdsPrimitive();
9999
assertEquals(1, ids[0]);

0 commit comments

Comments
 (0)