comparison gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/MeshHorizontalProfileTestCase.java @ 591:b8ba642b6866

Fixed the broken JUnittests. gnv-artifacts/trunk@646 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 29 Jan 2010 13:19:34 +0000
parents 4939236c2dc9
children e0d7b8a0bc42
comparison
equal deleted inserted replaced
539:0f454d8067ca 591:b8ba642b6866
53 log.debug("VerticalProfile-Artifact is available"); 53 log.debug("VerticalProfile-Artifact is available");
54 54
55 CallContext cc = createCallContext(artifactFactory); 55 CallContext cc = createCallContext(artifactFactory);
56 Document describeDocument = this.readDocument("src/test/ressources/horizontalProfile_mesh/horizontalprofile_describe.xml"); 56 Document describeDocument = this.readDocument("src/test/ressources/horizontalProfile_mesh/horizontalprofile_describe.xml");
57 57
58 int steps = 10; 58 int steps = 11;
59 59
60 for (int i = 1; i <= steps; i++){ 60 for (int i = 1; i <= steps; i++){
61 String number = ""+i; 61 String number = ""+i;
62 if (i < 10){ 62 if (i < 10){
63 number = "0"+number; 63 number = "0"+number;
90 fos4 = new FileOutputStream( 90 fos4 = new FileOutputStream(
91 "src/test/results/horizontalProfile_mesh" 91 "src/test/results/horizontalProfile_mesh"
92 + System.currentTimeMillis() + ".odv"); 92 + System.currentTimeMillis() + ".odv");
93 artifact.out(this.readDocument("src/test/ressources/" + 93 artifact.out(this.readDocument("src/test/ressources/" +
94 "horizontalProfile_mesh/" + 94 "horizontalProfile_mesh/" +
95 "horizontalprofile_step_10_out_statistics.xml"), 95 "horizontalprofile_step_"+steps+"_out_statistics.xml"),
96 fos2, cc); 96 fos2, cc);
97 artifact.out(this.readDocument("src/test/ressources/" + 97 artifact.out(this.readDocument("src/test/ressources/" +
98 "horizontalProfile_mesh/" + 98 "horizontalProfile_mesh/" +
99 "horizontalprofile_step_10_out_chart.xml"), 99 "horizontalprofile_step_"+steps+"_out_chart.xml"),
100 fos, cc); 100 fos, cc);
101 artifact.out(this.readDocument("src/test/ressources/" + 101 artifact.out(this.readDocument("src/test/ressources/" +
102 "horizontalProfile_mesh/" + 102 "horizontalProfile_mesh/" +
103 "horizontalprofile_step_10_out_csv.xml"), 103 "horizontalprofile_step_"+steps+"_out_csv.xml"),
104 fos3, cc); 104 fos3, cc);
105 artifact.out(this.readDocument("src/test/ressources/" + 105 artifact.out(this.readDocument("src/test/ressources/" +
106 "horizontalProfile_mesh/" + 106 "horizontalProfile_mesh/" +
107 "horizontalprofile_step_10_out_odv.xml"), 107 "horizontalprofile_step_"+steps+"_out_odv.xml"),
108 fos4, cc); 108 fos4, cc);
109 } catch (Exception e) { 109 } catch (Exception e) {
110 log.error(e, e); 110 log.error(e, e);
111 fail(); 111 fail();
112 } finally { 112 } finally {

http://dive4elements.wald.intevation.org