|
|
@ -16,8 +16,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
package org.springframework.test.context.junit4.spr9051; |
|
|
|
package org.springframework.test.context.junit4.spr9051; |
|
|
|
|
|
|
|
|
|
|
|
import static org.hamcrest.Matchers.*; |
|
|
|
|
|
|
|
import static org.hamcrest.Matchers.is; |
|
|
|
|
|
|
|
import static org.junit.Assert.*; |
|
|
|
import static org.junit.Assert.*; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.Arrays; |
|
|
@ -32,7 +30,6 @@ import org.springframework.context.annotation.Bean; |
|
|
|
import org.springframework.test.context.ContextConfiguration; |
|
|
|
import org.springframework.test.context.ContextConfiguration; |
|
|
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; |
|
|
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* This set of tests refutes the claims made in |
|
|
|
* This set of tests refutes the claims made in |
|
|
|
* <a href="https://jira.springsource.org/browse/SPR-9051" target="_blank">SPR-9051</a>. |
|
|
|
* <a href="https://jira.springsource.org/browse/SPR-9051" target="_blank">SPR-9051</a>. |
|
|
@ -89,6 +86,7 @@ public class AnnotatedConfigClassesWithoutAtConfigurationTests { |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private LifecycleBean lifecycleBean; |
|
|
|
private LifecycleBean lifecycleBean; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
public void testSPR_9051() throws Exception { |
|
|
|
public void testSPR_9051() throws Exception { |
|
|
|
assertNotNull(enigma); |
|
|
|
assertNotNull(enigma); |
|
|
|