Skip to content

Commit

Permalink
Clean up 5.3.x merge result
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoeller committed Dec 14, 2021
1 parent bfdb93b commit 3e6eb98
Showing 1 changed file with 0 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,6 @@ public void fooServiceWithInterfaceCglib() {
fooGetSimple(service);
}

@Test
public void barServiceWithCacheableInterfaceCglib() {
this.context = new AnnotationConfigApplicationContext(BarConfigCglib.class);
BarService service = this.context.getBean(BarService.class);
Cache cache = getCache();

Object key = new Object();
assertCacheMiss(key, cache);

Object value = service.getSimple(key);
assertCacheHit(key, value, cache);
}

private void fooGetSimple(FooService service) {
Cache cache = getCache();

Expand Down Expand Up @@ -210,31 +197,6 @@ public Object getWithCondition(Object key) {
}
}

@Configuration
@Import(SharedConfig.class)
@EnableCaching(proxyTargetClass = true)
static class BarConfigCglib {

@Bean
public BarService barService() {
return new BarServiceImpl();
}
}

interface BarService {
@Cacheable(cacheNames = "testCache")
Object getSimple(Object key);
}

static class BarServiceImpl implements BarService {

private final AtomicLong counter = new AtomicLong();

@Override
public Object getSimple(Object key) {
return this.counter.getAndIncrement();
}
}

@Configuration
@Import(SharedConfig.class)
Expand Down

0 comments on commit 3e6eb98

Please sign in to comment.