I'm using Spring 3.0.0 and the included JavaConfig. The configuration is done in a class which looks like:
@Configuration
public class SpringConfig implements BeanFactoryAware, ApplicationContextAware {
...
@Bean
public LoadTimeWeaver loadTimeWeaver() {
return new ReflectiveLoadTimeWeaver();
}
...
}
In my JUnit-Tests I want to redefine the bean "loadTimeWeaver". How can I achieve this? Only via XML config?


