net.sourceforge.jeuclid.test
Class ConverterTest

java.lang.Object
  extended by net.sourceforge.jeuclid.test.ConverterTest

public class ConverterTest
extends Object

Version:
$Revision: 92b6a7c39d7f $

Field Summary
static String TEST1
          Test string with xml header.
 
Constructor Summary
ConverterTest()
           
 
Method Summary
 File getOutDir()
          Create and return temp directory.
 void testConvertEmbeddedExamples()
          Tests the examples at resources/test/exampleX.mml.
 void testConverterBMP()
          Tests if BMP converter is available.
 void testConverterBufferedImage()
          Tests if rendered creates a buffered image with alpha values.
 void testConverterBufferedImageEmptyDoc()
          Tests if rendered creates a buffered image for an empty document.
 void testConverterBufferedImageNoAlpha()
          Tests if rendered creates a buffered image without alpha values.
 void testConverterJPG()
          Tests if JPEG converter is available.
 void testConverterMimeTypes()
          Tests if some mime-types are registered properly.
 void testConverterPDF()
          Tests if PDF converter is available and creates an output file.
 void testConverterPNG()
          Tests if PNG converter is available.
 void testConverterSVG()
          Tests if SVG converter is available and creates an output file.
 void testConverterSVGtoDOM()
          Tests if SVG converter is available and creates an output DOM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEST1

public static final String TEST1
Test string with xml header.

See Also:
Constant Field Values
Constructor Detail

ConverterTest

public ConverterTest()
Method Detail

testConverterPNG

public void testConverterPNG()
                      throws Exception
Tests if PNG converter is available.

Throws:
Exception - if the test fails.

testConverterJPG

public void testConverterJPG()
                      throws Exception
Tests if JPEG converter is available.

Throws:
Exception - if the test fails.

testConverterBMP

public void testConverterBMP()
                      throws Exception
Tests if BMP converter is available.

Throws:
Exception - if the test fails.

testConverterSVG

public void testConverterSVG()
                      throws Exception
Tests if SVG converter is available and creates an output file.

Throws:
Exception - if the test fails.

testConverterPDF

public void testConverterPDF()
                      throws Exception
Tests if PDF converter is available and creates an output file.

Throws:
Exception - if the test fails.

testConverterSVGtoDOM

public void testConverterSVGtoDOM()
                           throws Exception
Tests if SVG converter is available and creates an output DOM.

Throws:
Exception - if the test fails.

getOutDir

public File getOutDir()
Create and return temp directory.

Returns:
temp directory.

testConvertEmbeddedExamples

public void testConvertEmbeddedExamples()
                                 throws Exception
Tests the examples at resources/test/exampleX.mml.

Throws:
Exception - if an error occurs.

testConverterMimeTypes

public void testConverterMimeTypes()
                            throws Exception
Tests if some mime-types are registered properly.

Throws:
Exception - if the test fails.

testConverterBufferedImage

public void testConverterBufferedImage()
                                throws Exception
Tests if rendered creates a buffered image with alpha values.

Throws:
Exception - if the test fails.

testConverterBufferedImageEmptyDoc

public void testConverterBufferedImageEmptyDoc()
                                        throws Exception
Tests if rendered creates a buffered image for an empty document.

Throws:
Exception - if the test fails.

testConverterBufferedImageNoAlpha

public void testConverterBufferedImageNoAlpha()
                                       throws Exception
Tests if rendered creates a buffered image without alpha values.

Throws:
Exception - if the test fails.


Copyright © 2002-2010 The JEuclid project. All Rights Reserved.