Removed DOCUMENT ME comments that were generated and applied source code
[utils] / support / general / src / test / java / org / wamblee / general / BeanKernelTest.java
index 61c4533f1018aed8b95e3acdc294aaa12eb543d4..941932244e11de14e90d5c140e9783c9ae48ba04 100644 (file)
@@ -17,35 +17,34 @@ package org.wamblee.general;
 
 import junit.framework.TestCase;
 
-
 /**
  * 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.
- *
+ * 
  * @author Erik Brakkee
  */
 public class BeanKernelTest extends TestCase {
     /**
      * Loads the bean factory based on a property file configuration. Verifies
      * the correct bean factory is loaded.
-     *
+     * 
      */
     public void testLoadBeanFactoryFromProperties() {
-        BeanFactory factory = BeanKernel.lookupBeanFactory(
-                "org/wamblee/general/beankernel.properties");
+        BeanFactory factory = BeanKernel
+            .lookupBeanFactory("org/wamblee/general/beankernel.properties");
         assertTrue(factory instanceof TestBeanFactory);
     }
 
     /**
-     * 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.
+     * 
      */
     public void testNonExistentPropertyFile() {
         try {
-            BeanKernel.lookupBeanFactory(
-                "org/wamblee/general/beankernel-nonexistent.properties");
+            BeanKernel
+                .lookupBeanFactory("org/wamblee/general/beankernel-nonexistent.properties");
         } catch (BeanFactoryException e) {
             return; // ok
         }
@@ -54,15 +53,14 @@ public class BeanKernelTest extends TestCase {
     }
 
     /**
-     * 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.
+     * 
      */
     public void testNonExistentBeanFactory() {
         try {
-            BeanKernel.lookupBeanFactory(
-                "org/wamblee/general/beankernel-wrong.properties");
+            BeanKernel
+                .lookupBeanFactory("org/wamblee/general/beankernel-wrong.properties");
         } catch (BeanFactoryException e) {
             return; // ok
         }
@@ -73,13 +71,13 @@ public class BeanKernelTest extends TestCase {
     /**
      * Retrieves a bean factory throug the bean kernel. Verifies that beans can
      * be retrieved.
-     *
+     * 
      */
     public void testRetrieveFactory() {
         BeanKernel.overrideBeanFactory(new TestBeanFactory()); // bypass
-                                                               // default
-                                                               // property
-                                                               // lookup
+        // default
+        // property
+        // lookup
 
         BeanFactory factory = BeanKernel.getBeanFactory();
         assertNotNull(factory);