Skip to content

Commit 3e6eb98

Browse files
committed
Clean up 5.3.x merge result
See gh-27726
1 parent bfdb93b commit 3e6eb98

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

spring-context/src/test/java/org/springframework/cache/config/EnableCachingIntegrationTests.java

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,6 @@ public void fooServiceWithInterfaceCglib() {
7373
fooGetSimple(service);
7474
}
7575

76-
@Test
77-
public void barServiceWithCacheableInterfaceCglib() {
78-
this.context = new AnnotationConfigApplicationContext(BarConfigCglib.class);
79-
BarService service = this.context.getBean(BarService.class);
80-
Cache cache = getCache();
81-
82-
Object key = new Object();
83-
assertCacheMiss(key, cache);
84-
85-
Object value = service.getSimple(key);
86-
assertCacheHit(key, value, cache);
87-
}
88-
8976
private void fooGetSimple(FooService service) {
9077
Cache cache = getCache();
9178

@@ -210,31 +197,6 @@ public Object getWithCondition(Object key) {
210197
}
211198
}
212199

213-
@Configuration
214-
@Import(SharedConfig.class)
215-
@EnableCaching(proxyTargetClass = true)
216-
static class BarConfigCglib {
217-
218-
@Bean
219-
public BarService barService() {
220-
return new BarServiceImpl();
221-
}
222-
}
223-
224-
interface BarService {
225-
@Cacheable(cacheNames = "testCache")
226-
Object getSimple(Object key);
227-
}
228-
229-
static class BarServiceImpl implements BarService {
230-
231-
private final AtomicLong counter = new AtomicLong();
232-
233-
@Override
234-
public Object getSimple(Object key) {
235-
return this.counter.getAndIncrement();
236-
}
237-
}
238200

239201
@Configuration
240202
@Import(SharedConfig.class)

0 commit comments

Comments
 (0)