Skip to content

Commit

Permalink
While mybatis#555 is open, throwing ClassCastException is the expecte…
Browse files Browse the repository at this point in the history
…d behavior.
  • Loading branch information
harawata committed Apr 25, 2016
1 parent e9106e3 commit a4a9be7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;

public class ArrayResultTypeTest {
Expand Down Expand Up @@ -89,11 +88,12 @@ public void shouldGetSimpleTypeArray() {
}
}

@Ignore("primitive array return type is not supported. #555")
@Test
@Test(expected = ClassCastException.class)
public void shouldGetPrimitiveArray() {
SqlSession sqlSession = sqlSessionFactory.openSession();
try {
// Throwing an exception is the expected behavior
// until #555 is fixed
Mapper mapper = sqlSession.getMapper(Mapper.class);
int[] ids = mapper.getUserIdsPrimitive();
assertEquals(1, ids[0]);
Expand Down

0 comments on commit a4a9be7

Please sign in to comment.