01: /*
02: * Copyright 2003 (C) TJDO.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the TJDO License version 1.0.
06: * See the terms of the TJDO License in the documentation provided with this software.
07: *
08: * $Id: DuplicateTableNamesTest.java,v 1.1 2003/08/03 01:58:17 jackknifebarber Exp $
09: */
10:
11: package com.triactive.jdo.test.naming;
12:
13: import com.triactive.jdo.test.StorageTestCase;
14:
15: /**
16: * Tests table name collision handling.
17: *
18: * @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
19: * @version $Revision: 1.1 $
20: */
21:
22: public class DuplicateTableNamesTest extends StorageTestCase {
23: /**
24: * Used by the JUnit framework to construct tests. Normally, programmers
25: * would never explicitly use this constructor.
26: *
27: * @param name Name of the <tt>TestCase</tt>.
28: */
29:
30: public DuplicateTableNamesTest(String name) {
31: super (name);
32: }
33:
34: public void testDuplicateTableNames() throws Exception {
35: Class[] classes = new Class[] {
36: com.triactive.jdo.test.naming.foo.Collision.class,
37: com.triactive.jdo.test.naming.bar.Collision.class };
38:
39: addClassesToSchema(classes);
40:
41: for (int i = 0; i < classes.length; ++i) {
42: insertObjects(classes[i]);
43: validateObjects(classes[i]);
44: removeObjects();
45: }
46: }
47: }
|