annotate gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/InstantaneousPointHorizontalProfileTestCase.java @ 1145:dfe1ac687c7f tip

added tags
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:16:15 +0200
parents f953c9a559d8
children
rev   line source
1115
f953c9a559d8 Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 780
diff changeset
1 /*
f953c9a559d8 Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 780
diff changeset
2 * Copyright (c) 2010 by Intevation GmbH
f953c9a559d8 Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 780
diff changeset
3 *
f953c9a559d8 Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 780
diff changeset
4 * This program is free software under the LGPL (>=v2.1)
f953c9a559d8 Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 780
diff changeset
5 * Read the file LGPL.txt coming with the software for details
f953c9a559d8 Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 780
diff changeset
6 * or visit http://www.gnu.org/licenses/ if it does not exist.
f953c9a559d8 Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 780
diff changeset
7 */
f953c9a559d8 Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 780
diff changeset
8
345
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
9 package de.intevation.gnv.artifacts;
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
10
779
b1f5f2a8840f Ordered imports. Removed needless imports. Removed empty headers.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 778
diff changeset
11 import de.intevation.artifacts.Artifact;
b1f5f2a8840f Ordered imports. Removed needless imports. Removed empty headers.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 778
diff changeset
12 import de.intevation.artifacts.ArtifactFactory;
b1f5f2a8840f Ordered imports. Removed needless imports. Removed empty headers.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 778
diff changeset
13 import de.intevation.artifacts.CallContext;
b1f5f2a8840f Ordered imports. Removed needless imports. Removed empty headers.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 778
diff changeset
14
345
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
15 import java.io.FileOutputStream;
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
16
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
17 import org.apache.log4j.Logger;
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
18
779
b1f5f2a8840f Ordered imports. Removed needless imports. Removed empty headers.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 778
diff changeset
19 import org.w3c.dom.Document;
345
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
20
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
21 /**
780
c4156275c1e1 Bring @author javadoc tags in form '@author <a href="john.doe@example.com">John Doe</a>'
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 779
diff changeset
22 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a>
345
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
23 *
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
24 */
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
25 public class InstantaneousPointHorizontalProfileTestCase extends
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
26 GNVArtifactsTestCaseBase {
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
27
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
28 private static Logger log = Logger.getLogger(InstantaneousPointHorizontalProfileTestCase.class);
778
9a828e5a2390 Removed trailing whitespace
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 595
diff changeset
29
345
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
30 /**
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
31 * Constructor
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
32 */
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
33 public InstantaneousPointHorizontalProfileTestCase() {
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
34 }
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
35
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
36 /**
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
37 * Constructor
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
38 * @param name
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
39 */
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
40 public InstantaneousPointHorizontalProfileTestCase(String name) {
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
41 super(name);
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
42 }
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
43
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
44 /**
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
45 * @see de.intevation.gnv.artifacts.GNVArtifactsTestCaseBase#testArtifact()
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
46 */
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
47 @Override
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
48 public void testArtifact() {
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
49 try {
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
50 log.debug("GNVArtifactsTestCase." +
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
51 "testHorizontalProfileInstantaneousPointArtifact");
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
52 String artefactName = "fis_delphin";
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
53 ArtifactFactory artifactFactory = this
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
54 .getArtifactFactory(artefactName);
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
55 assertNotNull(artifactFactory);
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
56 log.debug("VerticalProfile-ArtifactFactory is available");
778
9a828e5a2390 Removed trailing whitespace
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 595
diff changeset
57
595
e0d7b8a0bc42 Compilance-Errors triggered by Interface-Modifications in the Artifact-Module.
Tim Englich <tim.englich@intevation.de>
parents: 485
diff changeset
58 Artifact artifact = createArtifact(artifactFactory);
345
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
59
485
4939236c2dc9 Fixed Compilation and Runtimeerrors in Unittests.
Tim Englich <tim.englich@intevation.de>
parents: 345
diff changeset
60 CallContext cc = createCallContext(artifactFactory);
345
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
61 Document describeDocument = this.readDocument("src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_describe.xml");
778
9a828e5a2390 Removed trailing whitespace
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 595
diff changeset
62
345
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
63 int steps = 9;
778
9a828e5a2390 Removed trailing whitespace
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 595
diff changeset
64
345
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
65 for (int i = 0; i < steps; i++){
778
9a828e5a2390 Removed trailing whitespace
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 595
diff changeset
66
345
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
67 this.doNextStep(
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
68 artifact,
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
69 cc,
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
70 "src/test/ressources/horizontalProfile_instantaneouspoint/" +
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
71 "horizontalprofile_step_0"+i+"_feed.xml",
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
72 "src/test/ressources/horizontalProfile_instantaneouspoint/" +
778
9a828e5a2390 Removed trailing whitespace
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 595
diff changeset
73 "horizontalprofile_step_0"+i+"_advance.xml",
345
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
74 describeDocument);
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
75 }
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
76
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
77 Document outputData = artifact.describe(describeDocument, cc);
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
78 FileOutputStream fos = null;
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
79 FileOutputStream fos2 = null;
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
80 FileOutputStream fos3 = null;
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
81 FileOutputStream fos4 = null;
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
82 try {
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
83 fos = new FileOutputStream(
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
84 "src/test/results/horizontalprofile_instantaneouspoint"
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
85 + System.currentTimeMillis() + ".png");
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
86 fos2 = new FileOutputStream(
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
87 "src/test/results/horizontalprofile_instantaneouspoint"
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
88 + System.currentTimeMillis() + ".xml");
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
89 fos3 = new FileOutputStream(
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
90 "src/test/results/horizontalprofile_instantaneouspoint"
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
91 + System.currentTimeMillis() + ".csv");
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
92 fos4 = new FileOutputStream(
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
93 "src/test/results/horizontalprofile_instantaneouspoint"
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
94 + System.currentTimeMillis() + ".odv");
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
95 artifact.out(this.readDocument("src/test/ressources/" +
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
96 "horizontalProfile_instantaneouspoint/" +
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
97 "horizontalprofile_step_08_out_statistics.xml"),
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
98 fos2,cc);
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
99 artifact.out(this.readDocument("src/test/ressources/" +
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
100 "horizontalProfile_instantaneouspoint/" +
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
101 "horizontalprofile_step_08_out_chart.xml"),
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
102 fos,cc);
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
103 artifact.out(this.readDocument("src/test/ressources/" +
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
104 "horizontalProfile_instantaneouspoint/" +
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
105 "horizontalprofile_step_08_out_csv.xml"),
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
106 fos3,cc);
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
107 artifact.out(this.readDocument("src/test/ressources/" +
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
108 "horizontalProfile_instantaneouspoint/" +
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
109 "horizontalprofile_step_08_out_odv.xml"),
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
110 fos4,cc);
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
111 } catch (Exception e) {
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
112 log.error(e, e);
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
113 fail();
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
114 } finally {
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
115 try {
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
116 fos.flush();
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
117 fos.close();
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
118 fos2.flush();
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
119 fos2.close();
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
120 fos3.flush();
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
121 fos3.close();
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
122 } catch (Exception e) {
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
123 log.error(e, e);
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
124 }
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
125 }
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
126 } catch (Exception e) {
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
127 log.error(e, e);
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
128 fail();
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
129 }
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
130 }
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
131
c16c622ba2f3 Split all Unittestcases in separat Classes. Now it is easier to uses the UnitTests with Maven.
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
132 }

http://dive4elements.wald.intevation.org