moving unit tests from .testsuite -> .context
moved ContextSingletonBeanFactoryLocatorTests -> .context pulled SingletonBeanFactoryLocatorTests and friends into .context via externals for use by the above
This commit is contained in:
parent
f7813b48e1
commit
b8a8ceae91
|
|
@ -47,7 +47,7 @@ public class ContextSingletonBeanFactoryLocatorTests extends SingletonBeanFactor
|
||||||
public void testBasicFunctionality() {
|
public void testBasicFunctionality() {
|
||||||
ContextSingletonBeanFactoryLocator facLoc = new ContextSingletonBeanFactoryLocator(
|
ContextSingletonBeanFactoryLocator facLoc = new ContextSingletonBeanFactoryLocator(
|
||||||
"classpath*:" + ClassUtils.addResourcePathToPackagePath(
|
"classpath*:" + ClassUtils.addResourcePathToPackagePath(
|
||||||
getClass(), "context.xml"));
|
getClass(), "ContextSingletonBeanFactoryLocatorTests.xml"));
|
||||||
|
|
||||||
basicFunctionalityTest(facLoc);
|
basicFunctionalityTest(facLoc);
|
||||||
|
|
||||||
|
|
@ -73,18 +73,18 @@ public class ContextSingletonBeanFactoryLocatorTests extends SingletonBeanFactor
|
||||||
// Try with and without 'classpath*:' prefix, and with 'classpath:' prefix.
|
// Try with and without 'classpath*:' prefix, and with 'classpath:' prefix.
|
||||||
BeanFactoryLocator facLoc = ContextSingletonBeanFactoryLocator.getInstance(
|
BeanFactoryLocator facLoc = ContextSingletonBeanFactoryLocator.getInstance(
|
||||||
ClassUtils.addResourcePathToPackagePath(
|
ClassUtils.addResourcePathToPackagePath(
|
||||||
getClass(), "context.xml"));
|
getClass(), "ContextSingletonBeanFactoryLocatorTests.xml"));
|
||||||
getInstanceTest1(facLoc);
|
getInstanceTest1(facLoc);
|
||||||
|
|
||||||
facLoc = ContextSingletonBeanFactoryLocator.getInstance(
|
facLoc = ContextSingletonBeanFactoryLocator.getInstance(
|
||||||
"classpath*:" + ClassUtils.addResourcePathToPackagePath(
|
"classpath*:" + ClassUtils.addResourcePathToPackagePath(
|
||||||
getClass(), "context.xml"));
|
getClass(), "ContextSingletonBeanFactoryLocatorTests.xml"));
|
||||||
getInstanceTest2(facLoc);
|
getInstanceTest2(facLoc);
|
||||||
|
|
||||||
// This will actually get another locator instance, as the key is the resource name.
|
// This will actually get another locator instance, as the key is the resource name.
|
||||||
facLoc = ContextSingletonBeanFactoryLocator.getInstance(
|
facLoc = ContextSingletonBeanFactoryLocator.getInstance(
|
||||||
"classpath:" + ClassUtils.addResourcePathToPackagePath(
|
"classpath:" + ClassUtils.addResourcePathToPackagePath(
|
||||||
getClass(), "context.xml"));
|
getClass(), "ContextSingletonBeanFactoryLocatorTests.xml"));
|
||||||
getInstanceTest3(facLoc);
|
getInstanceTest3(facLoc);
|
||||||
}
|
}
|
||||||
|
|
||||||
Loading…
Reference in New Issue