Skip to content

Commit d2c672c

Browse files
committed
MyBatis 3.0.4 does not allow null ids any more
1 parent 53f58c7 commit d2c672c

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/test/java/org/mybatis/spring/SqlSessionFactoryBeanTest.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,6 @@ public void testOtherTransactionFactoryClass() throws Exception {
7373
assertConfig(factoryBean.getObject(), JdbcTransactionFactory.class);
7474
}
7575

76-
// the MyBatis API allows null and empty environment names, so we should allow them too
77-
@Test
78-
public void testNullEnvironment() throws Exception {
79-
setupFactoryBean();
80-
81-
factoryBean.setEnvironment(null);
82-
83-
assertConfig(factoryBean.getObject(), null,
84-
org.mybatis.spring.transaction.SpringManagedTransactionFactory.class);
85-
}
86-
8776
@Test
8877
public void testEmptyStringEnvironment() throws Exception {
8978
setupFactoryBean();

0 commit comments

Comments
 (0)