Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/MeshVerticalProfileTestCase.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 MeshVerticalProfileTestCase extends GNVArtifactsTestCaseBase { | 19 public class MeshVerticalProfileTestCase extends GNVArtifactsTestCaseBase { |
20 | 20 |
21 private static Logger log = Logger.getLogger(MeshVerticalProfileTestCase.class); | 21 private static Logger log = Logger.getLogger(MeshVerticalProfileTestCase.class); |
22 | 22 |
23 /** | 23 /** |
24 * Constructor | 24 * Constructor |
25 */ | 25 */ |
26 public MeshVerticalProfileTestCase() { | 26 public MeshVerticalProfileTestCase() { |
27 } | 27 } |
44 String artefactName = "fis_modeldata"; | 44 String artefactName = "fis_modeldata"; |
45 ArtifactFactory artifactFactory = this | 45 ArtifactFactory artifactFactory = this |
46 .getArtifactFactory(artefactName); | 46 .getArtifactFactory(artefactName); |
47 assertNotNull(artifactFactory); | 47 assertNotNull(artifactFactory); |
48 log.debug("VerticalProfile-ArtifactFactory is available"); | 48 log.debug("VerticalProfile-ArtifactFactory is available"); |
49 | 49 |
50 Artifact artifact = createArtifact(artifactFactory); | 50 Artifact artifact = createArtifact(artifactFactory); |
51 | 51 |
52 CallContext cc = createCallContext(artifactFactory); | 52 CallContext cc = createCallContext(artifactFactory); |
53 Document describeDocument = this.readDocument("src/test/ressources/" + | 53 Document describeDocument = this.readDocument("src/test/ressources/" + |
54 "verticalprofile_mesh/" + | 54 "verticalprofile_mesh/" + |
55 "verticalprofile_describe.xml"); | 55 "verticalprofile_describe.xml"); |
56 | 56 |
57 int steps = 11; | 57 int steps = 11; |
58 | 58 |
59 for (int i = 1; i <= steps; i++){ | 59 for (int i = 1; i <= steps; i++){ |
60 String number = ""+i; | 60 String number = ""+i; |
61 if (i < 10){ | 61 if (i < 10){ |
62 number = "0"+number; | 62 number = "0"+number; |
63 } | 63 } |
65 artifact, | 65 artifact, |
66 cc, | 66 cc, |
67 "src/test/ressources/verticalprofile_mesh/" + | 67 "src/test/ressources/verticalprofile_mesh/" + |
68 "verticalprofile_step_"+number+"_feed.xml", | 68 "verticalprofile_step_"+number+"_feed.xml", |
69 "src/test/ressources/verticalprofile_mesh/" + | 69 "src/test/ressources/verticalprofile_mesh/" + |
70 "verticalprofile_step_"+number+"_advance.xml", | 70 "verticalprofile_step_"+number+"_advance.xml", |
71 describeDocument); | 71 describeDocument); |
72 } | 72 } |
73 // 10. Schritt | 73 // 10. Schritt |
74 Document outputData = artifact.describe(describeDocument,cc); | 74 Document outputData = artifact.describe(describeDocument,cc); |
75 FileOutputStream fos = null; | 75 FileOutputStream fos = null; |