Skip to content

Commit 1f021fb

Browse files
authored
Merge pull request #2485 from Oliverwqcwrw/master-oliver-optimize-unitTest
optimize unit test
2 parents 0e20200 + ce513d4 commit 1f021fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/org/apache/ibatis/submitted/autodiscover/AutodiscoverTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616
package org.apache.ibatis.submitted.autodiscover;
1717

18+
import static org.junit.jupiter.api.Assertions.assertNotNull;
1819
import static org.junit.jupiter.api.Assertions.assertTrue;
1920

2021
import java.io.Reader;
@@ -43,7 +44,7 @@ static void setup() throws Exception {
4344
@Test
4445
void testTypeAlias() {
4546
TypeAliasRegistry typeAliasRegistry = sqlSessionFactory.getConfiguration().getTypeAliasRegistry();
46-
typeAliasRegistry.resolveAlias("testAlias");
47+
assertNotNull(typeAliasRegistry.resolveAlias("testAlias"));
4748
}
4849

4950
@Test

0 commit comments

Comments
 (0)