You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mr...@apache.org on 2007/04/04 20:32:20 UTC

svn commit: r525570 - in /incubator/ode/trunk/bpel-ql: ./ src/test/ src/test/java/ src/test/java/org/ src/test/java/org/apache/ode/ql/ src/test/resources/ test/junit/org/ test/test-cases/

Author: mriou
Date: Wed Apr  4 11:32:18 2007
New Revision: 525570

URL: http://svn.apache.org/viewvc?view=rev&rev=525570
Log:
Placing test at the right place and fixing it.

Added:
    incubator/ode/trunk/bpel-ql/src/test/
    incubator/ode/trunk/bpel-ql/src/test/java/
    incubator/ode/trunk/bpel-ql/src/test/java/org/
      - copied from r524346, incubator/ode/trunk/bpel-ql/test/junit/org/
    incubator/ode/trunk/bpel-ql/src/test/resources/
    incubator/ode/trunk/bpel-ql/src/test/resources/generated-1
      - copied unchanged from r524346, incubator/ode/trunk/bpel-ql/test/test-cases/generated-1
    incubator/ode/trunk/bpel-ql/src/test/resources/generated-2
      - copied unchanged from r524346, incubator/ode/trunk/bpel-ql/test/test-cases/generated-2
    incubator/ode/trunk/bpel-ql/src/test/resources/main
      - copied unchanged from r524346, incubator/ode/trunk/bpel-ql/test/test-cases/main
Removed:
    incubator/ode/trunk/bpel-ql/test/junit/org/
    incubator/ode/trunk/bpel-ql/test/test-cases/generated-1
    incubator/ode/trunk/bpel-ql/test/test-cases/generated-2
    incubator/ode/trunk/bpel-ql/test/test-cases/main
Modified:
    incubator/ode/trunk/bpel-ql/pom.xml
    incubator/ode/trunk/bpel-ql/src/test/java/org/apache/ode/ql/SyntaxTest.java

Modified: incubator/ode/trunk/bpel-ql/pom.xml
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-ql/pom.xml?view=diff&rev=525570&r1=525569&r2=525570
==============================================================================
--- incubator/ode/trunk/bpel-ql/pom.xml (original)
+++ incubator/ode/trunk/bpel-ql/pom.xml Wed Apr  4 11:32:18 2007
@@ -27,9 +27,9 @@
     <parent>
         <groupId>org.apache.ode</groupId>
         <artifactId>ode</artifactId>
-        <version>2.0-SNAPSHOT</version>
+        <version>1.0-incubating-SNAPSHOT</version>
     </parent>
-    <version>2.0-SNAPSHOT</version>
+    <version>1.0-incubating-SNAPSHOT</version>
     <dependencies>
         <dependency>
             <groupId>org.apache.ode</groupId>

Modified: incubator/ode/trunk/bpel-ql/src/test/java/org/apache/ode/ql/SyntaxTest.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-ql/src/test/java/org/apache/ode/ql/SyntaxTest.java?view=diff&rev=525570&r1=524346&r2=525570
==============================================================================
--- incubator/ode/trunk/bpel-ql/src/test/java/org/apache/ode/ql/SyntaxTest.java (original)
+++ incubator/ode/trunk/bpel-ql/src/test/java/org/apache/ode/ql/SyntaxTest.java Wed Apr  4 11:32:18 2007
@@ -1,21 +1,21 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you 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.
- */
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 org.apache.ode.ql;
 
 import java.io.BufferedReader;
@@ -29,7 +29,7 @@
 
 public class SyntaxTest extends TestCase {
 
-  private final static String TESTS_DIR = "./test/test-cases";
+  private final static String TESTS_DIR = "target/test-classes";
   
   private File[] casesFiles = new File(TESTS_DIR).listFiles();
   
@@ -45,7 +45,9 @@
   
   public void test() throws Exception {
       for(File caseFile : casesFiles) {
+      if (caseFile.isFile()) {
         doTestCaseFile(caseFile);
+        }
       }
   }