File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
src/test/java/org/apache/ibatis/executor/loader Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 27
27
import org .apache .ibatis .reflection .factory .DefaultObjectFactory ;
28
28
import org .apache .ibatis .session .Configuration ;
29
29
import org .junit .jupiter .api .Assertions ;
30
+ import org .junit .jupiter .api .BeforeAll ;
30
31
import org .junit .jupiter .api .Test ;
31
32
32
33
import static org .junit .jupiter .api .Assertions .*;
33
34
34
35
class CglibProxyTest extends SerializableProxyTest {
35
36
36
- CglibProxyTest () {
37
+ @ BeforeAll
38
+ static void createProxyFactory () {
37
39
proxyFactory = new CglibProxyFactory ();
38
40
}
39
41
Original file line number Diff line number Diff line change 27
27
import org .apache .ibatis .reflection .factory .DefaultObjectFactory ;
28
28
import org .apache .ibatis .session .Configuration ;
29
29
import org .junit .jupiter .api .Assertions ;
30
+ import org .junit .jupiter .api .BeforeAll ;
30
31
import org .junit .jupiter .api .Test ;
31
32
32
33
import static org .junit .jupiter .api .Assertions .*;
33
34
34
35
class JavassistProxyTest extends SerializableProxyTest {
35
36
36
- JavassistProxyTest () {
37
+ @ BeforeAll
38
+ static void createProxyFactory () {
37
39
proxyFactory = new JavassistProxyFactory ();
38
40
}
39
41
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public abstract class SerializableProxyTest {
39
39
40
40
protected Author author =
new Author (
999 ,
"someone" ,
"!@#@!#!@#" ,
"[email protected] " ,
"blah" ,
Section .
NEWS );
41
41
42
- ProxyFactory proxyFactory ;
42
+ static ProxyFactory proxyFactory ;
43
43
44
44
@ Test
45
45
void shouldKeepGenericTypes () {
You can’t perform that action at this time.
0 commit comments