Consistent and efficient access to BeanDefinition argument values

Issue: SPR-16192
This commit is contained in:
Juergen Hoeller
2017-11-13 21:51:11 +01:00
parent e2bb06edbd
commit b5cedd43eb
13 changed files with 195 additions and 116 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2014 the original author or authors.
* Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -41,7 +41,6 @@ import org.springframework.context.annotation.Configuration;
import static org.junit.Assert.*;
/**
*
* @author Stephane Nicoll
*/
public class JCacheCustomInterceptorTests {
@@ -52,6 +51,7 @@ public class JCacheCustomInterceptorTests {
protected Cache exceptionCache;
@Before
public void setup() {
ctx = new AnnotationConfigApplicationContext(EnableCachingConfig.class);
@@ -61,9 +61,12 @@ public class JCacheCustomInterceptorTests {
@After
public void tearDown() {
ctx.close();
if (ctx != null) {
ctx.close();
}
}
@Test
public void onlyOneInterceptorIsAvailable() {
Map<String, JCacheInterceptor> interceptors = ctx.getBeansOfType(JCacheInterceptor.class);
@@ -130,6 +133,7 @@ public class JCacheCustomInterceptorTests {
}
}
/**
* A test {@link org.springframework.cache.interceptor.CacheInterceptor} that handles special exception
* types.