Mercurial > dive4elements > gnv-client
annotate gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/TimeSeriesPointTimeSeriesTestCase.java @ 807:a645bd23c1c8
Added more javadoc. Removed trailing whitespace.
gnv-artifacts/trunk@889 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 08 Apr 2010 15:24:45 +0000 |
parents | c4156275c1e1 |
children | f953c9a559d8 |
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 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
|
2 |
779
b1f5f2a8840f
Ordered imports. Removed needless imports. Removed empty headers.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
778
diff
changeset
|
3 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
|
4 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
|
5 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
|
6 |
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
|
7 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
|
8 |
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.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
|
10 |
779
b1f5f2a8840f
Ordered imports. Removed needless imports. Removed empty headers.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
778
diff
changeset
|
11 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
|
12 |
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 /** |
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
|
14 * @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
|
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 */ |
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 public class TimeSeriesPointTimeSeriesTestCase 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
|
18 |
778
9a828e5a2390
Removed trailing whitespace
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
595
diff
changeset
|
19 |
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 * the logger, used to log exceptions and additonaly information |
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 private static Logger log = Logger.getLogger(TimeSeriesPointTimeSeriesTestCase.class); |
778
9a828e5a2390
Removed trailing whitespace
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
595
diff
changeset
|
24 |
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
|
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 * 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
|
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 public TimeSeriesPointTimeSeriesTestCase() { |
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 |
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 /** |
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 * 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
|
33 * @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
|
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 public TimeSeriesPointTimeSeriesTestCase(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
|
36 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
|
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 |
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 * @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
|
41 */ |
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 @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
|
43 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
|
44 log.debug("GNVArtifactsTestCase.testTimeSeriesArtifact"); |
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 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
|
46 String artefactName = "fis_marnet"; |
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 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
|
48 .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
|
49 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
|
50 log.debug("TimeSeries-ArtifactFactory is available"); |
778
9a828e5a2390
Removed trailing whitespace
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
595
diff
changeset
|
51 |
595
e0d7b8a0bc42
Compilance-Errors triggered by Interface-Modifications in the Artifact-Module.
Tim Englich <tim.englich@intevation.de>
parents:
485
diff
changeset
|
52 Artifact artifact = createArtifact(artifactFactory); |
778
9a828e5a2390
Removed trailing whitespace
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
595
diff
changeset
|
53 |
485
4939236c2dc9
Fixed Compilation and Runtimeerrors in Unittests.
Tim Englich <tim.englich@intevation.de>
parents:
347
diff
changeset
|
54 CallContext cc = createCallContext(artifactFactory); |
778
9a828e5a2390
Removed trailing whitespace
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
595
diff
changeset
|
55 |
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
|
56 // Erster Schritt |
778
9a828e5a2390
Removed trailing whitespace
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
595
diff
changeset
|
57 |
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
|
58 Document describeDocument = this.readDocument("src/test/ressources/timeseries/timeseries_describe.xml"); |
778
9a828e5a2390
Removed trailing whitespace
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
595
diff
changeset
|
59 |
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
|
60 int steps = 6; |
778
9a828e5a2390
Removed trailing whitespace
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
595
diff
changeset
|
61 |
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
|
62 for (int i = 1; i <= steps; i++){ |
778
9a828e5a2390
Removed trailing whitespace
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
595
diff
changeset
|
63 |
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
|
64 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
|
65 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
|
66 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
|
67 "src/test/ressources/timeseries/" + |
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 "timeseries_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
|
69 "src/test/ressources/timeseries/" + |
778
9a828e5a2390
Removed trailing whitespace
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
595
diff
changeset
|
70 "timeseries_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
|
71 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
|
72 } |
778
9a828e5a2390
Removed trailing whitespace
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
595
diff
changeset
|
73 |
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 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
|
75 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
|
76 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
|
77 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
|
78 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
|
79 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
|
80 fos = new FileOutputStream("src/test/results/timeseries" |
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() |
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 + ".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
|
83 fos2 = new FileOutputStream("src/test/results/timeseries" |
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() |
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 + ".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
|
86 fos3 = new FileOutputStream("src/test/results/timeseries" |
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() |
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 + ".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
|
89 fos4 = new FileOutputStream("src/test/results/timeseries" |
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() |
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 + ".odv"); |
778
9a828e5a2390
Removed trailing whitespace
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
595
diff
changeset
|
92 |
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
|
93 artifact.out(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
|
94 .readDocument("src/test/ressources/timeseries/timeseries_step_06_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
|
95 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
|
96 artifact.out(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
|
97 .readDocument("src/test/ressources/timeseries/timeseries_step_06_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 |
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 .readDocument("src/test/ressources/timeseries/timeseries_step_06_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
|
101 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
|
102 artifact.out(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
|
103 .readDocument("src/test/ressources/timeseries/timeseries_step_06_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
|
104 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
|
105 } 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
|
106 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
|
107 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
|
108 } 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
|
109 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
|
110 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
|
111 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
|
112 } 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
|
113 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
|
114 } |
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 } |
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 } 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
|
117 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
|
118 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
|
119 } |
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 } |
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 |
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 } |