|
|
|
|
@ -16,24 +16,6 @@
@@ -16,24 +16,6 @@
|
|
|
|
|
|
|
|
|
|
package org.springframework.beans.factory; |
|
|
|
|
|
|
|
|
|
import static org.hamcrest.CoreMatchers.is; |
|
|
|
|
import static org.hamcrest.Matchers.containsString; |
|
|
|
|
import static org.hamcrest.Matchers.equalTo; |
|
|
|
|
import static org.junit.Assert.assertEquals; |
|
|
|
|
import static org.junit.Assert.assertFalse; |
|
|
|
|
import static org.junit.Assert.assertNotNull; |
|
|
|
|
import static org.junit.Assert.assertNotSame; |
|
|
|
|
import static org.junit.Assert.assertNull; |
|
|
|
|
import static org.junit.Assert.assertSame; |
|
|
|
|
import static org.junit.Assert.assertThat; |
|
|
|
|
import static org.junit.Assert.assertTrue; |
|
|
|
|
import static org.junit.Assert.fail; |
|
|
|
|
import static org.mockito.BDDMockito.given; |
|
|
|
|
import static org.mockito.Matchers.isNull; |
|
|
|
|
import static org.mockito.Mockito.mock; |
|
|
|
|
import static org.mockito.Mockito.never; |
|
|
|
|
import static org.mockito.Mockito.verify; |
|
|
|
|
|
|
|
|
|
import java.io.Closeable; |
|
|
|
|
import java.lang.reflect.Field; |
|
|
|
|
import java.net.MalformedURLException; |
|
|
|
|
@ -104,6 +86,10 @@ import org.springframework.tests.sample.beans.factory.DummyFactory;
@@ -104,6 +86,10 @@ import org.springframework.tests.sample.beans.factory.DummyFactory;
|
|
|
|
|
import org.springframework.util.StopWatch; |
|
|
|
|
import org.springframework.util.StringValueResolver; |
|
|
|
|
|
|
|
|
|
import static org.hamcrest.Matchers.*; |
|
|
|
|
import static org.junit.Assert.*; |
|
|
|
|
import static org.mockito.BDDMockito.*; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Tests properties population and autowire behavior. |
|
|
|
|
* |
|
|
|
|
@ -2261,8 +2247,8 @@ public class DefaultListableBeanFactoryTests {
@@ -2261,8 +2247,8 @@ public class DefaultListableBeanFactoryTests {
|
|
|
|
|
DefaultListableBeanFactory bf = new DefaultListableBeanFactory(); |
|
|
|
|
bf.registerBeanDefinition("abs", BeanDefinitionBuilder |
|
|
|
|
.rootBeanDefinition(TestBean.class).setAbstract(true).getBeanDefinition()); |
|
|
|
|
assertThat(bf.containsBean("abs"), is(true)); |
|
|
|
|
assertThat(bf.containsBean("bogus"), is(false)); |
|
|
|
|
assertThat(bf.containsBean("abs"), equalTo(true)); |
|
|
|
|
assertThat(bf.containsBean("bogus"), equalTo(false)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|