1   /*
2    * $Id: JDODAOFactoryTest.java,v 1.1 2004/12/15 14:18:20 patforna Exp $
3    *
4    * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
5    * Berne University of Applied Sciences
6    * School of Engineering and Information Technology
7    * All rights reserved.
8    */
9   package bexee.dao;
10  
11  import junit.framework.TestCase;
12  
13  /***
14   * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:20 $
15   * @author Patric Fornasier
16   * @author Pawel Kowalski
17   */
18  public class JDODAOFactoryTest extends TestCase {
19  
20      private JDODAOFactory factory;
21  
22      protected void setUp() throws Exception {
23          super.setUp();
24  
25          factory = new JDODAOFactory();
26      }
27  
28      /***
29       * Test if we got the right type.
30       */
31      public void testCreateBPELProcessDAO() {
32          assertTrue(factory.createBPELProcessDAO() instanceof JDOBPELProcessDAO);
33      }
34  
35      /***
36       * Test if we got the right type.
37       */
38      public void testCreateProcessContextDAO() {
39          assertTrue(factory.createProcessContextDAO() instanceof JDOProcessContextDAO);
40      }
41  
42  }