diff gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/GNVArtifactsTestCase.java @ 229:a610c0a01afc

Added the Region-Filter to the Workflow of the Artifacttescases to be able to test it automatically. gnv-artifacts/trunk@297 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 06 Nov 2009 10:23:55 +0000
parents 3e82b4f1c455
children 3d6d89bcbf42
line wrap: on
line diff
--- a/gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/GNVArtifactsTestCase.java	Fri Nov 06 10:22:00 2009 +0000
+++ b/gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/GNVArtifactsTestCase.java	Fri Nov 06 10:23:55 2009 +0000
@@ -122,6 +122,15 @@
                             cc,
                             "src/test/ressources/timeseries/timeseries_step_04_feed.xml",
                             "src/test/ressources/timeseries/timeseries_step_04_advance.xml", describeDocument);
+            
+            // Fünfter Schritt
+            this
+                    .doNextStep(
+                            artifact,
+                            cc,
+                            "src/test/ressources/timeseries/timeseries_step_05_feed.xml",
+                            "src/test/ressources/timeseries/timeseries_step_05_advance.xml", describeDocument);
+
 
             Document outputData;
             // Fünfter Schritt
@@ -134,12 +143,12 @@
                 artifact
                         .feed(
                                 this
-                                        .readDocument("src/test/ressources/timeseries/timeseries_step_05_feed.xml"),
+                                        .readDocument("src/test/ressources/timeseries/timeseries_step_06_feed.xml"),
                                 cc);
                 artifact
                         .out(
                                 this
-                                        .readDocument("src/test/ressources/timeseries/timeseries_step_05_out.xml"),
+                                        .readDocument("src/test/ressources/timeseries/timeseries_step_06_out.xml"),
                                 fos, cc);
             } catch (Exception e) {
                 log.error(e, e);
@@ -251,8 +260,16 @@
                             cc,
                             "src/test/ressources/timeseries_mesh/timeseries_step_06_feed.xml",
                             "src/test/ressources/timeseries_mesh/timeseries_step_06_advance.xml", describeDocument);
-
+            
             // Siebter Schritt
+            this
+                    .doNextStep(
+                            artifact,
+                            cc,
+                            "src/test/ressources/timeseries_mesh/timeseries_step_07_feed.xml",
+                            "src/test/ressources/timeseries_mesh/timeseries_step_07_advance.xml", describeDocument);
+            
+            // Achter Schritt
             Document outputData = artifact.describe(describeDocument,cc);
             FileOutputStream fos = null;
             FileOutputStream fos2 = null;
@@ -270,22 +287,22 @@
                 artifact
                         .feed(
                                 this
-                                        .readDocument("src/test/ressources/timeseries_mesh/timeseries_step_07_feed.xml"),
+                                        .readDocument("src/test/ressources/timeseries_mesh/timeseries_step_08_feed.xml"),
                                 cc);
                 artifact
                         .out(
                                 this
-                                        .readDocument("src/test/ressources/timeseries_mesh/timeseries_step_07_out_statistics.xml"),
+                                        .readDocument("src/test/ressources/timeseries_mesh/timeseries_step_08_out_statistics.xml"),
                                 fos2, cc);
                 artifact
                         .out(
                                 this
-                                        .readDocument("src/test/ressources/timeseries_mesh/timeseries_step_07_out_chart.xml"),
+                                        .readDocument("src/test/ressources/timeseries_mesh/timeseries_step_08_out_chart.xml"),
                                 fos, cc);
                 artifact
                         .out(
                                 this
-                                        .readDocument("src/test/ressources/timeseries_mesh/timeseries_step_07_out_csv.xml"),
+                                        .readDocument("src/test/ressources/timeseries_mesh/timeseries_step_08_out_csv.xml"),
                                 fos3, cc);
             } catch (Exception e) {
                 log.error(e, e);
@@ -355,6 +372,14 @@
                             cc,
                             "src/test/ressources/verticalprofile/verticalprofile_step_04_feed.xml",
                             "src/test/ressources/verticalprofile/verticalprofile_step_04_advance.xml", describeDocument);
+            
+         // Fünfter Schritt
+            this
+                    .doNextStep(
+                            artifact,
+                            cc,
+                            "src/test/ressources/verticalprofile/verticalprofile_step_05_feed.xml",
+                            "src/test/ressources/verticalprofile/verticalprofile_step_05_advance.xml", describeDocument);
 
 
             // Vierter Schritt
@@ -375,22 +400,22 @@
                 artifact
                         .feed(
                                 this
-                                        .readDocument("src/test/ressources/verticalprofile/verticalprofile_step_05_feed.xml"),
+                                        .readDocument("src/test/ressources/verticalprofile/verticalprofile_step_06_feed.xml"),
                                 cc);
                 artifact
                         .out(
                                 this
-                                        .readDocument("src/test/ressources/verticalprofile/verticalprofile_step_05_out_statistics.xml"),
+                                        .readDocument("src/test/ressources/verticalprofile/verticalprofile_step_06_out_statistics.xml"),
                                 fos2, cc);
                 artifact
                         .out(
                                 this
-                                        .readDocument("src/test/ressources/verticalprofile/verticalprofile_step_05_out_chart.xml"),
+                                        .readDocument("src/test/ressources/verticalprofile/verticalprofile_step_06_out_chart.xml"),
                                 fos, cc);
                 artifact
                         .out(
                                 this
-                                        .readDocument("src/test/ressources/verticalprofile/verticalprofile_step_05_out_csv.xml"),
+                                        .readDocument("src/test/ressources/verticalprofile/verticalprofile_step_06_out_csv.xml"),
                                 fos3, cc);
             } catch (Exception e) {
                 log.error(e, e);
@@ -483,8 +508,26 @@
                     cc,
                     "src/test/ressources/verticalprofile_mesh/verticalprofile_step_07_feed.xml",
                     "src/test/ressources/verticalprofile_mesh/verticalprofile_step_07_advance.xml", describeDocument);
+            
+           // Achter Schritt
+            this
+            .doNextStep(
+                    artifact,
+                    cc,
+                    "src/test/ressources/verticalprofile_mesh/verticalprofile_step_08_feed.xml",
+                    "src/test/ressources/verticalprofile_mesh/verticalprofile_step_08_advance.xml", describeDocument);
 
-            // Achter Schritt
+            
+           // Neunter Schritt
+            this
+            .doNextStep(
+                    artifact,
+                    cc,
+                    "src/test/ressources/verticalprofile_mesh/verticalprofile_step_09_feed.xml",
+                    "src/test/ressources/verticalprofile_mesh/verticalprofile_step_09_advance.xml", describeDocument);
+
+
+            // 10. Schritt
             Document outputData = artifact.describe(describeDocument,cc);
             FileOutputStream fos = null;
             FileOutputStream fos2 = null;
@@ -502,22 +545,22 @@
                 artifact
                         .feed(
                                 this
-                                        .readDocument("src/test/ressources/verticalprofile_mesh/verticalprofile_step_08_feed.xml"),
+                                        .readDocument("src/test/ressources/verticalprofile_mesh/verticalprofile_step_10_feed.xml"),
                                 cc);
                 artifact
                         .out(
                                 this
-                                        .readDocument("src/test/ressources/verticalprofile_mesh/verticalprofile_step_08_out_statistics.xml"),
+                                        .readDocument("src/test/ressources/verticalprofile_mesh/verticalprofile_step_10_out_statistics.xml"),
                                 fos2, cc);
                 artifact
                         .out(
                                 this
-                                        .readDocument("src/test/ressources/verticalprofile_mesh/verticalprofile_step_08_out_chart.xml"),
+                                        .readDocument("src/test/ressources/verticalprofile_mesh/verticalprofile_step_10_out_chart.xml"),
                                 fos, cc);
                 artifact
                         .out(
                                 this
-                                        .readDocument("src/test/ressources/verticalprofile_mesh/verticalprofile_step_08_out_csv.xml"),
+                                        .readDocument("src/test/ressources/verticalprofile_mesh/verticalprofile_step_10_out_csv.xml"),
                                 fos3, cc);
             } catch (Exception e) {
                 log.error(e, e);
@@ -820,6 +863,22 @@
                             cc,
                             "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_07_feed.xml",
                             "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_07_advance.xml", describeDocument);
+            
+            // Achter Schritt
+            this
+                    .doNextStep(
+                            artifact,
+                            cc,
+                            "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_08_feed.xml",
+                            "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_08_advance.xml", describeDocument);
+            
+            // Neunter Schritt
+            this
+                    .doNextStep(
+                            artifact,
+                            cc,
+                            "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_09_feed.xml",
+                            "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_09_advance.xml", describeDocument);
 
             Document outputData = artifact.describe(describeDocument,cc);
             FileOutputStream fos = null;
@@ -838,19 +897,19 @@
                 artifact
                         .feed(
                                 this
-                                        .readDocument("src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_08_feed.xml"),
+                                        .readDocument("src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_10_feed.xml"),
                                 cc);
                 artifact
                         .out(
                                 this
-                                        .readDocument("src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_08_out_statistics.xml"),
+                                        .readDocument("src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_10_out_statistics.xml"),
                                 fos2, cc);
                 artifact
                         .out(
                                 this
-                                        .readDocument("src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_08_out_chart.xml"),
+                                        .readDocument("src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_10_out_chart.xml"),
                                 fos, cc);
-                artifact.out(this.readDocument("src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_08_out_csv.xml"),
+                artifact.out(this.readDocument("src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_10_out_csv.xml"),
                              fos3,
                              cc);
             } catch (Exception e) {
@@ -919,6 +978,14 @@
                             "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_04_feed.xml",
                             "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_04_advance.xml", describeDocument);
             
+            // Fünfter Schritt
+            this
+            .doNextStep(
+                    artifact,
+                    cc,
+                    "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_05_feed.xml",
+                    "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_05_advance.xml", describeDocument);
+    
             Document outputData = artifact.describe(describeDocument,cc);
             FileOutputStream fos = null;
             FileOutputStream fos2 = null;
@@ -935,18 +1002,18 @@
                                 + System.currentTimeMillis() + ".csv");
                 artifact
                         .feed(this.readDocument("src/test/ressources/horizontal" +
-                                                "crosssection_mesh/horizontalcrosssection_step_05_feed.xml"),
+                                                "crosssection_mesh/horizontalcrosssection_step_06_feed.xml"),
                               cc);
                 artifact
                         .out(this.readDocument("src/test/ressources/horizontal" +
-                                               "crosssection_mesh/horizontalcrosssection_step_05_out_statistics.xml"),
+                                               "crosssection_mesh/horizontalcrosssection_step_06_out_statistics.xml"),
                               fos2, cc);
                 artifact
                         .out(this.readDocument("src/test/ressources/horizontal" +
-                                               "crosssection_mesh/horizontalcrosssection_step_05_out_chart.xml"),
+                                               "crosssection_mesh/horizontalcrosssection_step_06_out_chart.xml"),
                               fos, cc);
                 artifact.out(this.readDocument("src/test/ressources/horizontal" +
-                                               "crosssection_mesh/horizontalcrosssection_step_05_out_csv.xml"),
+                                               "crosssection_mesh/horizontalcrosssection_step_06_out_csv.xml"),
                              fos3,
                              cc);
             } catch (Exception e) {
@@ -1029,7 +1096,13 @@
                             cc,
                             "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_06_feed.xml",
                             "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_06_advance.xml", describeDocument);
-
+            // Siebter Schritt
+            this
+                    .doNextStep(
+                            artifact,
+                            cc,
+                            "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_07_feed.xml",
+                            "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_07_advance.xml", describeDocument);
            
             Document outputData = artifact.describe(describeDocument,cc);
             FileOutputStream fos = null;
@@ -1048,19 +1121,19 @@
                 artifact
                         .feed(
                                 this
-                                        .readDocument("src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_07_feed.xml"),
+                                        .readDocument("src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_08_feed.xml"),
                                 cc);
                 artifact
                         .out(
                                 this
-                                        .readDocument("src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_07_out_statistics.xml"),
+                                        .readDocument("src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_08_out_statistics.xml"),
                                 fos2, cc);
                 artifact
                         .out(
                                 this
-                                        .readDocument("src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_07_out_chart.xml"),
+                                        .readDocument("src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_08_out_chart.xml"),
                                 fos, cc);
-                artifact.out(this.readDocument("src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_07_out_csv.xml"),
+                artifact.out(this.readDocument("src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_08_out_csv.xml"),
                              fos3,
                              cc);
             } catch (Exception e) {

http://dive4elements.wald.intevation.org