Skip to content

Commit 65a3c24

Browse files
committed
test case
1 parent af3908c commit 65a3c24

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package org.apache.ibatis.executor;
2+
3+
import org.apache.ibatis.executor.result.ResultClassTypeHolder;
4+
import org.junit.Assert;
5+
import org.junit.jupiter.api.Test;
6+
7+
public class ResultClassTypeHolderTest {
8+
9+
@Test
10+
public void getResultClassFromTl() {
11+
try {
12+
ResultClassTypeHolder.setResultType(Object.class);
13+
getResultClass();
14+
}finally {
15+
ResultClassTypeHolder.clean();
16+
}
17+
18+
}
19+
20+
private void getResultClass() {
21+
Class aClass = ResultClassTypeHolder.getResultType();
22+
Assert.assertNotNull(aClass);
23+
}
24+
25+
}

0 commit comments

Comments
 (0)