Skip to content

Commit 98ce058

Browse files
authored
Merge pull request #2941 from tanpenggood-fork/typo-sam-230824
typo: fix some typo
2 parents b762658 + 5932aa1 commit 98ce058

File tree

14 files changed

+22
-22
lines changed

14 files changed

+22
-22
lines changed

src/test/java/org/apache/ibatis/binding/BindingTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ void shouldCacheMapperMethod() throws Exception {
623623
void shouldGetBlogsWithAuthorsAndPosts() {
624624
try (SqlSession session = sqlSessionFactory.openSession()) {
625625
BoundBlogMapper mapper = session.getMapper(BoundBlogMapper.class);
626-
List<Blog> blogs = mapper.selectBlogsWithAutorAndPosts();
626+
List<Blog> blogs = mapper.selectBlogsWithAuthorAndPosts();
627627
assertEquals(2, blogs.size());
628628
assertTrue(blogs.get(0) instanceof Proxy);
629629
assertEquals(101, blogs.get(0).getAuthor().getId());
@@ -640,7 +640,7 @@ void shouldGetBlogsWithAuthorsAndPosts() {
640640
void shouldGetBlogsWithAuthorsAndPostsEagerly() {
641641
try (SqlSession session = sqlSessionFactory.openSession()) {
642642
BoundBlogMapper mapper = session.getMapper(BoundBlogMapper.class);
643-
List<Blog> blogs = mapper.selectBlogsWithAutorAndPostsEagerly();
643+
List<Blog> blogs = mapper.selectBlogsWithAuthorAndPostsEagerly();
644644
assertEquals(2, blogs.size());
645645
assertFalse(blogs.get(0) instanceof Factory);
646646
assertEquals(101, blogs.get(0).getAuthor().getId());

src/test/java/org/apache/ibatis/binding/BoundBlogMapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ Blog selectBlogWithAParamNamedValue(@Param("column") String column, @Param("id")
251251
@Result(property = "posts", column = "id", many = @Many(select = "selectPostsById"))
252252
})
253253
// @formatter:on
254-
List<Blog> selectBlogsWithAutorAndPosts();
254+
List<Blog> selectBlogsWithAuthorAndPosts();
255255

256256
// @formatter:off
257257
@Select({
@@ -263,6 +263,6 @@ Blog selectBlogWithAParamNamedValue(@Param("column") String column, @Param("id")
263263
@Result(property = "posts", column = "id", many = @Many(select = "selectPostsById", fetchType = FetchType.EAGER))
264264
})
265265
// @formatter:on
266-
List<Blog> selectBlogsWithAutorAndPostsEagerly();
266+
List<Blog> selectBlogsWithAuthorAndPostsEagerly();
267267

268268
}

src/test/java/org/apache/ibatis/executor/loader/CglibProxyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void shouldLetCallALoadedProperty() {
7171
}
7272

7373
@Test
74-
void shouldSerizalizeADeserlizaliedProxy() throws Exception {
74+
void shouldSerializeADeserializedProxy() throws Exception {
7575
Object proxy = ((CglibProxyFactory) proxyFactory).createDeserializationProxy(author, new HashMap<>(),
7676
new DefaultObjectFactory(), new ArrayList<>(), new ArrayList<>());
7777
Author author2 = (Author) deserialize(serialize((Serializable) proxy));

src/test/java/org/apache/ibatis/executor/loader/JavassistProxyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void shouldLetCallALoadedProperty() {
6969
}
7070

7171
@Test
72-
void shouldSerizalizeADeserlizaliedProxy() throws Exception {
72+
void shouldSerializeADeserializedProxy() throws Exception {
7373
Object proxy = ((JavassistProxyFactory) proxyFactory).createDeserializationProxy(author, new HashMap<>(),
7474
new DefaultObjectFactory(), new ArrayList<>(), new ArrayList<>());
7575
Author author2 = (Author) deserialize(serialize((Serializable) proxy));

src/test/java/org/apache/ibatis/executor/loader/SerializableProxyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void shouldSerializeAProxyForABeanWithoutDefaultConstructorAndUnloadedProperties
110110
}
111111

112112
@Test
113-
void shouldSerizaliceAFullLoadedObjectToOriginalClass() throws Exception {
113+
void shouldSerializeAFullLoadedObjectToOriginalClass() throws Exception {
114114
Object proxy = proxyFactory.createProxy(author, new ResultLoaderMap(), new Configuration(),
115115
new DefaultObjectFactory(), new ArrayList<>(), new ArrayList<>());
116116
Object proxy2 = deserialize(serialize((Serializable) proxy));

src/test/java/org/apache/ibatis/io/ExternalResourcesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void getConfiguredTemplate() {
9191
templateName = ExternalResources.getConfiguredTemplate(tempFile.getAbsolutePath(), "new_command.template");
9292
assertEquals("templates/col_new_template_migration.sql", templateName);
9393
} catch (Exception e) {
94-
fail("Test failed with execption: " + e.getMessage());
94+
fail("Test failed with exception: " + e.getMessage());
9595
}
9696
}
9797

src/test/java/org/apache/ibatis/jdbc/ScriptRunnerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void shouldReturnWarningIfEndOfLineTerminatorNotFound() throws Exception {
113113
}
114114

115115
@Test
116-
void commentAferStatementDelimiterShouldNotCauseRunnerFail() throws Exception {
116+
void commentAfterStatementDelimiterShouldNotCauseRunnerFail() throws Exception {
117117
DataSource ds = createUnpooledDataSource(JPETSTORE_PROPERTIES);
118118
String resource = "org/apache/ibatis/jdbc/ScriptCommentAfterEOLTerminator.sql";
119119
try (Connection conn = ds.getConnection(); Reader reader = Resources.getResourceAsReader(resource)) {

src/test/java/org/apache/ibatis/mapping/ResultMappingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void shouldThrowErrorWhenBothResultMapAndNestedSelectAreSet() {
3636

3737
// Issue 4: column is mandatory on nested queries
3838
@Test
39-
void shouldFailWithAMissingColumnInNetstedSelect() {
39+
void shouldFailWithAMissingColumnInNestedSelect() {
4040
Assertions.assertThrows(IllegalStateException.class,
4141
() -> new ResultMapping.Builder(configuration, "prop").nestedQueryId("nested query ID").build());
4242
}

src/test/java/org/apache/ibatis/submitted/automapping/AutomappingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void shouldGetAUser() {
5555
}
5656

5757
@Test
58-
void shouldGetAUserWhithPhoneNumber() {
58+
void shouldGetAUserWithPhoneNumber() {
5959
sqlSessionFactory.getConfiguration().setAutoMappingBehavior(AutoMappingBehavior.NONE);
6060
try (SqlSession sqlSession = sqlSessionFactory.openSession()) {
6161
Mapper mapper = sqlSession.getMapper(Mapper.class);

src/test/java/org/apache/ibatis/submitted/force_flush_on_select/ForceFlushOnSelectTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void updateShouldFlushLocalCache() {
118118
}
119119

120120
@Test
121-
void selectShouldFlushLocalCacheIfFlushLocalCacheAtferEachStatementIsTrue() throws SQLException {
121+
void selectShouldFlushLocalCacheIfFlushLocalCacheAfterEachStatementIsTrue() throws SQLException {
122122
sqlSessionFactory.getConfiguration().setLocalCacheScope(LocalCacheScope.STATEMENT);
123123
try (SqlSession sqlSession = sqlSessionFactory.openSession(ExecutorType.SIMPLE)) {
124124
PersonMapper personMapper = sqlSession.getMapper(PersonMapper.class);

0 commit comments

Comments
 (0)