Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/enableit/db/daf/DAFFactoryTest.java


1   package org.enableit.db.daf;
2   
3   // Java imports
4   import java.io.File ;
5   import java.io.FileReader ;
6   import java.io.FileWriter ;
7   import java.io.StringReader ;
8   import java.io.StringWriter ;
9   import java.math.BigDecimal ;
10  import java.text.SimpleDateFormat ;
11  import java.util.Arrays ;
12  import java.util.Date ;
13  import java.util.Iterator ;
14  import java.util.List ;
15  
16  // Testing framework imports
17  import junit.framework.*;
18  
19  // Log4J imports
20  import org.apache.log4j.Category;
21  
22  // My imports 
23  import org.enableit.apps.task.TaskForm ; 
24  import org.enableit.db.daf.* ; 
25  
26  /**
27   * Tests ...
28   */
29  public class DAFFactoryTest extends TestCase 
30  {
31  /*
32   * Properties
33   */
34  
35      /**
36       * Define a static Category variable for logging.
37       */
38      private static Category logger = Category.getInstance(DAFFactoryTest.class);
39  
40  /*
41   * Constructors
42   */
43    /**
44     * Default Constructor
45     */
46    public DAFFactoryTest(String name)
47    {
48          super(name) ;
49    }
50  
51  /*
52   * Methods
53   */
54  
55      /**
56       * Defines all the tests for the Web Service application including
57       * tests in this class.
58       */
59      public static Test suite() {
60          TestSuite suite = new TestSuite(DAFFactoryTest.class);
61          return suite;
62      }
63  
64      /**
65       * Define the test environment. 
66       */
67      protected void setUp()
68      throws java.lang.Exception
69      {
70  
71      }
72  
73      /** 
74       * Run a test to configure the Data Abstraction Factory from a resource.
75       * 
76       */
77      public void testInitFromResource() 
78      { 
79  
80          
81  
82      } 
83      
84  
85      /** 
86       * Run a test to retrieve a DataAbstractionFacade using the factory.
87       * 
88       */
89      public void testGetInstance() 
90      { 
91          TaskForm bean = new TaskForm() ; 
92          try {
93              DataAbstractionFacadeFactory.getInstance(bean) ;
94          } catch (Exception e) {
95              fail(e.getMessage()) ; 
96          } 
97  
98      } 
99  
100 }