01: /*
02: * $Id: JDODAOFactoryTest.java,v 1.1 2004/11/30 16:21:45 fornp1 Exp $
03: *
04: * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
05: * Berne University of Applied Sciences
06: * School of Engineering and Information Technology
07: * All rights reserved.
08: */
09: package bexee.dao;
10:
11: import junit.framework.TestCase;
12:
13: /**
14: * @version $Revision: 1.1 $, $Date: 2004/11/30 16:21:45 $
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: }
|