*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* Tests the bean kernel. The lookup of the bean factory itself can be tested
* only partially. Using a global property file for all test cases would tie all
* test cases together therefore no global property file is used.
* Tests the bean kernel. The lookup of the bean factory itself can be tested
* only partially. Using a global property file for all test cases would tie all
* test cases together therefore no global property file is used.
/**
* Loads the bean factory based on a property file configuration. Verifies
* the correct bean factory is loaded.
/**
* Loads the bean factory based on a property file configuration. Verifies
* the correct bean factory is loaded.
- * Loads the bean factory based on a non-existing property file.
- * Verifies that BeanFactoryException is thrown.
+ * Loads the bean factory based on a non-existing property file. Verifies
+ * that BeanFactoryException is thrown.
- * Loads the bean factory based on a property file with a non-existing
- * bean factory defined in it.
- * Verifies that BeanFactoryException is thrown.
+ * Loads the bean factory based on a property file with a non-existing bean
+ * factory defined in it. Verifies that BeanFactoryException is thrown.
BeanFactory factory = BeanKernel.getBeanFactory();
assertNotNull(factory);
assertEquals("hello", factory.find(String.class));
}
BeanFactory factory = BeanKernel.getBeanFactory();
assertNotNull(factory);
assertEquals("hello", factory.find(String.class));
}