Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/GNVArtifactsTestCase.java @ 222:3e82b4f1c455
Removed some Compilation-Errors according to API-Changes in the ArtifactDatabase.
Added the possibility to switch to an alternative Transition.
gnv-artifacts/trunk@284 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Thu, 05 Nov 2009 14:45:54 +0000 |
parents | f8cb64d5fe4f |
children | a610c0a01afc |
comparison
equal
deleted
inserted
replaced
221:21152e1bf325 | 222:3e82b4f1c455 |
---|---|
89 | 89 |
90 CallContext cc = createCallContext(); | 90 CallContext cc = createCallContext(); |
91 | 91 |
92 // Erster Schritt | 92 // Erster Schritt |
93 | 93 |
94 Document describeDocument = this.readDocument("src/test/ressources/timeseries/timeseries_describe.xml"); | |
94 this | 95 this |
95 .doNextStep( | 96 .doNextStep( |
96 artifact, | 97 artifact, |
97 cc, | 98 cc, |
98 "src/test/ressources/timeseries/timeseries_step_01_feed.xml", | 99 "src/test/ressources/timeseries/timeseries_step_01_feed.xml", |
99 "src/test/ressources/timeseries/timeseries_step_01_advance.xml"); | 100 "src/test/ressources/timeseries/timeseries_step_01_advance.xml", describeDocument); |
100 | 101 |
101 // Zweiter Schritt | 102 // Zweiter Schritt |
102 this | 103 this |
103 .doNextStep( | 104 .doNextStep( |
104 artifact, | 105 artifact, |
105 cc, | 106 cc, |
106 "src/test/ressources/timeseries/timeseries_step_02_feed.xml", | 107 "src/test/ressources/timeseries/timeseries_step_02_feed.xml", |
107 "src/test/ressources/timeseries/timeseries_step_02_advance.xml"); | 108 "src/test/ressources/timeseries/timeseries_step_02_advance.xml", describeDocument); |
108 | 109 |
109 // Dritter Schritt | 110 // Dritter Schritt |
110 this | 111 this |
111 .doNextStep( | 112 .doNextStep( |
112 artifact, | 113 artifact, |
113 cc, | 114 cc, |
114 "src/test/ressources/timeseries/timeseries_step_03_feed.xml", | 115 "src/test/ressources/timeseries/timeseries_step_03_feed.xml", |
115 "src/test/ressources/timeseries/timeseries_step_03_advance.xml"); | 116 "src/test/ressources/timeseries/timeseries_step_03_advance.xml", describeDocument); |
116 | 117 |
117 // Vierter Schritt | 118 // Vierter Schritt |
118 this | 119 this |
119 .doNextStep( | 120 .doNextStep( |
120 artifact, | 121 artifact, |
121 cc, | 122 cc, |
122 "src/test/ressources/timeseries/timeseries_step_04_feed.xml", | 123 "src/test/ressources/timeseries/timeseries_step_04_feed.xml", |
123 "src/test/ressources/timeseries/timeseries_step_04_advance.xml"); | 124 "src/test/ressources/timeseries/timeseries_step_04_advance.xml", describeDocument); |
124 | 125 |
125 Document outputData; | 126 Document outputData; |
126 // Fünfter Schritt | 127 // Fünfter Schritt |
127 outputData = artifact.describe(cc); | 128 outputData = artifact.describe(describeDocument,cc); |
128 FileOutputStream fos = null; | 129 FileOutputStream fos = null; |
129 try { | 130 try { |
130 fos = new FileOutputStream( | 131 fos = new FileOutputStream( |
131 "src/test/results/timeseriesdiagramm" | 132 "src/test/results/timeseriesdiagramm" |
132 + System.currentTimeMillis() + ".png"); | 133 + System.currentTimeMillis() + ".png"); |
169 } | 170 } |
170 | 171 |
171 /** | 172 /** |
172 * @param artifact | 173 * @param artifact |
173 * @param cc | 174 * @param cc |
175 * @param describeDocument TODO | |
174 * @throws Exception | 176 * @throws Exception |
175 */ | 177 */ |
176 private void doNextStep(Artifact artifact, CallContext cc, | 178 private void doNextStep(Artifact artifact, CallContext cc, |
177 String feedDocument, String advanceDocument) | 179 String feedDocument, String advanceDocument, Document describeDocument) |
178 throws Exception { | 180 throws Exception { |
179 Document outputData = artifact.describe(cc); | 181 Document outputData = artifact.describe(describeDocument,cc); |
180 // this.writeDocument2Log(outputData); | 182 // this.writeDocument2Log(outputData); |
181 outputData = artifact.feed(this.readDocument(feedDocument), cc); | 183 outputData = artifact.feed(this.readDocument(feedDocument), cc); |
182 this.check4ExceptionReport(outputData); | 184 this.check4ExceptionReport(outputData); |
183 outputData = artifact.advance(this.readDocument(advanceDocument), cc); | 185 outputData = artifact.advance(this.readDocument(advanceDocument), cc); |
184 // this.writeDocument2Log(outputData); | 186 // this.writeDocument2Log(outputData); |
199 assertNotNull(artifact); | 201 assertNotNull(artifact); |
200 log.debug("TimeSeriesMesh-Artifact is available"); | 202 log.debug("TimeSeriesMesh-Artifact is available"); |
201 | 203 |
202 CallContext cc = createCallContext(); | 204 CallContext cc = createCallContext(); |
203 | 205 |
206 Document describeDocument = this.readDocument("src/test/ressources/timeseries_mesh/timeseries_describe.xml"); | |
204 // Erster Schritt | 207 // Erster Schritt |
205 this | 208 this |
206 .doNextStep( | 209 .doNextStep( |
207 artifact, | 210 artifact, |
208 cc, | 211 cc, |
209 "src/test/ressources/timeseries_mesh/timeseries_step_01_feed.xml", | 212 "src/test/ressources/timeseries_mesh/timeseries_step_01_feed.xml", |
210 "src/test/ressources/timeseries_mesh/timeseries_step_01_advance.xml"); | 213 "src/test/ressources/timeseries_mesh/timeseries_step_01_advance.xml", describeDocument); |
211 | 214 |
212 // Zweiter Schritt | 215 // Zweiter Schritt |
213 this | 216 this |
214 .doNextStep( | 217 .doNextStep( |
215 artifact, | 218 artifact, |
216 cc, | 219 cc, |
217 "src/test/ressources/timeseries_mesh/timeseries_step_02_feed.xml", | 220 "src/test/ressources/timeseries_mesh/timeseries_step_02_feed.xml", |
218 "src/test/ressources/timeseries_mesh/timeseries_step_02_advance.xml"); | 221 "src/test/ressources/timeseries_mesh/timeseries_step_02_advance.xml", describeDocument); |
219 | 222 |
220 // Dritter Schritt | 223 // Dritter Schritt |
221 this | 224 this |
222 .doNextStep( | 225 .doNextStep( |
223 artifact, | 226 artifact, |
224 cc, | 227 cc, |
225 "src/test/ressources/timeseries_mesh/timeseries_step_03_feed.xml", | 228 "src/test/ressources/timeseries_mesh/timeseries_step_03_feed.xml", |
226 "src/test/ressources/timeseries_mesh/timeseries_step_03_advance.xml"); | 229 "src/test/ressources/timeseries_mesh/timeseries_step_03_advance.xml", describeDocument); |
227 | 230 |
228 // Vierter Schritt | 231 // Vierter Schritt |
229 this | 232 this |
230 .doNextStep( | 233 .doNextStep( |
231 artifact, | 234 artifact, |
232 cc, | 235 cc, |
233 "src/test/ressources/timeseries_mesh/timeseries_step_04_feed.xml", | 236 "src/test/ressources/timeseries_mesh/timeseries_step_04_feed.xml", |
234 "src/test/ressources/timeseries_mesh/timeseries_step_04_advance.xml"); | 237 "src/test/ressources/timeseries_mesh/timeseries_step_04_advance.xml", describeDocument); |
235 | 238 |
236 // Fünfter Schritt | 239 // Fünfter Schritt |
237 this | 240 this |
238 .doNextStep( | 241 .doNextStep( |
239 artifact, | 242 artifact, |
240 cc, | 243 cc, |
241 "src/test/ressources/timeseries_mesh/timeseries_step_05_feed.xml", | 244 "src/test/ressources/timeseries_mesh/timeseries_step_05_feed.xml", |
242 "src/test/ressources/timeseries_mesh/timeseries_step_05_advance.xml"); | 245 "src/test/ressources/timeseries_mesh/timeseries_step_05_advance.xml", describeDocument); |
243 | 246 |
244 // Sechster Schritt | 247 // Sechster Schritt |
245 this | 248 this |
246 .doNextStep( | 249 .doNextStep( |
247 artifact, | 250 artifact, |
248 cc, | 251 cc, |
249 "src/test/ressources/timeseries_mesh/timeseries_step_06_feed.xml", | 252 "src/test/ressources/timeseries_mesh/timeseries_step_06_feed.xml", |
250 "src/test/ressources/timeseries_mesh/timeseries_step_06_advance.xml"); | 253 "src/test/ressources/timeseries_mesh/timeseries_step_06_advance.xml", describeDocument); |
251 | 254 |
252 // Siebter Schritt | 255 // Siebter Schritt |
253 Document outputData = artifact.describe(cc); | 256 Document outputData = artifact.describe(describeDocument,cc); |
254 FileOutputStream fos = null; | 257 FileOutputStream fos = null; |
255 FileOutputStream fos2 = null; | 258 FileOutputStream fos2 = null; |
256 FileOutputStream fos3 = null; | 259 FileOutputStream fos3 = null; |
257 try { | 260 try { |
258 fos = new FileOutputStream("src/test/results/timeseries_mesh" | 261 fos = new FileOutputStream("src/test/results/timeseries_mesh" |
318 assertNotNull(artifact); | 321 assertNotNull(artifact); |
319 log.debug("VerticalProfile-Artifact is available"); | 322 log.debug("VerticalProfile-Artifact is available"); |
320 | 323 |
321 CallContext cc = createCallContext(); | 324 CallContext cc = createCallContext(); |
322 | 325 |
326 Document describeDocument = this.readDocument("src/test/ressources/verticalprofile/verticalprofile_describe.xml"); | |
323 // Erster Schritt | 327 // Erster Schritt |
324 this | 328 this |
325 .doNextStep( | 329 .doNextStep( |
326 artifact, | 330 artifact, |
327 cc, | 331 cc, |
328 "src/test/ressources/verticalprofile/verticalprofile_step_01_feed.xml", | 332 "src/test/ressources/verticalprofile/verticalprofile_step_01_feed.xml", |
329 "src/test/ressources/verticalprofile/verticalprofile_step_02_advance.xml"); | 333 "src/test/ressources/verticalprofile/verticalprofile_step_02_advance.xml", describeDocument); |
330 | 334 |
331 // Zweiter Schritt | 335 // Zweiter Schritt |
332 this | 336 this |
333 .doNextStep( | 337 .doNextStep( |
334 artifact, | 338 artifact, |
335 cc, | 339 cc, |
336 "src/test/ressources/verticalprofile/verticalprofile_step_02_feed.xml", | 340 "src/test/ressources/verticalprofile/verticalprofile_step_02_feed.xml", |
337 "src/test/ressources/verticalprofile/verticalprofile_step_02_advance.xml"); | 341 "src/test/ressources/verticalprofile/verticalprofile_step_02_advance.xml", describeDocument); |
338 | 342 |
339 // Dritter Schritt | 343 // Dritter Schritt |
340 this | 344 this |
341 .doNextStep( | 345 .doNextStep( |
342 artifact, | 346 artifact, |
343 cc, | 347 cc, |
344 "src/test/ressources/verticalprofile/verticalprofile_step_03_feed.xml", | 348 "src/test/ressources/verticalprofile/verticalprofile_step_03_feed.xml", |
345 "src/test/ressources/verticalprofile/verticalprofile_step_03_advance.xml"); | 349 "src/test/ressources/verticalprofile/verticalprofile_step_03_advance.xml", describeDocument); |
346 | 350 |
347 // Vierter Schritt | 351 // Vierter Schritt |
348 this | 352 this |
349 .doNextStep( | 353 .doNextStep( |
350 artifact, | 354 artifact, |
351 cc, | 355 cc, |
352 "src/test/ressources/verticalprofile/verticalprofile_step_04_feed.xml", | 356 "src/test/ressources/verticalprofile/verticalprofile_step_04_feed.xml", |
353 "src/test/ressources/verticalprofile/verticalprofile_step_04_advance.xml"); | 357 "src/test/ressources/verticalprofile/verticalprofile_step_04_advance.xml", describeDocument); |
354 | 358 |
355 | 359 |
356 // Vierter Schritt | 360 // Vierter Schritt |
357 Document outputData = artifact.describe(cc); | 361 Document outputData = artifact.describe(describeDocument,cc); |
358 FileOutputStream fos = null; | 362 FileOutputStream fos = null; |
359 FileOutputStream fos2 = null; | 363 FileOutputStream fos2 = null; |
360 FileOutputStream fos3 = null; | 364 FileOutputStream fos3 = null; |
361 try { | 365 try { |
362 fos = new FileOutputStream("src/test/results/verticalprofile" | 366 fos = new FileOutputStream("src/test/results/verticalprofile" |
421 "" + System.currentTimeMillis(), bootstrap.getContext()); | 425 "" + System.currentTimeMillis(), bootstrap.getContext()); |
422 assertNotNull(artifact); | 426 assertNotNull(artifact); |
423 log.debug("VerticalProfile-Artifact is available"); | 427 log.debug("VerticalProfile-Artifact is available"); |
424 | 428 |
425 CallContext cc = createCallContext(); | 429 CallContext cc = createCallContext(); |
426 | 430 Document describeDocument = this.readDocument("src/test/ressources/verticalprofile_mesh/verticalprofile_describe.xml"); |
427 // Erster Schritt | 431 // Erster Schritt |
428 this | 432 this |
429 .doNextStep( | 433 .doNextStep( |
430 artifact, | 434 artifact, |
431 cc, | 435 cc, |
432 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_01_feed.xml", | 436 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_01_feed.xml", |
433 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_01_advance.xml"); | 437 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_01_advance.xml", describeDocument); |
434 | 438 |
435 // Zweiter Schritt | 439 // Zweiter Schritt |
436 this | 440 this |
437 .doNextStep( | 441 .doNextStep( |
438 artifact, | 442 artifact, |
439 cc, | 443 cc, |
440 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_02_feed.xml", | 444 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_02_feed.xml", |
441 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_02_advance.xml"); | 445 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_02_advance.xml", describeDocument); |
442 | 446 |
443 // Dritter Schritt | 447 // Dritter Schritt |
444 this | 448 this |
445 .doNextStep( | 449 .doNextStep( |
446 artifact, | 450 artifact, |
447 cc, | 451 cc, |
448 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_03_feed.xml", | 452 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_03_feed.xml", |
449 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_03_advance.xml"); | 453 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_03_advance.xml", describeDocument); |
450 | 454 |
451 // Vierter Schritt | 455 // Vierter Schritt |
452 this | 456 this |
453 .doNextStep( | 457 .doNextStep( |
454 artifact, | 458 artifact, |
455 cc, | 459 cc, |
456 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_04_feed.xml", | 460 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_04_feed.xml", |
457 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_04_advance.xml"); | 461 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_04_advance.xml", describeDocument); |
458 | 462 |
459 // Fünfter Schritt | 463 // Fünfter Schritt |
460 this | 464 this |
461 .doNextStep( | 465 .doNextStep( |
462 artifact, | 466 artifact, |
463 cc, | 467 cc, |
464 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_05_feed.xml", | 468 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_05_feed.xml", |
465 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_05_advance.xml"); | 469 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_05_advance.xml", describeDocument); |
466 | 470 |
467 // Sechster Schritt | 471 // Sechster Schritt |
468 this | 472 this |
469 .doNextStep( | 473 .doNextStep( |
470 artifact, | 474 artifact, |
471 cc, | 475 cc, |
472 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_06_feed.xml", | 476 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_06_feed.xml", |
473 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_06_advance.xml"); | 477 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_06_advance.xml", describeDocument); |
474 | 478 |
475 // Siebter Schritt | 479 // Siebter Schritt |
476 this | 480 this |
477 .doNextStep( | 481 .doNextStep( |
478 artifact, | 482 artifact, |
479 cc, | 483 cc, |
480 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_07_feed.xml", | 484 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_07_feed.xml", |
481 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_07_advance.xml"); | 485 "src/test/ressources/verticalprofile_mesh/verticalprofile_step_07_advance.xml", describeDocument); |
482 | 486 |
483 // Achter Schritt | 487 // Achter Schritt |
484 Document outputData = artifact.describe(cc); | 488 Document outputData = artifact.describe(describeDocument,cc); |
485 FileOutputStream fos = null; | 489 FileOutputStream fos = null; |
486 FileOutputStream fos2 = null; | 490 FileOutputStream fos2 = null; |
487 FileOutputStream fos3 = null; | 491 FileOutputStream fos3 = null; |
488 try { | 492 try { |
489 fos = new FileOutputStream( | 493 fos = new FileOutputStream( |
548 "" + System.currentTimeMillis(), bootstrap.getContext()); | 552 "" + System.currentTimeMillis(), bootstrap.getContext()); |
549 assertNotNull(artifact); | 553 assertNotNull(artifact); |
550 log.debug("VerticalProfile-Artifact is available"); | 554 log.debug("VerticalProfile-Artifact is available"); |
551 | 555 |
552 CallContext cc = createCallContext(); | 556 CallContext cc = createCallContext(); |
553 | 557 Document describeDocument = this.readDocument("src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_describe.xml"); |
554 // Erster Schritt | 558 // Erster Schritt |
555 this | 559 this |
556 .doNextStep( | 560 .doNextStep( |
557 artifact, | 561 artifact, |
558 cc, | 562 cc, |
559 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_01_feed.xml", | 563 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_01_feed.xml", |
560 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_01_advance.xml"); | 564 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_01_advance.xml", describeDocument); |
561 | 565 |
562 // Zweiter Schritt | 566 // Zweiter Schritt |
563 this | 567 this |
564 .doNextStep( | 568 .doNextStep( |
565 artifact, | 569 artifact, |
566 cc, | 570 cc, |
567 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_02_feed.xml", | 571 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_02_feed.xml", |
568 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_02_advance.xml"); | 572 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_02_advance.xml", describeDocument); |
569 | 573 |
570 // Dritter Schritt | 574 // Dritter Schritt |
571 this | 575 this |
572 .doNextStep( | 576 .doNextStep( |
573 artifact, | 577 artifact, |
574 cc, | 578 cc, |
575 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_03_feed.xml", | 579 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_03_feed.xml", |
576 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_03_advance.xml"); | 580 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_03_advance.xml", describeDocument); |
577 // Vierter Schritt | 581 // Vierter Schritt |
578 this | 582 this |
579 .doNextStep( | 583 .doNextStep( |
580 artifact, | 584 artifact, |
581 cc, | 585 cc, |
582 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_04_feed.xml", | 586 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_04_feed.xml", |
583 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_04_advance.xml"); | 587 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_04_advance.xml", describeDocument); |
584 | 588 |
585 // Vierter Schritt | 589 // Vierter Schritt |
586 Document outputData = artifact.describe(cc); | 590 Document outputData = artifact.describe(describeDocument,cc); |
587 FileOutputStream fos = null; | 591 FileOutputStream fos = null; |
588 FileOutputStream fos2 = null; | 592 FileOutputStream fos2 = null; |
589 FileOutputStream fos3 = null; | 593 FileOutputStream fos3 = null; |
590 try { | 594 try { |
591 fos = new FileOutputStream( | 595 fos = new FileOutputStream( |
651 "" + System.currentTimeMillis(), bootstrap.getContext()); | 655 "" + System.currentTimeMillis(), bootstrap.getContext()); |
652 assertNotNull(artifact); | 656 assertNotNull(artifact); |
653 log.debug("VerticalProfile-Artifact is available"); | 657 log.debug("VerticalProfile-Artifact is available"); |
654 | 658 |
655 CallContext cc = createCallContext(); | 659 CallContext cc = createCallContext(); |
656 | 660 Document describeDocument = this.readDocument("src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_describe.xml"); |
657 // Erster Schritt | 661 // Erster Schritt |
658 this | 662 this |
659 .doNextStep( | 663 .doNextStep( |
660 artifact, | 664 artifact, |
661 cc, | 665 cc, |
662 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_00_feed.xml", | 666 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_00_feed.xml", |
663 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_00_advance.xml"); | 667 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_00_advance.xml", describeDocument); |
664 | 668 |
665 // Erster Schritt | 669 // Erster Schritt |
666 this | 670 this |
667 .doNextStep( | 671 .doNextStep( |
668 artifact, | 672 artifact, |
669 cc, | 673 cc, |
670 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_01_feed.xml", | 674 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_01_feed.xml", |
671 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_01_advance.xml"); | 675 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_01_advance.xml", describeDocument); |
672 | 676 |
673 // Zweiter Schritt | 677 // Zweiter Schritt |
674 this | 678 this |
675 .doNextStep( | 679 .doNextStep( |
676 artifact, | 680 artifact, |
677 cc, | 681 cc, |
678 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_02_feed.xml", | 682 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_02_feed.xml", |
679 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_02_advance.xml"); | 683 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_02_advance.xml", describeDocument); |
680 // Dritter Schritt | 684 // Dritter Schritt |
681 this | 685 this |
682 .doNextStep( | 686 .doNextStep( |
683 artifact, | 687 artifact, |
684 cc, | 688 cc, |
685 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_03_feed.xml", | 689 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_03_feed.xml", |
686 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_03_advance.xml"); | 690 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_03_advance.xml", describeDocument); |
687 // Vierter Schritt | 691 // Vierter Schritt |
688 this | 692 this |
689 .doNextStep( | 693 .doNextStep( |
690 artifact, | 694 artifact, |
691 cc, | 695 cc, |
692 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_04_feed.xml", | 696 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_04_feed.xml", |
693 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_04_advance.xml"); | 697 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_04_advance.xml", describeDocument); |
694 // Fünfter Schritt | 698 // Fünfter Schritt |
695 this | 699 this |
696 .doNextStep( | 700 .doNextStep( |
697 artifact, | 701 artifact, |
698 cc, | 702 cc, |
699 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_05_feed.xml", | 703 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_05_feed.xml", |
700 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_05_advance.xml"); | 704 "src/test/ressources/horizontalProfile_instantaneouspoint/horizontalprofile_step_05_advance.xml", describeDocument); |
701 | 705 |
702 Document outputData = artifact.describe(cc); | 706 Document outputData = artifact.describe(describeDocument, cc); |
703 FileOutputStream fos = null; | 707 FileOutputStream fos = null; |
704 FileOutputStream fos2 = null; | 708 FileOutputStream fos2 = null; |
705 FileOutputStream fos3 = null; | 709 FileOutputStream fos3 = null; |
706 try { | 710 try { |
707 fos = new FileOutputStream( | 711 fos = new FileOutputStream( |
761 "" + System.currentTimeMillis(), bootstrap.getContext()); | 765 "" + System.currentTimeMillis(), bootstrap.getContext()); |
762 assertNotNull(artifact); | 766 assertNotNull(artifact); |
763 log.debug("VerticalProfile-Artifact is available"); | 767 log.debug("VerticalProfile-Artifact is available"); |
764 | 768 |
765 CallContext cc = createCallContext(); | 769 CallContext cc = createCallContext(); |
766 | 770 Document describeDocument = this.readDocument("src/test/ressources/horizontalProfile_mesh/horizontalprofile_describe.xml"); |
767 // Erster Schritt | 771 // Erster Schritt |
768 this | 772 this |
769 .doNextStep( | 773 .doNextStep( |
770 artifact, | 774 artifact, |
771 cc, | 775 cc, |
772 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_01_feed.xml", | 776 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_01_feed.xml", |
773 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_01_advance.xml"); | 777 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_01_advance.xml", describeDocument); |
774 | 778 |
775 // Zweiter Schritt | 779 // Zweiter Schritt |
776 this | 780 this |
777 .doNextStep( | 781 .doNextStep( |
778 artifact, | 782 artifact, |
779 cc, | 783 cc, |
780 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_02_feed.xml", | 784 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_02_feed.xml", |
781 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_02_advance.xml"); | 785 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_02_advance.xml", describeDocument); |
782 // Dritter Schritt | 786 // Dritter Schritt |
783 this | 787 this |
784 .doNextStep( | 788 .doNextStep( |
785 artifact, | 789 artifact, |
786 cc, | 790 cc, |
787 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_03_feed.xml", | 791 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_03_feed.xml", |
788 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_03_advance.xml"); | 792 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_03_advance.xml", describeDocument); |
789 // Vierter Schritt | 793 // Vierter Schritt |
790 this | 794 this |
791 .doNextStep( | 795 .doNextStep( |
792 artifact, | 796 artifact, |
793 cc, | 797 cc, |
794 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_04_feed.xml", | 798 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_04_feed.xml", |
795 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_04_advance.xml"); | 799 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_04_advance.xml", describeDocument); |
796 // Fünfter Schritt | 800 // Fünfter Schritt |
797 this | 801 this |
798 .doNextStep( | 802 .doNextStep( |
799 artifact, | 803 artifact, |
800 cc, | 804 cc, |
801 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_05_feed.xml", | 805 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_05_feed.xml", |
802 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_05_advance.xml"); | 806 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_05_advance.xml", describeDocument); |
803 | 807 |
804 // Sechster Schritt | 808 // Sechster Schritt |
805 this | 809 this |
806 .doNextStep( | 810 .doNextStep( |
807 artifact, | 811 artifact, |
808 cc, | 812 cc, |
809 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_06_feed.xml", | 813 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_06_feed.xml", |
810 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_06_advance.xml"); | 814 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_06_advance.xml", describeDocument); |
811 | 815 |
812 // Siebter Schritt | 816 // Siebter Schritt |
813 this | 817 this |
814 .doNextStep( | 818 .doNextStep( |
815 artifact, | 819 artifact, |
816 cc, | 820 cc, |
817 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_07_feed.xml", | 821 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_07_feed.xml", |
818 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_07_advance.xml"); | 822 "src/test/ressources/horizontalProfile_mesh/horizontalprofile_step_07_advance.xml", describeDocument); |
819 | 823 |
820 Document outputData = artifact.describe(cc); | 824 Document outputData = artifact.describe(describeDocument,cc); |
821 FileOutputStream fos = null; | 825 FileOutputStream fos = null; |
822 FileOutputStream fos2 = null; | 826 FileOutputStream fos2 = null; |
823 FileOutputStream fos3 = null; | 827 FileOutputStream fos3 = null; |
824 try { | 828 try { |
825 fos = new FileOutputStream( | 829 fos = new FileOutputStream( |
882 "" + System.currentTimeMillis(), bootstrap.getContext()); | 886 "" + System.currentTimeMillis(), bootstrap.getContext()); |
883 assertNotNull(artifact); | 887 assertNotNull(artifact); |
884 log.debug("HorizontalCrossSectionMesh-Artifact is available"); | 888 log.debug("HorizontalCrossSectionMesh-Artifact is available"); |
885 | 889 |
886 CallContext cc = createCallContext(); | 890 CallContext cc = createCallContext(); |
887 | 891 Document describeDocument = this.readDocument("src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_describe.xml"); |
888 // Erster Schritt | 892 // Erster Schritt |
889 this | 893 this |
890 .doNextStep( | 894 .doNextStep( |
891 artifact, | 895 artifact, |
892 cc, | 896 cc, |
893 "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_01_feed.xml", | 897 "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_01_feed.xml", |
894 "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_01_advance.xml"); | 898 "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_01_advance.xml", describeDocument); |
895 | 899 |
896 // Zweiter Schritt | 900 // Zweiter Schritt |
897 this | 901 this |
898 .doNextStep( | 902 .doNextStep( |
899 artifact, | 903 artifact, |
900 cc, | 904 cc, |
901 "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_02_feed.xml", | 905 "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_02_feed.xml", |
902 "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_02_advance.xml"); | 906 "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_02_advance.xml", describeDocument); |
903 // Dritter Schritt | 907 // Dritter Schritt |
904 this | 908 this |
905 .doNextStep( | 909 .doNextStep( |
906 artifact, | 910 artifact, |
907 cc, | 911 cc, |
908 "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_03_feed.xml", | 912 "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_03_feed.xml", |
909 "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_03_advance.xml"); | 913 "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_03_advance.xml", describeDocument); |
910 // Vierter Schritt | 914 // Vierter Schritt |
911 this | 915 this |
912 .doNextStep( | 916 .doNextStep( |
913 artifact, | 917 artifact, |
914 cc, | 918 cc, |
915 "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_04_feed.xml", | 919 "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_04_feed.xml", |
916 "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_04_advance.xml"); | 920 "src/test/ressources/horizontalcrosssection_mesh/horizontalcrosssection_step_04_advance.xml", describeDocument); |
917 | 921 |
918 Document outputData = artifact.describe(cc); | 922 Document outputData = artifact.describe(describeDocument,cc); |
919 FileOutputStream fos = null; | 923 FileOutputStream fos = null; |
920 FileOutputStream fos2 = null; | 924 FileOutputStream fos2 = null; |
921 FileOutputStream fos3 = null; | 925 FileOutputStream fos3 = null; |
922 try { | 926 try { |
923 fos = new FileOutputStream( | 927 fos = new FileOutputStream( |
978 "" + System.currentTimeMillis(), bootstrap.getContext()); | 982 "" + System.currentTimeMillis(), bootstrap.getContext()); |
979 assertNotNull(artifact); | 983 assertNotNull(artifact); |
980 log.debug("VerticalProfile-Artifact is available"); | 984 log.debug("VerticalProfile-Artifact is available"); |
981 | 985 |
982 CallContext cc = createCallContext(); | 986 CallContext cc = createCallContext(); |
983 | 987 Document describeDocument = this.readDocument("src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_describe.xml"); |
984 // Erster Schritt | 988 // Erster Schritt |
985 this | 989 this |
986 .doNextStep( | 990 .doNextStep( |
987 artifact, | 991 artifact, |
988 cc, | 992 cc, |
989 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_01_feed.xml", | 993 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_01_feed.xml", |
990 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_01_advance.xml"); | 994 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_01_advance.xml", describeDocument); |
991 | 995 |
992 // Zweiter Schritt | 996 // Zweiter Schritt |
993 this | 997 this |
994 .doNextStep( | 998 .doNextStep( |
995 artifact, | 999 artifact, |
996 cc, | 1000 cc, |
997 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_02_feed.xml", | 1001 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_02_feed.xml", |
998 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_02_advance.xml"); | 1002 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_02_advance.xml", describeDocument); |
999 // Dritter Schritt | 1003 // Dritter Schritt |
1000 this | 1004 this |
1001 .doNextStep( | 1005 .doNextStep( |
1002 artifact, | 1006 artifact, |
1003 cc, | 1007 cc, |
1004 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_03_feed.xml", | 1008 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_03_feed.xml", |
1005 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_03_advance.xml"); | 1009 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_03_advance.xml", describeDocument); |
1006 // Vierter Schritt | 1010 // Vierter Schritt |
1007 this | 1011 this |
1008 .doNextStep( | 1012 .doNextStep( |
1009 artifact, | 1013 artifact, |
1010 cc, | 1014 cc, |
1011 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_04_feed.xml", | 1015 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_04_feed.xml", |
1012 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_04_advance.xml"); | 1016 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_04_advance.xml", describeDocument); |
1013 // Fünfter Schritt | 1017 // Fünfter Schritt |
1014 this | 1018 this |
1015 .doNextStep( | 1019 .doNextStep( |
1016 artifact, | 1020 artifact, |
1017 cc, | 1021 cc, |
1018 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_05_feed.xml", | 1022 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_05_feed.xml", |
1019 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_05_advance.xml"); | 1023 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_05_advance.xml", describeDocument); |
1020 | 1024 |
1021 // Sechster Schritt | 1025 // Sechster Schritt |
1022 this | 1026 this |
1023 .doNextStep( | 1027 .doNextStep( |
1024 artifact, | 1028 artifact, |
1025 cc, | 1029 cc, |
1026 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_06_feed.xml", | 1030 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_06_feed.xml", |
1027 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_06_advance.xml"); | 1031 "src/test/ressources/verticalcrosssection_mesh/verticalcrosssection_step_06_advance.xml", describeDocument); |
1028 | 1032 |
1029 | 1033 |
1030 Document outputData = artifact.describe(cc); | 1034 Document outputData = artifact.describe(describeDocument,cc); |
1031 FileOutputStream fos = null; | 1035 FileOutputStream fos = null; |
1032 FileOutputStream fos2 = null; | 1036 FileOutputStream fos2 = null; |
1033 FileOutputStream fos3 = null; | 1037 FileOutputStream fos3 = null; |
1034 try { | 1038 try { |
1035 fos = new FileOutputStream( | 1039 fos = new FileOutputStream( |