Mercurial > dive4elements > gnv-client
diff gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/GNVArtifactsTestCase.java @ 222:3e82b4f1c455
Removed some Compilation-Errors according to API-Changes in the ArtifactDatabase.
Added the possibility to switch to an alternative Transition.
gnv-artifacts/trunk@284 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Thu, 05 Nov 2009 14:45:54 +0000 |
parents | f8cb64d5fe4f |
children | a610c0a01afc |
line wrap: on
line diff
--- a/gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/GNVArtifactsTestCase.java Tue Nov 03 11:46:30 2009 +0000 +++ b/gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/GNVArtifactsTestCase.java Thu Nov 05 14:45:54 2009 +0000 @@ -91,12 +91,13 @@ // Erster Schritt + Document describeDocument = this.readDocument("src/test/ressources/timeseries/timeseries_describe.xml"); this .doNextStep( artifact, cc, "src/test/ressources/timeseries/timeseries_step_01_feed.xml", - "src/test/ressources/timeseries/timeseries_step_01_advance.xml"); + "src/test/ressources/timeseries/timeseries_step_01_advance.xml", describeDocument); // Zweiter Schritt this @@ -104,7 +105,7 @@ artifact, cc, "src/test/ressources/timeseries/timeseries_step_02_feed.xml", - "src/test/ressources/timeseries/timeseries_step_02_advance.xml"); + "src/test/ressources/timeseries/timeseries_step_02_advance.xml", describeDocument); // Dritter Schritt this @@ -112,7 +113,7 @@ artifact, cc, "src/test/ressources/timeseries/timeseries_step_03_feed.xml", - "src/test/ressources/timeseries/timeseries_step_03_advance.xml"); + "src/test/ressources/timeseries/timeseries_step_03_advance.xml", describeDocument); // Vierter Schritt this @@ -120,11 +121,11 @@ artifact, cc, "src/test/ressources/timeseries/timeseries_step_04_feed.xml", - "src/test/ressources/timeseries/timeseries_step_04_advance.xml"); + "src/test/ressources/timeseries/timeseries_step_04_advance.xml", describeDocument); Document outputData; // Fünfter Schritt - outputData = artifact.describe(cc); + outputData = artifact.describe(describeDocument,cc); FileOutputStream fos = null; try { fos = new FileOutputStream( @@ -171,12 +172,13 @@ /** * @param artifact * @param cc + * @param describeDocument TODO * @throws Exception */ private void doNextStep(Artifact artifact, CallContext cc, - String feedDocument, String advanceDocument) + String feedDocument, String advanceDocument, Document describeDocument) throws Exception { - Document outputData = artifact.describe(cc); + Document outputData = artifact.describe(describeDocument,cc); // this.writeDocument2Log(outputData); outputData = artifact.feed(this.readDocument(feedDocument), cc); this.check4ExceptionReport(outputData); @@ -201,13 +203,14 @@ CallContext cc = createCallContext(); + Document describeDocument = this.readDocument("src/test/ressources/timeseries_mesh/timeseries_describe.xml"); // Erster Schritt this .doNextStep( artifact, cc, "src/test/ressources/timeseries_mesh/timeseries_step_01_feed.xml", - "src/test/ressources/timeseries_mesh/timeseries_step_01_advance.xml"); + "src/test/ressources/timeseries_mesh/timeseries_step_01_advance.xml", describeDocument); // Zweiter Schritt this @@ -215,7 +218,7 @@ artifact, cc, "src/test/ressources/timeseries_mesh/timeseries_step_02_feed.xml", - "src/test/ressources/timeseries_mesh/timeseries_step_02_advance.xml"); + "src/test/ressources/timeseries_mesh/timeseries_step_02_advance.xml", describeDocument); // Dritter Schritt this @@ -223,7 +226,7 @@ artifact, cc, "src/test/ressources/timeseries_mesh/timeseries_step_03_feed.xml", - "src/test/ressources/timeseries_mesh/timeseries_step_03_advance.xml"); + "src/test/ressources/timeseries_mesh/timeseries_step_03_advance.xml", describeDocument); // Vierter Schritt this @@ -231,7 +234,7 @@ artifact, cc, "src/test/ressources/timeseries_mesh/timeseries_step_04_feed.xml", - "src/test/ressources/timeseries_mesh/timeseries_step_04_advance.xml"); + "src/test/ressources/timeseries_mesh/timeseries_step_04_advance.xml", describeDocument); // Fünfter Schritt this @@ -239,7 +242,7 @@ artifact, cc, "src/test/ressources/timeseries_mesh/timeseries_step_05_feed.xml", - "src/test/ressources/timeseries_mesh/timeseries_step_05_advance.xml"); + "src/test/ressources/timeseries_mesh/timeseries_step_05_advance.xml", describeDocument); // Sechster Schritt this @@ -247,10 +250,10 @@ artifact, cc, "src/test/ressources/timeseries_mesh/timeseries_step_06_feed.xml", - "src/test/ressources/timeseries_mesh/timeseries_step_06_advance.xml"); + "src/test/ressources/timeseries_mesh/timeseries_step_06_advance.xml", describeDocument); // Siebter Schritt - Document outputData = artifact.describe(cc); + Document outputData = artifact.describe(describeDocument,cc); FileOutputStream fos = null; FileOutputStream fos2 = null; FileOutputStream fos3 = null; @@ -320,13 +323,14 @@ CallContext cc = createCallContext(); + Document describeDocument = this.readDocument("src/test/ressources/verticalprofile/verticalprofile_describe.xml"); // Erster Schritt this .doNextStep( artifact, cc, "src/test/ressources/verticalprofile/verticalprofile_step_01_feed.xml", - "src/test/ressources/verticalprofile/verticalprofile_step_02_advance.xml"); + "src/test/ressources/verticalprofile/verticalprofile_step_02_advance.xml", describeDocument); // Zweiter Schritt this @@ -334,7 +338,7 @@ artifact, cc, "src/test/ressources/verticalprofile/verticalprofile_step_02_feed.xml", - "src/test/ressources/verticalprofile/verticalprofile_step_02_advance.xml"); + "src/test/ressources/verticalprofile/verticalprofile_step_02_advance.xml", describeDocument); // Dritter Schritt this @@ -342,7 +346,7 @@ artifact, cc, "src/test/ressources/verticalprofile/verticalprofile_step_03_feed.xml", - "src/test/ressources/verticalprofile/verticalprofile_step_03_advance.xml"); + "src/test/ressources/verticalprofile/verticalprofile_step_03_advance.xml", describeDocument); // Vierter Schritt this @@ -350,11 +354,11 @@ artifact, cc, "src/test/ressources/verticalprofile/verticalprofile_step_04_feed.xml", - "src/test/ressources/verticalprofile/verticalprofile_step_04_advance.xml"); + "src/test/ressources/verticalprofile/verticalprofile_step_04_advance.xml", describeDocument); // Vierter Schritt - Document outputData = artifact.describe(cc); + Document outputData = artifact.describe(describeDocument,cc); FileOutputStream fos = null; FileOutputStream fos2 = null; FileOutputStream fos3 = null; @@ -423,14 +427,14 @@ log.debug("VerticalProfile-Artifact is available"); CallContext cc = createCallContext(); - + Document describeDocument = this.readDocument("src/test/ressources/verticalprofile_mesh/verticalprofile_describe.xml"); // Erster Schritt this .doNextStep( artifact, cc, "src/test/ressources/verticalprofile_mesh/verticalprofile_step_01_feed.xml", - "src/test/ressources/verticalprofile_mesh/verticalprofile_step_01_advance.xml"); + "src/test/ressources/verticalprofile_mesh/verticalprofile_step_01_advance.xml", describeDocument); // Zweiter Schritt this @@ -438,7 +442,7 @@ artifact, cc, "src/test/ressources/verticalprofile_mesh/verticalprofile_step_02_feed.xml", - "src/test/ressources/verticalprofile_mesh/verticalprofile_step_02_advance.xml"); + "src/test/ressources/verticalprofile_mesh/verticalprofile_step_02_advance.xml", describeDocument); // Dritter Schritt this @@ -446,7 +450,7 @@ artifact, cc, "src/test/ressources/verticalprofile_mesh/verticalprofile_step_03_feed.xml", - "src/test/ressources/verticalprofile_mesh/verticalprofile_step_03_advance.xml"); + "src/test/ressources/verticalprofile_mesh/verticalprofile_step_03_advance.xml", describeDocument); // Vierter Schritt this @@ -454,7 +458,7 @@ artifact, cc, "src/test/ressources/verticalprofile_mesh/verticalprofile_step_04_feed.xml", - "src/test/ressources/verticalprofile_mesh/verticalprofile_step_04_advance.xml"); + "src/test/ressources/verticalprofile_mesh/verticalprofile_step_04_advance.xml", describeDocument); // Fünfter Schritt this @@ -462,7 +466,7 @@ artifact, cc, "src/test/ressources/verticalprofile_mesh/verticalprofile_step_05_feed.xml", - "src/test/ressources/verticalprofile_mesh/verticalprofile_step_05_advance.xml"); + "src/test/ressources/verticalprofile_mesh/verticalprofile_step_05_advance.xml", describeDocument); // Sechster Schritt this @@ -470,7 +474,7 @@ artifact, cc, "src/test/ressources/verticalprofile_mesh/verticalprofile_step_06_feed.xml", - "src/test/ressources/verticalprofile_mesh/verticalprofile_step_06_advance.xml"); + "src/test/ressources/verticalprofile_mesh/verticalprofile_step_06_advance.xml", describeDocument); // Siebter Schritt this @@ -478,10 +482,10 @@ artifact, cc, "src/test/ressources/verticalprofile_mesh/verticalprofile_step_07_feed.xml", - "src/test/ressources/verticalprofile_mesh/verticalprofile_step_07_advance.xml"); + "src/test/ressources/verticalprofile_mesh/verticalprofile_step_07_advance.xml", describeDocument); // Achter Schritt - Document outputData = artifact.describe(cc); + Document outputData = artifact.describe(describeDocument,cc); FileOutputStream fos = null; FileOutputStream fos2 = null; FileOutputStream fos3 = null; @@ -550,14 +554,14 @@ log.debug("VerticalProfile-Artifact is available"); CallContext cc = createCallContext(); - + Document describeDocument = this.readDocument("src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_describe.xml"); // Erster Schritt this .doNextStep( artifact, cc, "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_01_feed.xml", - "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_01_advance.xml"); + "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_01_advance.xml", describeDocument); // Zweiter Schritt this @@ -565,7 +569,7 @@ artifact, cc, "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_02_feed.xml", - "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_02_advance.xml"); + "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_02_advance.xml", describeDocument); // Dritter Schritt this @@ -573,17 +577,17 @@ artifact, cc, "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_03_feed.xml", - "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_03_advance.xml"); + "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_03_advance.xml", describeDocument); // Vierter Schritt this .doNextStep( artifact, cc, "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_04_feed.xml", - "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_04_advance.xml"); + "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_04_advance.xml", describeDocument); // Vierter Schritt - Document outputData = artifact.describe(cc); + Document outputData = artifact.describe(describeDocument,cc); FileOutputStream fos = null; FileOutputStream fos2 = null; FileOutputStream fos3 = null; @@ -653,14 +657,14 @@ log.debug("VerticalProfile-Artifact is available"); CallContext cc = createCallContext(); - + Document describeDocument = this.readDocument("src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_describe.xml"); // Erster Schritt this .doNextStep( artifact, cc, "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_00_feed.xml", - "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_00_advance.xml"); + "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_00_advance.xml", describeDocument); // Erster Schritt this @@ -668,7 +672,7 @@ artifact, cc, "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_01_feed.xml", - "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_01_advance.xml"); + "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_01_advance.xml", describeDocument); // Zweiter Schritt this @@ -676,30 +680,30 @@ artifact, cc, "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_02_feed.xml", - "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_02_advance.xml"); + "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_02_advance.xml", describeDocument); // Dritter Schritt this .doNextStep( artifact, cc, "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_03_feed.xml", - "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_03_advance.xml"); + "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_03_advance.xml", describeDocument); // Vierter Schritt this .doNextStep( artifact, cc, "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_04_feed.xml", - "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_04_advance.xml"); + "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_04_advance.xml", describeDocument); // Fünfter Schritt this .doNextStep( artifact, cc, "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_05_feed.xml", - "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_05_advance.xml"); + "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_05_advance.xml", describeDocument); - Document outputData = artifact.describe(cc); + Document outputData = artifact.describe(describeDocument, cc); FileOutputStream fos = null; FileOutputStream fos2 = null; FileOutputStream fos3 = null; @@ -763,14 +767,14 @@ log.debug("VerticalProfile-Artifact is available"); CallContext cc = createCallContext(); - + Document describeDocument = this.readDocument("src/test/ressources/horizontalProfile_mesh/horizontalprofile_describe.xml"); // Erster Schritt this .doNextStep( artifact, cc, "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_01_feed.xml", - "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_01_advance.xml"); + "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_01_advance.xml", describeDocument); // Zweiter Schritt this @@ -778,28 +782,28 @@ artifact, cc, "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_02_feed.xml", - "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_02_advance.xml"); + "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_02_advance.xml", describeDocument); // Dritter Schritt this .doNextStep( artifact, cc, "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_03_feed.xml", - "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_03_advance.xml"); + "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_03_advance.xml", describeDocument); // Vierter Schritt this .doNextStep( artifact, cc, "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_04_feed.xml", - "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_04_advance.xml"); + "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_04_advance.xml", describeDocument); // Fünfter Schritt this .doNextStep( artifact, cc, "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_05_feed.xml", - "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_05_advance.xml"); + "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_05_advance.xml", describeDocument); // Sechster Schritt this @@ -807,7 +811,7 @@ artifact, cc, "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_06_feed.xml", - "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_06_advance.xml"); + "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_06_advance.xml", describeDocument); // Siebter Schritt this @@ -815,9 +819,9 @@ artifact, cc, "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_07_feed.xml", - "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_07_advance.xml"); + "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_07_advance.xml", describeDocument); - Document outputData = artifact.describe(cc); + Document outputData = artifact.describe(describeDocument,cc); FileOutputStream fos = null; FileOutputStream fos2 = null; FileOutputStream fos3 = null; @@ -884,14 +888,14 @@ log.debug("HorizontalCrossSectionMesh-Artifact is available"); CallContext cc = createCallContext(); - + Document describeDocument = this.readDocument("src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_describe.xml"); // Erster Schritt this .doNextStep( artifact, cc, "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_01_feed.xml", - "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_01_advance.xml"); + "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_01_advance.xml", describeDocument); // Zweiter Schritt this @@ -899,23 +903,23 @@ artifact, cc, "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_02_feed.xml", - "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_02_advance.xml"); + "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_02_advance.xml", describeDocument); // Dritter Schritt this .doNextStep( artifact, cc, "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_03_feed.xml", - "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_03_advance.xml"); + "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_03_advance.xml", describeDocument); // Vierter Schritt this .doNextStep( artifact, cc, "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_04_feed.xml", - "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_04_advance.xml"); + "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_04_advance.xml", describeDocument); - Document outputData = artifact.describe(cc); + Document outputData = artifact.describe(describeDocument,cc); FileOutputStream fos = null; FileOutputStream fos2 = null; FileOutputStream fos3 = null; @@ -980,14 +984,14 @@ log.debug("VerticalProfile-Artifact is available"); CallContext cc = createCallContext(); - + Document describeDocument = this.readDocument("src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_describe.xml"); // Erster Schritt this .doNextStep( artifact, cc, "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_01_feed.xml", - "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_01_advance.xml"); + "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_01_advance.xml", describeDocument); // Zweiter Schritt this @@ -995,28 +999,28 @@ artifact, cc, "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_02_feed.xml", - "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_02_advance.xml"); + "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_02_advance.xml", describeDocument); // Dritter Schritt this .doNextStep( artifact, cc, "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_03_feed.xml", - "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_03_advance.xml"); + "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_03_advance.xml", describeDocument); // Vierter Schritt this .doNextStep( artifact, cc, "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_04_feed.xml", - "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_04_advance.xml"); + "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_04_advance.xml", describeDocument); // Fünfter Schritt this .doNextStep( artifact, cc, "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_05_feed.xml", - "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_05_advance.xml"); + "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_05_advance.xml", describeDocument); // Sechster Schritt this @@ -1024,10 +1028,10 @@ artifact, cc, "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_06_feed.xml", - "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_06_advance.xml"); + "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_06_advance.xml", describeDocument); - Document outputData = artifact.describe(cc); + Document outputData = artifact.describe(describeDocument,cc); FileOutputStream fos = null; FileOutputStream fos2 = null; FileOutputStream fos3 = null;