Index: test/java/javax/jdo/schema/SchemaTest.java =================================================================== --- test/java/javax/jdo/schema/SchemaTest.java (revision 0) +++ test/java/javax/jdo/schema/SchemaTest.java (revision 0) @@ -0,0 +1,93 @@ +/* + * Copyright 2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package javax.jdo.schema; + +import java.io.File; +import java.io.InputStream; + +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Properties; + +import javax.jdo.pc.PCPoint; +import javax.jdo.util.AbstractTest; +import javax.jdo.util.BatchTestRunner; + +import javax.naming.Context; +import javax.naming.InitialContext; +import javax.naming.NamingException; + +/** + * Tests schema files. + *
+ */
+public class SchemaTest extends AbstractTest {
+
+ /** */
+ public static void main(String args[]) {
+ BatchTestRunner.run(SchemaTest.class);
+ }
+
+ static String packageName = "javax/jdo/schema";
+
+ static List positiveJdo = getFiles("positive", ".jdo");
+ static List negativeJdo = getFiles("negative", ".jdo");
+ static List positiveOrm = getFiles("positive", ".orm");
+ static List negativeOrm = getFiles("negative", ".orm");
+ static List positiveQuery = getFiles("positive", ".jdoquery");
+ static List negativeQuery = getFiles("negative", ".jdoquery");
+
+ /**
+ * Get all files that are of the form