annotate gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/MeshHorizontalProfileTestCase.java @ 595:e0d7b8a0bc42

Compilance-Errors triggered by Interface-Modifications in the Artifact-Module. Some Refactoringwork affecting the JunitTest-Classes done. gnv-artifacts/trunk@651 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 01 Feb 2010 14:14:19 +0000
parents b8ba642b6866
children 9a828e5a2390
rev   line source
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
1 /**
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
2 *
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
3 */
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
4 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
5
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
6 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
7
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
8 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
9 import org.w3c.dom.Document;
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
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
11 import de.intevation.artifacts.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
12 import de.intevation.artifacts.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
13 import de.intevation.artifacts.CallContext;
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
14
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 /**
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 * @author Tim Englich <tim.englich@intevation.de>
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 *
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 */
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
19 public class MeshHorizontalProfileTestCase extends 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
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 private static Logger log = Logger.getLogger(MeshHorizontalProfileTestCase.class);
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
22
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 * 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
25 */
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 public MeshHorizontalProfileTestCase() {
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
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
29 /**
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 * 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
31 * @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
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 MeshHorizontalProfileTestCase(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
34 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
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 /**
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 * @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
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 @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
41 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
42 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
43 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
44 "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
45 String artefactName = "fis_modeldata";
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 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
47 .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
48 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
49 log.debug("VerticalProfile-ArtifactFactory is available");
595
e0d7b8a0bc42 Compilance-Errors triggered by Interface-Modifications in the Artifact-Module.
Tim Englich <tim.englich@intevation.de>
parents: 591
diff changeset
50
e0d7b8a0bc42 Compilance-Errors triggered by Interface-Modifications in the Artifact-Module.
Tim Englich <tim.englich@intevation.de>
parents: 591
diff changeset
51 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
52
485
4939236c2dc9 Fixed Compilation and Runtimeerrors in Unittests.
Tim Englich <tim.englich@intevation.de>
parents: 345
diff changeset
53 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
54 Document describeDocument = this.readDocument("src/test/ressources/horizontalProfile_mesh/horizontalprofile_describe.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
55
591
b8ba642b6866 Fixed the broken JUnittests.
Tim Englich <tim.englich@intevation.de>
parents: 485
diff changeset
56 int steps = 11;
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
57
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
58 for (int i = 1; i <= steps; i++){
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 String number = ""+i;
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
60 if (i < 10){
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 number = "0"+number;
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
62 }
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 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
64 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
65 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
66 "src/test/ressources/horizontalProfile_mesh/" +
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 "horizontalprofile_step_"+number+"_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
68 "src/test/ressources/horizontalProfile_mesh/" +
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 "horizontalprofile_step_"+number+"_advance.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
70 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
71 }
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
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
73 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
74 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
75 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
76 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
77 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
78 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
79 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
80 "src/test/results/horizontalProfile_mesh"
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 + 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
82 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
83 "src/test/results/horizontalProfile_mesh"
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 + 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
85 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
86 "src/test/results/horizontalProfile_mesh"
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 + 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
88 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
89 "src/test/results/horizontalProfile_mesh"
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 + 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
91 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
92 "horizontalProfile_mesh/" +
591
b8ba642b6866 Fixed the broken JUnittests.
Tim Englich <tim.englich@intevation.de>
parents: 485
diff changeset
93 "horizontalprofile_step_"+steps+"_out_statistics.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
94 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
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_mesh/" +
591
b8ba642b6866 Fixed the broken JUnittests.
Tim Englich <tim.englich@intevation.de>
parents: 485
diff changeset
97 "horizontalprofile_step_"+steps+"_out_chart.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
98 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
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_mesh/" +
591
b8ba642b6866 Fixed the broken JUnittests.
Tim Englich <tim.englich@intevation.de>
parents: 485
diff changeset
101 "horizontalprofile_step_"+steps+"_out_csv.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
102 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
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_mesh/" +
591
b8ba642b6866 Fixed the broken JUnittests.
Tim Englich <tim.englich@intevation.de>
parents: 485
diff changeset
105 "horizontalprofile_step_"+steps+"_out_odv.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
106 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
107 } 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
108 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
109 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
110 } 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
111 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
112 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
113 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
114 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
115 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
116 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
117 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
118 fos4.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 fos4.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 } 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
121 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
122 }
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 }
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 } 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
125 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
126 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
127 }
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 }
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 }

http://dive4elements.wald.intevation.org