comparison gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/GNVArtifactsTestCase.java @ 256:008709f79611

Removed Statisticsupport for VerticalCrossSection and HorizontalCrossSection according to Requirement TG_0030.061 gnv-artifacts/trunk@332 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 13 Nov 2009 09:57:25 +0000
parents b7f69809239c
children 251f16a083f8
comparison
equal deleted inserted replaced
255:5403452c06fc 256:008709f79611
766 766
767 Document outputData = artifact.describe(describeDocument,cc); 767 Document outputData = artifact.describe(describeDocument,cc);
768 FileOutputStream fos = null; 768 FileOutputStream fos = null;
769 FileOutputStream fos2 = null; 769 FileOutputStream fos2 = null;
770 FileOutputStream fos3 = null; 770 FileOutputStream fos3 = null;
771 FileOutputStream fos4 = null;
772 try { 771 try {
773 fos = new FileOutputStream( 772 fos = new FileOutputStream(
774 "src/test/results/horizontalcrosssection_mesh" 773 "src/test/results/horizontalcrosssection_mesh"
775 + System.currentTimeMillis() + ".png"); 774 + System.currentTimeMillis() + ".png");
775
776 fos2 = new FileOutputStream( 776 fos2 = new FileOutputStream(
777 "src/test/results/horizontalcrosssection_mesh" 777 "src/test/results/horizontalcrosssection_mesh"
778 + System.currentTimeMillis() + ".xml"); 778 + System.currentTimeMillis() + ".csv");
779 fos3 = new FileOutputStream( 779 fos3 = new FileOutputStream(
780 "src/test/results/horizontalcrosssection_mesh"
781 + System.currentTimeMillis() + ".csv");
782 fos4 = new FileOutputStream(
783 "src/test/results/horizontalcrosssection_mesh" 780 "src/test/results/horizontalcrosssection_mesh"
784 + System.currentTimeMillis() + ".odv"); 781 + System.currentTimeMillis() + ".odv");
785 artifact.feed(this.readDocument("src/test/ressources/" + 782 artifact.feed(this.readDocument("src/test/ressources/" +
786 "horizontalcrosssection_mesh/" + 783 "horizontalcrosssection_mesh/" +
787 "horizontalcrosssection_step_06_feed.xml"), 784 "horizontalcrosssection_step_06_feed.xml"),
788 cc); 785 cc);
789 artifact.out(this.readDocument("src/test/ressources/" + 786 artifact.out(this.readDocument("src/test/ressources/" +
790 "horizontalcrosssection_mesh/" + 787 "horizontalcrosssection_mesh/" +
791 "horizontalcrosssection_step_06_out_statistics.xml"),
792 fos2, cc);
793 artifact.out(this.readDocument("src/test/ressources/" +
794 "horizontalcrosssection_mesh/" +
795 "horizontalcrosssection_step_06_out_chart.xml"), 788 "horizontalcrosssection_step_06_out_chart.xml"),
796 fos, cc); 789 fos, cc);
797 artifact.out(this.readDocument("src/test/ressources/" + 790 artifact.out(this.readDocument("src/test/ressources/" +
798 "horizontalcrosssection_mesh/" + 791 "horizontalcrosssection_mesh/" +
799 "horizontalcrosssection_step_06_out_csv.xml"), 792 "horizontalcrosssection_step_06_out_csv.xml"),
800 fos3,cc); 793 fos2,cc);
801 artifact.out(this.readDocument("src/test/ressources/" + 794 artifact.out(this.readDocument("src/test/ressources/" +
802 "horizontalcrosssection_mesh/" + 795 "horizontalcrosssection_mesh/" +
803 "horizontalcrosssection_step_06_out_odv.xml"), 796 "horizontalcrosssection_step_06_out_odv.xml"),
804 fos4,cc); 797 fos3,cc);
805 } catch (Exception e) { 798 } catch (Exception e) {
806 log.error(e, e); 799 log.error(e, e);
807 fail(); 800 fail();
808 } finally { 801 } finally {
809 try { 802 try {
856 849
857 Document outputData = artifact.describe(describeDocument,cc); 850 Document outputData = artifact.describe(describeDocument,cc);
858 FileOutputStream fos = null; 851 FileOutputStream fos = null;
859 FileOutputStream fos2 = null; 852 FileOutputStream fos2 = null;
860 FileOutputStream fos3 = null; 853 FileOutputStream fos3 = null;
861 FileOutputStream fos4 = null;
862 try { 854 try {
863 fos = new FileOutputStream( 855 fos = new FileOutputStream(
864 "src/test/results/verticalcrosssection_mesh" 856 "src/test/results/verticalcrosssection_mesh"
865 + System.currentTimeMillis() + ".png"); 857 + System.currentTimeMillis() + ".png");
858
866 fos2 = new FileOutputStream( 859 fos2 = new FileOutputStream(
867 "src/test/results/verticalcrosssection_mesh" 860 "src/test/results/verticalcrosssection_mesh"
868 + System.currentTimeMillis() + ".xml"); 861 + System.currentTimeMillis() + ".csv");
869 fos3 = new FileOutputStream( 862 fos3 = new FileOutputStream(
870 "src/test/results/verticalcrosssection_mesh"
871 + System.currentTimeMillis() + ".csv");
872 fos4 = new FileOutputStream(
873 "src/test/results/verticalcrosssection_mesh" 863 "src/test/results/verticalcrosssection_mesh"
874 + System.currentTimeMillis() + ".odv"); 864 + System.currentTimeMillis() + ".odv");
875 artifact.feed(this.readDocument("src/test/ressources/" + 865 artifact.feed(this.readDocument("src/test/ressources/" +
876 "verticalcrosssection_mesh/" + 866 "verticalcrosssection_mesh/" +
877 "verticalcrosssection_step_08_feed.xml"), 867 "verticalcrosssection_step_08_feed.xml"),
878 cc); 868 cc);
879 artifact.out(this.readDocument("src/test/ressources/" + 869 artifact.out(this.readDocument("src/test/ressources/" +
880 "verticalcrosssection_mesh/" +
881 "verticalcrosssection_step_08_out_statistics.xml"),
882 fos2, cc);
883 artifact.out(this.readDocument("src/test/ressources/" +
884 "verticalcrosssection_mesh/" + 870 "verticalcrosssection_mesh/" +
885 "verticalcrosssection_step_08_out_chart.xml"), 871 "verticalcrosssection_step_08_out_chart.xml"),
886 fos, cc); 872 fos, cc);
887 artifact.out(this.readDocument("src/test/ressources/" + 873 artifact.out(this.readDocument("src/test/ressources/" +
888 "verticalcrosssection_mesh/" + 874 "verticalcrosssection_mesh/" +
889 "verticalcrosssection_step_08_out_csv.xml"), 875 "verticalcrosssection_step_08_out_csv.xml"),
890 fos3,cc); 876 fos2,cc);
891 artifact.out(this.readDocument("src/test/ressources/" + 877 artifact.out(this.readDocument("src/test/ressources/" +
892 "verticalcrosssection_mesh/" + 878 "verticalcrosssection_mesh/" +
893 "verticalcrosssection_step_08_out_odv.xml"), 879 "verticalcrosssection_step_08_out_odv.xml"),
894 fos4,cc); 880 fos3,cc);
895 881
896 } catch (Exception e) { 882 } catch (Exception e) {
897 log.error(e, e); 883 log.error(e, e);
898 fail(); 884 fail();
899 } finally { 885 } finally {

http://dive4elements.wald.intevation.org