|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.tests.core.aop.ExclusiveBeanNameAutoProxyCreatorTest
public class ExclusiveBeanNameAutoProxyCreatorTest
This class tests the ExclusiveBeanNameAutoProxyCreator.
| Field Summary | |
|---|---|
private static String |
BAR
Bean bar. |
private static String |
BEAN_A
Bean A. |
private static String |
BEAN_B
Bean B. |
private static String[] |
BEAN_NAMES
Registered beans. |
private static String |
EMPTY_EXCLUSIVE_CONFIG
Configuration without any beans to exclude. |
private static String |
EXCLUDE_ALL_CONFIG
Configuration that exclude all beans. |
private static String |
FOO
Bean foo. |
private static String |
FOOBAR
Bean foobar. |
private static String |
INCLUDE_ALL_BUT_BAR_SUFFIX_CONFIG
Configuration that includes all beans but those ending with 'bar'. |
private static String |
INCLUDE_ALL_BUT_FOO_PREFIX_CONFIG
Configuration that includes all beans but those beginning with 'foo'. |
private static String |
INCLUDE_ALL_BUT_FOOBAR_CONFIG
Configuration that excludes only bean 'foobar'. |
private static String |
INCLUDE_ALL_STARTING_WITH_BEAN_BUT_SUFFIX_A_CONFIG
Configuration that includes all beans starting with 'bean' but those ending with 'a'. |
static String |
PROXIED
String returned by proxied beans. |
| Constructor Summary | |
|---|---|
ExclusiveBeanNameAutoProxyCreatorTest()
|
|
| Method Summary | |
|---|---|
protected void |
assertAdvised(ApplicationContext appCtx,
String beanName)
Asserts that the bean with the given name is advised in the given application context. |
protected void |
assertNotAdvised(ApplicationContext appCtx,
String beanName)
Asserts that the bean with the given name is not advised in the given application context. |
private ApplicationContext |
createAppContext(String config)
Crates a new application context for the given configuration file. |
void |
testExcludeAll()
Tehsts the configuration that excludes all beans. |
void |
testIncludeAllButBarSuffix()
Tests the configuration that includes all beans but those ending with 'bar'. |
void |
testIncludeAllButFoobar()
Tests the configuration that includes all beans but the one named 'foobar'. |
void |
testIncludeAllButFooPrefix()
Tests the configuration that includes all beans but those starting with 'foo'. |
void |
testIncludeAllStartingWithBeanButSuffixA()
Tests the configuration that includes all beans which start with 'bean' but don't end with 'a'. |
void |
testIncludesOnly()
Tests the configuration that doesn't exclude any beans. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROXIED
private static final String BEAN_A
private static final String BEAN_B
private static final String FOO
private static final String BAR
private static final String FOOBAR
private static final String[] BEAN_NAMES
private static final String EMPTY_EXCLUSIVE_CONFIG
private static final String EXCLUDE_ALL_CONFIG
private static final String INCLUDE_ALL_BUT_FOOBAR_CONFIG
private static final String INCLUDE_ALL_BUT_FOO_PREFIX_CONFIG
private static final String INCLUDE_ALL_BUT_BAR_SUFFIX_CONFIG
private static final String INCLUDE_ALL_STARTING_WITH_BEAN_BUT_SUFFIX_A_CONFIG
| Constructor Detail |
|---|
public ExclusiveBeanNameAutoProxyCreatorTest()
| Method Detail |
|---|
public void testIncludesOnly()
public void testExcludeAll()
public void testIncludeAllButFoobar()
public void testIncludeAllButFooPrefix()
public void testIncludeAllButBarSuffix()
public void testIncludeAllStartingWithBeanButSuffixA()
protected void assertAdvised(ApplicationContext appCtx,
String beanName)
appCtx - The application context.beanName - The name of the bean which is asserted to be advised.
protected void assertNotAdvised(ApplicationContext appCtx,
String beanName)
appCtx - The application context.beanName - The name of the bean which is asserted not to be advised.private ApplicationContext createAppContext(String config)
config - The configuration file's location.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||