We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e29049 commit fc97b3bCopy full SHA for fc97b3b
src/test/java/org/apache/ibatis/binding/BindingTest.java
@@ -24,6 +24,7 @@
24
25
import java.lang.reflect.Method;
26
import java.util.ArrayList;
27
+import java.util.Collection;
28
import java.util.Collections;
29
import java.util.HashMap;
30
import java.util.Iterator;
@@ -787,4 +788,12 @@ public void executeWithCursorAndRowBounds() {
787
788
}
789
790
791
+ @Test
792
+ public void registeredMappers() {
793
+ Collection<Class<?>> mapperClasses = sqlSessionFactory.getConfiguration().getMapperRegistry().getMappers();
794
+ assertEquals(2, mapperClasses.size());
795
+ assertTrue(mapperClasses.contains(BoundBlogMapper.class));
796
+ assertTrue(mapperClasses.contains(BoundAuthorMapper.class));
797
+ }
798
+
799
0 commit comments