File tree 2 files changed +16
-0
lines changed
jetcache-test/src/test/java/com/alicp/jetcache/anno/support
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 7
7
import com .alicp .jetcache .anno .config .EnableMethodCache ;
8
8
import com .alicp .jetcache .test .anno .TestUtil ;
9
9
import com .alicp .jetcache .test .spring .SpringTestBase ;
10
+ import org .junit .After ;
10
11
import org .junit .Assert ;
12
+ import org .junit .Before ;
11
13
import org .junit .Test ;
12
14
import org .junit .runner .RunWith ;
13
15
import org .springframework .context .annotation .Bean ;
@@ -39,6 +41,12 @@ public GlobalCacheConfig config() {
39
41
return pc ;
40
42
}
41
43
44
+ @ Before
45
+ @ After
46
+ public void init () {
47
+ SimpleCacheManager .defaultManager .rebuild ();
48
+ }
49
+
42
50
public static class CountBean {
43
51
private int i ;
44
52
Original file line number Diff line number Diff line change 7
7
import com .alicp .jetcache .anno .config .EnableMethodCache ;
8
8
import com .alicp .jetcache .test .anno .TestUtil ;
9
9
import com .alicp .jetcache .test .spring .SpringTestBase ;
10
+ import org .junit .After ;
10
11
import org .junit .Assert ;
12
+ import org .junit .Before ;
11
13
import org .junit .Test ;
12
14
import org .junit .runner .RunWith ;
13
15
import org .springframework .context .annotation .Bean ;
@@ -35,6 +37,12 @@ public GlobalCacheConfig config() {
35
37
return pc ;
36
38
}
37
39
40
+ @ Before
41
+ @ After
42
+ public void init () {
43
+ SimpleCacheManager .defaultManager .rebuild ();
44
+ }
45
+
38
46
39
47
public static class CountBean {
40
48
private int i ;
You can’t perform that action at this time.
0 commit comments