diff gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/MeshHorizontalCrossSectionTestCase.java @ 485:4939236c2dc9

Fixed Compilation and Runtimeerrors in Unittests. gnv-artifacts/trunk@560 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 18 Jan 2010 11:26:51 +0000
parents bdbca6022cf5
children b8ba642b6866
line wrap: on
line diff
--- a/gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/MeshHorizontalCrossSectionTestCase.java	Mon Jan 18 11:25:52 2010 +0000
+++ b/gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/MeshHorizontalCrossSectionTestCase.java	Mon Jan 18 11:26:51 2010 +0000
@@ -52,7 +52,7 @@
             assertNotNull(artifact);
             log.debug("HorizontalCrossSectionMesh-Artifact is available");
 
-            CallContext cc = createCallContext();
+            CallContext cc = createCallContext(artifactFactory);
             Document describeDocument = this.readDocument("src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_describe.xml");
             int steps = 7;
             
@@ -70,30 +70,21 @@
             Document outputData = artifact.describe(describeDocument,cc);
             FileOutputStream fos = null;
             FileOutputStream fos2 = null;
-            FileOutputStream fos3 = null;
             try {
                 fos = new FileOutputStream(
                         "src/test/results/horizontalcrosssection_mesh"
-                                + System.currentTimeMillis() + ".png");
-                
+                                + System.currentTimeMillis() + ".zip");
                 fos2 = new FileOutputStream(
                         "src/test/results/horizontalcrosssection_mesh"
-                                + System.currentTimeMillis() + ".csv");
-                fos3 = new FileOutputStream(
-                        "src/test/results/horizontalcrosssection_mesh"
-                                + System.currentTimeMillis() + ".odv");
+                                + System.currentTimeMillis() + ".txt");
                 artifact.out(this.readDocument("src/test/ressources/" +
                                                "horizontalcrosssection_mesh/" +
-                                               "horizontalcrosssection_step_07_out_chart.xml"),
+                                               "horizontalcrosssection_step_07_out_zip.xml"),
                               fos, cc);
                 artifact.out(this.readDocument("src/test/ressources/" +
                                                "horizontalcrosssection_mesh/" +
-                                               "horizontalcrosssection_step_07_out_csv.xml"),
+                                               "horizontalcrosssection_step_07_out_wms.xml"),
                              fos2,cc);
-                artifact.out(this.readDocument("src/test/ressources/" +
-                                               "horizontalcrosssection_mesh/" +
-                                               "horizontalcrosssection_step_07_out_odv.xml"),
-                              fos3,cc);
             } catch (Exception e) {
                 log.error(e, e);
                 fail();
@@ -103,8 +94,6 @@
                     fos.close();
                     fos2.flush();
                     fos2.close();
-                    fos3.flush();
-                    fos3.close();
                 } catch (Exception e) {
                     log.error(e, e);
                 }

http://dive4elements.wald.intevation.org