Skip to content

Commit a54416e

Browse files
committed
[fix] Correct spelling of folder / package naming
1 parent 88fd01f commit a54416e

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.apache.ibatis.submitted.arg_name_baesd_constructor_automapping;
16+
package org.apache.ibatis.submitted.arg_name_based_constructor_automapping;
1717

1818
import static org.junit.jupiter.api.Assertions.*;
1919

@@ -37,13 +37,13 @@ class ArgNameBasedConstructorAutoMappingTest {
3737
static void setUp() throws Exception {
3838
// create an SqlSessionFactory
3939
try (Reader reader = Resources
40-
.getResourceAsReader("org/apache/ibatis/submitted/arg_name_baesd_constructor_automapping/mybatis-config.xml")) {
40+
.getResourceAsReader("org/apache/ibatis/submitted/arg_name_based_constructor_automapping/mybatis-config.xml")) {
4141
sqlSessionFactory = new SqlSessionFactoryBuilder().build(reader);
4242
}
4343
sqlSessionFactory.getConfiguration().setArgNameBasedConstructorAutoMapping(true);
4444
// populate in-memory database
4545
BaseDataTest.runScript(sqlSessionFactory.getConfiguration().getEnvironment().getDataSource(),
46-
"org/apache/ibatis/submitted/arg_name_baesd_constructor_automapping/CreateDB.sql");
46+
"org/apache/ibatis/submitted/arg_name_based_constructor_automapping/CreateDB.sql");
4747
}
4848

4949
@Test
@@ -81,7 +81,7 @@ void shouldErrorMessageBeHelpful() {
8181
} catch (PersistenceException e) {
8282
ExecutorException ex = (ExecutorException) e.getCause();
8383
assertEquals(
84-
"Constructor auto-mapping of 'public org.apache.ibatis.submitted.arg_name_baesd_constructor_automapping."
84+
"Constructor auto-mapping of 'public org.apache.ibatis.submitted.arg_name_based_constructor_automapping."
8585
+ "User(java.lang.Integer,java.lang.String)' failed "
8686
+ "because '[id]' were not found in the result set; "
8787
+ "Available columns are '[NAME, BAR]' and mapUnderscoreToCamelCase is 'true'.",

src/test/java/org/apache/ibatis/submitted/arg_name_baesd_constructor_automapping/Mapper.java renamed to src/test/java/org/apache/ibatis/submitted/arg_name_based_constructor_automapping/Mapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.apache.ibatis.submitted.arg_name_baesd_constructor_automapping;
16+
package org.apache.ibatis.submitted.arg_name_based_constructor_automapping;
1717

1818
import org.apache.ibatis.annotations.Select;
1919

src/test/java/org/apache/ibatis/submitted/arg_name_baesd_constructor_automapping/Mapper.xml renamed to src/test/java/org/apache/ibatis/submitted/arg_name_based_constructor_automapping/Mapper.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818
-->
1919
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
2020
<mapper
21-
namespace="org.apache.ibatis.submitted.arg_name_baesd_constructor_automapping.Mapper">
21+
namespace="org.apache.ibatis.submitted.arg_name_based_constructor_automapping.Mapper">
2222

2323
<resultMap
24-
type="org.apache.ibatis.submitted.arg_name_baesd_constructor_automapping.Task"
24+
type="org.apache.ibatis.submitted.arg_name_based_constructor_automapping.Task"
2525
id="taskRM">
2626
<association property="assignee" resultMap="userRM"
2727
columnPrefix="u_" />
2828
</resultMap>
2929

3030
<resultMap autoMapping="true"
31-
type="org.apache.ibatis.submitted.arg_name_baesd_constructor_automapping.User"
31+
type="org.apache.ibatis.submitted.arg_name_based_constructor_automapping.User"
3232
id="userRM">
3333
</resultMap>
3434

src/test/java/org/apache/ibatis/submitted/arg_name_baesd_constructor_automapping/Task.java renamed to src/test/java/org/apache/ibatis/submitted/arg_name_based_constructor_automapping/Task.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.apache.ibatis.submitted.arg_name_baesd_constructor_automapping;
16+
package org.apache.ibatis.submitted.arg_name_based_constructor_automapping;
1717

1818
import org.apache.ibatis.annotations.Param;
1919

src/test/java/org/apache/ibatis/submitted/arg_name_baesd_constructor_automapping/User.java renamed to src/test/java/org/apache/ibatis/submitted/arg_name_based_constructor_automapping/User.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.apache.ibatis.submitted.arg_name_baesd_constructor_automapping;
16+
package org.apache.ibatis.submitted.arg_name_based_constructor_automapping;
1717

1818
public class User {
1919

src/test/java/org/apache/ibatis/submitted/arg_name_baesd_constructor_automapping/User2.java renamed to src/test/java/org/apache/ibatis/submitted/arg_name_based_constructor_automapping/User2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.apache.ibatis.submitted.arg_name_baesd_constructor_automapping;
16+
package org.apache.ibatis.submitted.arg_name_based_constructor_automapping;
1717

1818
import org.apache.ibatis.annotations.Param;
1919

src/test/java/org/apache/ibatis/submitted/arg_name_baesd_constructor_automapping/mybatis-config.xml renamed to src/test/java/org/apache/ibatis/submitted/arg_name_based_constructor_automapping/mybatis-config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@
3838

3939
<mappers>
4040
<mapper
41-
class="org.apache.ibatis.submitted.arg_name_baesd_constructor_automapping.Mapper" />
41+
class="org.apache.ibatis.submitted.arg_name_based_constructor_automapping.Mapper" />
4242
</mappers>
4343
</configuration>

0 commit comments

Comments
 (0)