comparison gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/GNVArtifactsTestCase.java @ 211:310874d3573f

Minimum and Maximum Depth should be entered by the User issue31 gnv-artifacts/trunk@267 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 26 Oct 2009 15:51:36 +0000
parents 2f6a96610cb9
children c0a798299efc
comparison
equal deleted inserted replaced
210:7d1f9219d163 211:310874d3573f
175 */ 175 */
176 private void doNextStep(Artifact artifact, CallContext cc, 176 private void doNextStep(Artifact artifact, CallContext cc,
177 String feedDocument, String advanceDocument) 177 String feedDocument, String advanceDocument)
178 throws Exception { 178 throws Exception {
179 Document outputData = artifact.describe(cc); 179 Document outputData = artifact.describe(cc);
180 this.writeDocument2Log(outputData); 180 // this.writeDocument2Log(outputData);
181 outputData = artifact.feed(this.readDocument(feedDocument), cc); 181 outputData = artifact.feed(this.readDocument(feedDocument), cc);
182 this.check4ExceptionReport(outputData); 182 this.check4ExceptionReport(outputData);
183 outputData = artifact.advance(this.readDocument(advanceDocument), cc); 183 outputData = artifact.advance(this.readDocument(advanceDocument), cc);
184 this.writeDocument2Log(outputData); 184 // this.writeDocument2Log(outputData);
185 this.check4ExceptionReport(outputData); 185 this.check4ExceptionReport(outputData);
186 186
187 } 187 }
188 188
189 public void testTimeSeriesMeshArtifact() { 189 public void testTimeSeriesMeshArtifact() {
341 .doNextStep( 341 .doNextStep(
342 artifact, 342 artifact,
343 cc, 343 cc,
344 "src/test/ressources/verticalprofile/verticalprofile_step_03_feed.xml", 344 "src/test/ressources/verticalprofile/verticalprofile_step_03_feed.xml",
345 "src/test/ressources/verticalprofile/verticalprofile_step_03_advance.xml"); 345 "src/test/ressources/verticalprofile/verticalprofile_step_03_advance.xml");
346
347 // Vierter Schritt
348 this
349 .doNextStep(
350 artifact,
351 cc,
352 "src/test/ressources/verticalprofile/verticalprofile_step_04_feed.xml",
353 "src/test/ressources/verticalprofile/verticalprofile_step_04_advance.xml");
354
346 355
347 // Vierter Schritt 356 // Vierter Schritt
348 Document outputData = artifact.describe(cc); 357 Document outputData = artifact.describe(cc);
349 FileOutputStream fos = null; 358 FileOutputStream fos = null;
350 FileOutputStream fos2 = null; 359 FileOutputStream fos2 = null;
360 + System.currentTimeMillis() 369 + System.currentTimeMillis()
361 + ".csv"); 370 + ".csv");
362 artifact 371 artifact
363 .feed( 372 .feed(
364 this 373 this
365 .readDocument("src/test/ressources/verticalprofile/verticalprofile_step_04_feed.xml"), 374 .readDocument("src/test/ressources/verticalprofile/verticalprofile_step_05_feed.xml"),
366 cc); 375 cc);
367 artifact 376 artifact
368 .out( 377 .out(
369 this 378 this
370 .readDocument("src/test/ressources/verticalprofile/verticalprofile_step_04_out_statistics.xml"), 379 .readDocument("src/test/ressources/verticalprofile/verticalprofile_step_05_out_statistics.xml"),
371 fos2, cc); 380 fos2, cc);
372 artifact 381 artifact
373 .out( 382 .out(
374 this 383 this
375 .readDocument("src/test/ressources/verticalprofile/verticalprofile_step_04_out_chart.xml"), 384 .readDocument("src/test/ressources/verticalprofile/verticalprofile_step_05_out_chart.xml"),
376 fos, cc); 385 fos, cc);
377 artifact 386 artifact
378 .out( 387 .out(
379 this 388 this
380 .readDocument("src/test/ressources/verticalprofile/verticalprofile_step_04_out_csv.xml"), 389 .readDocument("src/test/ressources/verticalprofile/verticalprofile_step_05_out_csv.xml"),
381 fos3, cc); 390 fos3, cc);
382 } catch (Exception e) { 391 } catch (Exception e) {
383 log.error(e, e); 392 log.error(e, e);
384 fail(); 393 fail();
385 } finally { 394 } finally {
547 .doNextStep( 556 .doNextStep(
548 artifact, 557 artifact,
549 cc, 558 cc,
550 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_03_feed.xml", 559 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_03_feed.xml",
551 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_03_advance.xml"); 560 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_03_advance.xml");
561 // Vierter Schritt
562 this
563 .doNextStep(
564 artifact,
565 cc,
566 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_04_feed.xml",
567 "src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_04_advance.xml");
552 568
553 // Vierter Schritt 569 // Vierter Schritt
554 Document outputData = artifact.describe(cc); 570 Document outputData = artifact.describe(cc);
555 FileOutputStream fos = null; 571 FileOutputStream fos = null;
556 FileOutputStream fos2 = null; 572 FileOutputStream fos2 = null;
566 "src/test/results/verticalprofile_instantaneouspoint" 582 "src/test/results/verticalprofile_instantaneouspoint"
567 + System.currentTimeMillis() + ".csv"); 583 + System.currentTimeMillis() + ".csv");
568 artifact 584 artifact
569 .feed( 585 .feed(
570 this 586 this
571 .readDocument("src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_04_feed.xml"), 587 .readDocument("src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_05_feed.xml"),
572 cc); 588 cc);
573 artifact 589 artifact
574 .out( 590 .out(
575 this 591 this
576 .readDocument("src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_04_out_statistics.xml"), 592 .readDocument("src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_05_out_statistics.xml"),
577 fos2, cc); 593 fos2, cc);
578 artifact 594 artifact
579 .out( 595 .out(
580 this 596 this
581 .readDocument("src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_04_out_chart.xml"), 597 .readDocument("src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_05_out_chart.xml"),
582 fos, cc); 598 fos, cc);
583 artifact 599 artifact
584 .out( 600 .out(
585 this 601 this
586 .readDocument("src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_04_out_csv.xml"), 602 .readDocument("src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_05_out_csv.xml"),
587 fos3, cc); 603 fos3, cc);
588 } catch (Exception e) { 604 } catch (Exception e) {
589 log.error(e, e); 605 log.error(e, e);
590 fail(); 606 fail();
591 } finally { 607 } finally {

http://dive4elements.wald.intevation.org