diff --git a/src/test/java/org/apache/ibatis/submitted/includes/IncludeTest.java b/src/test/java/org/apache/ibatis/submitted/includes/IncludeTest.java index 2bbcf4da424..f60318b718d 100644 --- a/src/test/java/org/apache/ibatis/submitted/includes/IncludeTest.java +++ b/src/test/java/org/apache/ibatis/submitted/includes/IncludeTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2009-2023 the original author or authors. + * Copyright 2009-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -57,4 +57,10 @@ void testParametrizedIncludes() { } } + @Test + void shouldNamespaceBeResolvedAfterIncluded() { + try (SqlSession sqlSession = sqlSessionFactory.openSession()) { + Assertions.assertNotNull(sqlSession.selectList("org.apache.ibatis.submitted.includes.mapper.selectIds")); + } + } } diff --git a/src/test/resources/org/apache/ibatis/submitted/includes/Fragments.xml b/src/test/resources/org/apache/ibatis/submitted/includes/Fragments.xml index 1a700321b07..315df207c28 100644 --- a/src/test/resources/org/apache/ibatis/submitted/includes/Fragments.xml +++ b/src/test/resources/org/apache/ibatis/submitted/includes/Fragments.xml @@ -1,7 +1,7 @@