01: /*
02: * TestSchemaClone.java
03: *
04: * Created on October 6, 2006, 2:40 PM
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: /*
11: * Licensed to the Apache Software Foundation (ASF) under one
12: * or more contributor license agreements. See the NOTICE file
13: * distributed with this work for additional information
14: * regarding copyright ownership. The ASF licenses this file
15: * to you under the Apache License, Version 2.0 (the
16: * "License"); you may not use this file except in compliance
17: * with the License. You may obtain a copy of the License at
18: *
19: * http://www.apache.org/licenses/LICENSE-2.0
20: *
21: * Unless required by applicable law or agreed to in writing,
22: * software distributed under the License is distributed on an
23: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
24: * KIND, either express or implied. See the License for the
25: * specific language governing permissions and limitations
26: * under the License.
27: */
28: package org.apache.openjpa.persistence.jdbc.schema;
29:
30: import java.util.*;
31: import org.apache.openjpa.jdbc.schema.SchemaGroup;
32:
33: import org.apache.openjpa.persistence.jdbc.common.apps.*;
34:
35: import java.lang.annotation.Annotation;
36: import junit.framework.*;
37: import javax.persistence.EntityManager;
38: import javax.persistence.EntityManagerFactory;
39: import org.apache.openjpa.persistence.OpenJPAEntityManagerFactory;
40: import org.apache.openjpa.persistence.OpenJPAEntityManager;
41:
42: public class TestSchemaClone extends TestXMLSchemaParser {
43:
44: /** Creates a new instance of TestSchemaClone */
45: public TestSchemaClone() {
46: }
47:
48: public TestSchemaClone(String test) {
49: super (test);
50: }
51:
52: protected SchemaGroup getSchemaGroup() throws Exception {
53: // parse in the schema group, then clone it, and test against clone
54: SchemaGroup group = parseSchemaGroup();
55: return (SchemaGroup) group.clone();
56: }
57:
58: public static void main(String[] args) {
59: //main(TestSchemaClone.class);
60: }
61:
62: }
|