org.springframework.config.java.test
Class Assert

java.lang.Object
  extended by org.springframework.config.java.test.Assert

public class Assert
extends Object


Constructor Summary
Assert()
           
 
Method Summary
static void assertBeanDefinitionCount(ConfigurableApplicationContext ctx, int expected)
          Validates the number of beans registered with ctx matches expected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Assert

public Assert()
Method Detail

assertBeanDefinitionCount

public static void assertBeanDefinitionCount(ConfigurableApplicationContext ctx,
                                             int expected)
Validates the number of beans registered with ctx matches expected. Makes a special exception, however for the special BeanPostProcessor registered for clearing out the org.springframework.config.java.aspects.RequiredMethodInvocationTracker.RequiredAnnotationMethodInvocationMonitor aspect

Parameters:
ctx - context to interrogate
expected - expected number of beans


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