org.springframework.config.java
Class ScopingTests

java.lang.Object
  extended by org.springframework.config.java.ScopingTests

public class ScopingTests
extends Object

Test that scopes are properly supported by using a custom scope and scoped proxies.

Author:
Costin Leau

Nested Class Summary
static class ScopingTests.InvalidProxyObjectConfiguration
           
static class ScopingTests.InvalidProxyOnPredefinedScopesConfiguration
           
static class ScopingTests.ScopedConfigurationClass
           
 
Field Summary
static String flag
           
static String SCOPE
           
 
Constructor Summary
ScopingTests()
           
 
Method Summary
 void genericTestScope(String beanName)
           
 void setUp()
           
 void tearDown()
           
 void testInvalidScopedProxy()
           
 void testRawScopes()
           
 void testSameScopeOnDifferentBeans()
           
 void testScopedConfigurationBeanDefinitionCount()
           
 void testScopedProxyConfiguration()
           
 void testScopedProxyConfigurationWithClasses()
           
 void testScopedProxyOnNonBeanAnnotatedMethod()
           
 void testScopeOnClasses()
           
 void testScopeOnInterfaces()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCOPE

public static final String SCOPE
See Also:
Constant Field Values

flag

public static String flag
Constructor Detail

ScopingTests

public ScopingTests()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Throws:
Exception

genericTestScope

public void genericTestScope(String beanName)
                      throws Exception
Throws:
Exception

testScopeOnClasses

public void testScopeOnClasses()
                        throws Exception
Throws:
Exception

testScopeOnInterfaces

public void testScopeOnInterfaces()
                           throws Exception
Throws:
Exception

testSameScopeOnDifferentBeans

public void testSameScopeOnDifferentBeans()
                                   throws Exception
Throws:
Exception

testInvalidScopedProxy

public void testInvalidScopedProxy()
                            throws Exception
Throws:
Exception

testScopedProxyOnNonBeanAnnotatedMethod

public void testScopedProxyOnNonBeanAnnotatedMethod()
                                             throws Exception
Throws:
Exception

testRawScopes

public void testRawScopes()
                   throws Exception
Throws:
Exception

testScopedProxyConfiguration

public void testScopedProxyConfiguration()
                                  throws Exception
Throws:
Exception

testScopedProxyConfigurationWithClasses

public void testScopedProxyConfigurationWithClasses()
                                             throws Exception
Throws:
Exception

testScopedConfigurationBeanDefinitionCount

public void testScopedConfigurationBeanDefinitionCount()
                                                throws Exception
Throws:
Exception


Copyright ? 2005-2008 Spring Framework. All Rights Reserved.