Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/TimeSeriesPointTimeSeriesTestCase.java @ 778:9a828e5a2390
Removed trailing whitespace
gnv-artifacts/trunk@851 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 29 Mar 2010 07:58:51 +0000 |
parents | e0d7b8a0bc42 |
children | b1f5f2a8840f |
comparison
equal
deleted
inserted
replaced
777:8009961db1cb | 778:9a828e5a2390 |
---|---|
16 * @author Tim Englich <tim.englich@intevation.de> | 16 * @author Tim Englich <tim.englich@intevation.de> |
17 * | 17 * |
18 */ | 18 */ |
19 public class TimeSeriesPointTimeSeriesTestCase extends GNVArtifactsTestCaseBase { | 19 public class TimeSeriesPointTimeSeriesTestCase extends GNVArtifactsTestCaseBase { |
20 | 20 |
21 | 21 |
22 /** | 22 /** |
23 * the logger, used to log exceptions and additonaly information | 23 * the logger, used to log exceptions and additonaly information |
24 */ | 24 */ |
25 private static Logger log = Logger.getLogger(TimeSeriesPointTimeSeriesTestCase.class); | 25 private static Logger log = Logger.getLogger(TimeSeriesPointTimeSeriesTestCase.class); |
26 | 26 |
27 /** | 27 /** |
28 * Constructor | 28 * Constructor |
29 */ | 29 */ |
30 public TimeSeriesPointTimeSeriesTestCase() { | 30 public TimeSeriesPointTimeSeriesTestCase() { |
31 } | 31 } |
48 String artefactName = "fis_marnet"; | 48 String artefactName = "fis_marnet"; |
49 ArtifactFactory artifactFactory = this | 49 ArtifactFactory artifactFactory = this |
50 .getArtifactFactory(artefactName); | 50 .getArtifactFactory(artefactName); |
51 assertNotNull(artifactFactory); | 51 assertNotNull(artifactFactory); |
52 log.debug("TimeSeries-ArtifactFactory is available"); | 52 log.debug("TimeSeries-ArtifactFactory is available"); |
53 | 53 |
54 Artifact artifact = createArtifact(artifactFactory); | 54 Artifact artifact = createArtifact(artifactFactory); |
55 | 55 |
56 CallContext cc = createCallContext(artifactFactory); | 56 CallContext cc = createCallContext(artifactFactory); |
57 | 57 |
58 // Erster Schritt | 58 // Erster Schritt |
59 | 59 |
60 Document describeDocument = this.readDocument("src/test/ressources/timeseries/timeseries_describe.xml"); | 60 Document describeDocument = this.readDocument("src/test/ressources/timeseries/timeseries_describe.xml"); |
61 | 61 |
62 int steps = 6; | 62 int steps = 6; |
63 | 63 |
64 for (int i = 1; i <= steps; i++){ | 64 for (int i = 1; i <= steps; i++){ |
65 | 65 |
66 this.doNextStep( | 66 this.doNextStep( |
67 artifact, | 67 artifact, |
68 cc, | 68 cc, |
69 "src/test/ressources/timeseries/" + | 69 "src/test/ressources/timeseries/" + |
70 "timeseries_step_0"+i+"_feed.xml", | 70 "timeseries_step_0"+i+"_feed.xml", |
71 "src/test/ressources/timeseries/" + | 71 "src/test/ressources/timeseries/" + |
72 "timeseries_step_0"+i+"_advance.xml", | 72 "timeseries_step_0"+i+"_advance.xml", |
73 describeDocument); | 73 describeDocument); |
74 } | 74 } |
75 | 75 |
76 Document outputData = artifact.describe(describeDocument,cc); | 76 Document outputData = artifact.describe(describeDocument,cc); |
77 FileOutputStream fos = null; | 77 FileOutputStream fos = null; |
78 FileOutputStream fos2 = null; | 78 FileOutputStream fos2 = null; |
79 FileOutputStream fos3 = null; | 79 FileOutputStream fos3 = null; |
80 FileOutputStream fos4 = null; | 80 FileOutputStream fos4 = null; |
89 + System.currentTimeMillis() | 89 + System.currentTimeMillis() |
90 + ".csv"); | 90 + ".csv"); |
91 fos4 = new FileOutputStream("src/test/results/timeseries" | 91 fos4 = new FileOutputStream("src/test/results/timeseries" |
92 + System.currentTimeMillis() | 92 + System.currentTimeMillis() |
93 + ".odv"); | 93 + ".odv"); |
94 | 94 |
95 artifact.out(this | 95 artifact.out(this |
96 .readDocument("src/test/ressources/timeseries/timeseries_step_06_out_chart.xml"), | 96 .readDocument("src/test/ressources/timeseries/timeseries_step_06_out_chart.xml"), |
97 fos, cc); | 97 fos, cc); |
98 artifact.out(this | 98 artifact.out(this |
99 .readDocument("src/test/ressources/timeseries/timeseries_step_06_out_statistics.xml"), | 99 .readDocument("src/test/ressources/timeseries/timeseries_step_06_out_statistics.xml"), |