comparison gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/MeshVerticalCrossSectionTestCase.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
17 * 17 *
18 */ 18 */
19 public class MeshVerticalCrossSectionTestCase extends GNVArtifactsTestCaseBase { 19 public class MeshVerticalCrossSectionTestCase extends GNVArtifactsTestCaseBase {
20 20
21 private static Logger log = Logger.getLogger(MeshVerticalCrossSectionTestCase.class); 21 private static Logger log = Logger.getLogger(MeshVerticalCrossSectionTestCase.class);
22 22
23 /** 23 /**
24 * Constructor 24 * Constructor
25 */ 25 */
26 public MeshVerticalCrossSectionTestCase() { 26 public MeshVerticalCrossSectionTestCase() {
27 } 27 }
45 String artefactName = "fis_modeldata"; 45 String artefactName = "fis_modeldata";
46 ArtifactFactory artifactFactory = this 46 ArtifactFactory artifactFactory = this
47 .getArtifactFactory(artefactName); 47 .getArtifactFactory(artefactName);
48 assertNotNull(artifactFactory); 48 assertNotNull(artifactFactory);
49 log.debug("VerticalProfile-ArtifactFactory is available"); 49 log.debug("VerticalProfile-ArtifactFactory is available");
50 50
51 Artifact artifact = createArtifact(artifactFactory); 51 Artifact artifact = createArtifact(artifactFactory);
52 52
53 CallContext cc = createCallContext(artifactFactory); 53 CallContext cc = createCallContext(artifactFactory);
54 Document describeDocument = this.readDocument("src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_describe.xml"); 54 Document describeDocument = this.readDocument("src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_describe.xml");
55 55
56 int steps = 7; 56 int steps = 7;
57 57
58 for (int i = 1; i <= steps; i++){ 58 for (int i = 1; i <= steps; i++){
59 59
60 this.doNextStep( 60 this.doNextStep(
61 artifact, 61 artifact,
62 cc, 62 cc,
63 "src/test/ressources/verticalcrosssection_mesh/" + 63 "src/test/ressources/verticalcrosssection_mesh/" +
64 "verticalcrosssection_step_0"+i+"_feed.xml", 64 "verticalcrosssection_step_0"+i+"_feed.xml",
65 "src/test/ressources/verticalcrosssection_mesh/" + 65 "src/test/ressources/verticalcrosssection_mesh/" +
66 "verticalcrosssection_step_0"+i+"_advance.xml", 66 "verticalcrosssection_step_0"+i+"_advance.xml",
67 describeDocument); 67 describeDocument);
68 } 68 }
69 69
70 Document outputData = artifact.describe(describeDocument,cc); 70 Document outputData = artifact.describe(describeDocument,cc);
71 FileOutputStream fos = null; 71 FileOutputStream fos = null;
72 FileOutputStream fos2 = null; 72 FileOutputStream fos2 = null;
73 FileOutputStream fos3 = null; 73 FileOutputStream fos3 = null;
74 try { 74 try {
75 fos = new FileOutputStream( 75 fos = new FileOutputStream(
76 "src/test/results/verticalcrosssection_mesh" 76 "src/test/results/verticalcrosssection_mesh"
77 + System.currentTimeMillis() + ".png"); 77 + System.currentTimeMillis() + ".png");
78 78
79 fos2 = new FileOutputStream( 79 fos2 = new FileOutputStream(
80 "src/test/results/verticalcrosssection_mesh" 80 "src/test/results/verticalcrosssection_mesh"
81 + System.currentTimeMillis() + ".csv"); 81 + System.currentTimeMillis() + ".csv");
82 fos3 = new FileOutputStream( 82 fos3 = new FileOutputStream(
83 "src/test/results/verticalcrosssection_mesh" 83 "src/test/results/verticalcrosssection_mesh"
93 // TODO: FIXME: ODV-Export nach Reparatur wieder Testbar machen. 93 // TODO: FIXME: ODV-Export nach Reparatur wieder Testbar machen.
94 // artifact.out(this.readDocument("src/test/ressources/" + 94 // artifact.out(this.readDocument("src/test/ressources/" +
95 // "verticalcrosssection_mesh/" + 95 // "verticalcrosssection_mesh/" +
96 // "verticalcrosssection_step_0"+steps+"_out_odv.xml"), 96 // "verticalcrosssection_step_0"+steps+"_out_odv.xml"),
97 // fos3,cc); 97 // fos3,cc);
98 98
99 } catch (Exception e) { 99 } catch (Exception e) {
100 log.error(e, e); 100 log.error(e, e);
101 fail(); 101 fail();
102 } finally { 102 } finally {
103 try { 103 try {

http://dive4elements.wald.intevation.org