commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skitch...@apache.org
Subject svn commit: r225468 [2/2] - in /jakarta/commons/sandbox/pipeline/trunk: ./ src/java/org/apache/commons/pipeline/ src/java/org/apache/commons/pipeline/config/ src/java/org/apache/commons/pipeline/driver/ src/java/org/apache/commons/pipeline/stage/ src/t...
Date Wed, 27 Jul 2005 06:37:40 GMT
Modified: jakarta/commons/sandbox/pipeline/trunk/src/test/conf/test_conf.xml
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/pipeline/trunk/src/test/conf/test_conf.xml?rev=225468&r1=225467&r2=225468&view=diff
==============================================================================
--- jakarta/commons/sandbox/pipeline/trunk/src/test/conf/test_conf.xml (original)
+++ jakarta/commons/sandbox/pipeline/trunk/src/test/conf/test_conf.xml Tue Jul 26 23:36:55
2005
@@ -1,23 +1,34 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
 <!--
-    Document   : acars_conf.xml
-    Created on : February 12, 2004, 4:08 PM
-    Author     : kjn
-    Description:
-        Configuration file for acars data import
+ * 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.
+ *
+ * Author     : Kris Nuttycombe, National Geophysical Data Center
 -->
 
 <pipeline>
-    <stageDriverFactory/> <!-- uses default stage drivers -->
 
-    <stage className="org.apache.commons.pipeline.impl.FileFinderStage" filePattern=".*\.java">
-        <stageDriver className="org.apache.commons.pipeline.impl.SingleThreadStageDriver"/>
-        <enqueue><value>src/java</value></enqueue>
-    </stage>
+  <stage className="org.apache.commons.pipeline.stage.FileFinderStage" filePattern=".*\.java">
+    <stageDriver className="org.apache.commons.pipeline.driver.SingleThreadStageDriver"/>
+    <enqueue>
+      <value>src/java</value>
+    </enqueue>
+  </stage>
 
-    <stage className="org.apache.commons.pipeline.impl.LogStage">
-        <stageDriver className="org.apache.commons.pipeline.impl.SingleThreadStageDriver"/>
-    </stage>
+  <stage className="org.apache.commons.pipeline.stage.LogStage">
+    <stageDriver className="org.apache.commons.pipeline.driver.SingleThreadStageDriver"/>
+  </stage>
                    
 </pipeline>

Modified: jakarta/commons/sandbox/pipeline/trunk/src/test/java/org/apache/commons/pipeline/config/DigesterPipelineFactoryTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/pipeline/trunk/src/test/java/org/apache/commons/pipeline/config/DigesterPipelineFactoryTest.java?rev=225468&r1=225467&r2=225468&view=diff
==============================================================================
--- jakarta/commons/sandbox/pipeline/trunk/src/test/java/org/apache/commons/pipeline/config/DigesterPipelineFactoryTest.java
(original)
+++ jakarta/commons/sandbox/pipeline/trunk/src/test/java/org/apache/commons/pipeline/config/DigesterPipelineFactoryTest.java
Tue Jul 26 23:36:55 2005
@@ -1,23 +1,32 @@
 /*
- * DigesterPipelineFactoryTest.java
- * JUnit based test
+ * 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.
  *
  * Created on October 28, 2004, 4:01 PM
+ *
+ * $Log: DigesterPipelineFactoryTest.java,v $
+ * Revision 1.2  2005/07/25 22:19:17  kjn
+ * Updated licenses, documentation.
+ *
  */
 
 package org.apache.commons.pipeline.config;
 
 import junit.framework.TestCase;
 import junit.framework.*;
-import java.io.File;
 import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
 import java.util.ResourceBundle;
-import org.apache.commons.digester.Digester;
-import org.apache.commons.digester.RuleSet;
-import org.apache.commons.pipeline.PipelineCreationException;
 import org.apache.commons.pipeline.Pipeline;
 import org.apache.commons.pipeline.Stage;
 import org.apache.commons.pipeline.PipelineFactory;
@@ -26,8 +35,9 @@
 import javax.xml.parsers.DocumentBuilderFactory;
 
 /**
+ * Test cases for the DigesterPipelineFactory.
  *
- * @author kjn
+ * @author <a href="mailto:Kris.Nuttycombe@noaa.gov">Kris Nuttycombe</a>, National
Geophysical Data Center, NOAA
  */
 public class DigesterPipelineFactoryTest extends TestCase {
     private ResourceBundle testResources = ResourceBundle.getBundle("TestResources");
@@ -56,8 +66,7 @@
         junit.framework.TestSuite suite = new junit.framework.TestSuite(DigesterPipelineFactoryTest.class);
         
         return suite;
-    }
-    
+    }    
     
     public void testCreatePipeline() throws Exception {
         InputStream istream = this.getClass().getClassLoader().getResourceAsStream(testResources.getString(keyBase
+ ".configFile"));
@@ -80,6 +89,4 @@
             if (istream != null) istream.close();
         }
     }
-    
-    
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message