comparison gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/MeshVerticalProfileTestCase.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
54 CallContext cc = createCallContext(artifactFactory); 54 CallContext cc = createCallContext(artifactFactory);
55 Document describeDocument = this.readDocument("src/test/ressources/" + 55 Document describeDocument = this.readDocument("src/test/ressources/" +
56 "verticalprofile_mesh/" + 56 "verticalprofile_mesh/" +
57 "verticalprofile_describe.xml"); 57 "verticalprofile_describe.xml");
58 58
59 int steps = 10; 59 int steps = 11;
60 60
61 for (int i = 1; i <= steps; i++){ 61 for (int i = 1; i <= steps; i++){
62 String number = ""+i; 62 String number = ""+i;
63 if (i < 10){ 63 if (i < 10){
64 number = "0"+number; 64 number = "0"+number;
91 fos4 = new FileOutputStream( 91 fos4 = new FileOutputStream(
92 "src/test/results/verticalprofile_mesh" 92 "src/test/results/verticalprofile_mesh"
93 + System.currentTimeMillis() + ".odv"); 93 + System.currentTimeMillis() + ".odv");
94 artifact.out(this.readDocument("src/test/ressources/" + 94 artifact.out(this.readDocument("src/test/ressources/" +
95 "verticalprofile_mesh/" + 95 "verticalprofile_mesh/" +
96 "verticalprofile_step_10_out_statistics.xml"), 96 "verticalprofile_step_"+steps+"_out_statistics.xml"),
97 fos2, cc); 97 fos2, cc);
98 artifact.out(this.readDocument("src/test/ressources/" + 98 artifact.out(this.readDocument("src/test/ressources/" +
99 "verticalprofile_mesh/" + 99 "verticalprofile_mesh/" +
100 "verticalprofile_step_10_out_chart.xml"), 100 "verticalprofile_step_"+steps+"_out_chart.xml"),
101 fos, cc); 101 fos, cc);
102 artifact.out(this.readDocument("src/test/ressources/" + 102 artifact.out(this.readDocument("src/test/ressources/" +
103 "verticalprofile_mesh/" + 103 "verticalprofile_mesh/" +
104 "verticalprofile_step_10_out_csv.xml"), 104 "verticalprofile_step_"+steps+"_out_csv.xml"),
105 fos3, cc); 105 fos3, cc);
106 artifact.out(this.readDocument("src/test/ressources/" + 106 artifact.out(this.readDocument("src/test/ressources/" +
107 "verticalprofile_mesh/" + 107 "verticalprofile_mesh/" +
108 "verticalprofile_step_10_out_odv.xml"), 108 "verticalprofile_step_"+steps+"_out_odv.xml"),
109 fos4, cc); 109 fos4, cc);
110 } catch (Exception e) { 110 } catch (Exception e) {
111 log.error(e, e); 111 log.error(e, e);
112 fail(); 112 fail();
113 } finally { 113 } finally {

http://dive4elements.wald.intevation.org