Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Prove that reproducing SPR-10083 is order-dependent

  • Loading branch information...
commit 3f318d363b2f6f136431412661f93811f019fb27 1 parent 1b6f3c9
@cbeams cbeams authored
Showing with 14 additions and 6 deletions.
  1. +14 −6 SPR-10083/src/test/java/org/springframework/issues/ReproTests.java
View
20 SPR-10083/src/test/java/org/springframework/issues/ReproTests.java
@@ -37,6 +37,14 @@ public void fails() {
context.close();
}
+ @Test
+ public void alsoFails() {
+ AnnotationConfigApplicationContext context =
+ new AnnotationConfigApplicationContext(TestConfiguration.class, Config.class);
+ assertNotNull(context.getBean("myBean"));
+ context.close();
+ }
+
@Configuration
@EnableCaching(proxyTargetClass = true)
public static class TestConfiguration implements CachingConfigurer {
@@ -61,12 +69,12 @@ public CacheManager cacheManager() {
}
- @Configuration
- static class Config {
- @Bean
- Object fooRepository() {
- return new Object();
- }
+ @Configuration
+ static class Config {
+ @Bean
+ Object someBean() {
+ return new Object();
}
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.