Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.enableit.db.darrt.visualise
Class SchemaVisualiserTest  view SchemaVisualiserTest download SchemaVisualiserTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.enableit.db.darrt.visualise.SchemaVisualiserTest
All Implemented Interfaces:
junit.framework.Test

public class SchemaVisualiserTest
extends junit.framework.TestCase

Tests SchemaVisualiser


Field Summary
private static org.apache.log4j.Logger logger
          Define a static Logger variable for logging.
static java.lang.String SVG_NAMESPACE_URI
          The SVG namespace for generated documents.
private static org.enableit.db.darrt.schema.Table table
          A table bean to use in tests.
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
SchemaVisualiserTest(java.lang.String name)
          Default Constructor
 
Method Summary
protected  void setUp()
          Define the test environment.
static junit.framework.Test suite()
          Defines all the tests for the Web Service application including tests in this class.
 void test10TableToSVG()
          Run test to convert table to SVG image.
 void test20TableToSVGFragment()
          Run test to convert table to SVG image.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SVG_NAMESPACE_URI

public static final java.lang.String SVG_NAMESPACE_URI
The SVG namespace for generated documents.

See Also:
Constant Field Values

table

private static org.enableit.db.darrt.schema.Table table
A table bean to use in tests.


logger

private static org.apache.log4j.Logger logger
Define a static Logger variable for logging.

Constructor Detail

SchemaVisualiserTest

public SchemaVisualiserTest(java.lang.String name)
Default Constructor

Method Detail

suite

public static junit.framework.Test suite()
Defines all the tests for the Web Service application including tests in this class.


setUp

protected void setUp()
              throws java.lang.Exception
Define the test environment.


test10TableToSVG

public void test10TableToSVG()
                      throws java.lang.Exception
Run test to convert table to SVG image.


test20TableToSVGFragment

public void test20TableToSVGFragment()
                              throws java.lang.Exception
Run test to convert table to SVG image. Note that the viewbox is hardcoded in this test, which leads to truncation in some cases.