vhardy 2003/07/07 05:47:17
Modified: test-sources/org/apache/batik/apps/rasterizer
SVGConverterTest.java
Log:
Modified rasterizer test so that we now have a positive test on PDF transcoding
because we include the pdf transcoder in our distribution. Prior versions of the test
suite had a negative test on PDF transcoding (making sure we failed on PDF transcoding
by default)
Revision Changes Path
1.18 +10 -9
xml-batik/test-sources/org/apache/batik/apps/rasterizer/SVGConverterTest.java
Index: SVGConverterTest.java
===================================================================
RCS file:
/home/cvs/xml-batik/test-sources/org/apache/batik/apps/rasterizer/SVGConverterTest.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- SVGConverterTest.java 19 Mar 2003 01:03:54 -0000 1.17
+++ SVGConverterTest.java 7 Jul 2003 12:47:17 -0000 1.18
@@ -254,6 +254,15 @@
addTest(t);
t.setId("OperationTest.Bug4888");
+ t = new OperationTest(){
+ protected void configure(SVGConverter c){
+ c.setDestinationType(DestinationType.PDF);
+ c.setSources(new String[]{"samples/anne.svg"});
+ }
+ };
+ addTest(t);
+ t.setId("Operationtest.PDFTranscoding");
+
///////////////////////////////////////////////////////////////////////
// Add configuration error test. These tests check that the expected
// error gets reported for a given mis-configuration
@@ -291,14 +300,6 @@
addTest(t);
t.setId("ConfigErrorTest.ERROR_CANNOT_USE_DST_FILE");
- t = new ConfigErrorTest(SVGConverter.ERROR_CANNOT_ACCESS_TRANSCODER){
- protected void configure(SVGConverter c){
- c.setDestinationType(DestinationType.PDF);
- }
- };
- addTest(t);
- t.setId("ConfigErrorTest.ERROR_CANNOT_ACCESS_TRANCODER");
-
t = new ConfigErrorTest(SVGConverter.ERROR_SOURCE_SAME_AS_DESTINATION){
protected void configure(SVGConverter c){
c.setSources(new String[]{ "samples/anne.svg" });
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]