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

Quick Search    Search Deep

org.apache.batik.css.engine.value
Class PropertyManagerTest  view PropertyManagerTest download PropertyManagerTest.java

java.lang.Object
  extended byorg.apache.batik.test.AbstractTest
      extended byorg.apache.batik.css.engine.value.PropertyManagerTest
All Implemented Interfaces:
org.apache.batik.test.Test

public class PropertyManagerTest
extends org.apache.batik.test.AbstractTest

The class to test the CSS properties's manager.

Version:
$Id: PropertyManagerTest.java,v 1.4 2005/04/01 02:28:16 deweese Exp $

Nested Class Summary
static class PropertyManagerTest.DefaultOpacityManager
          Manager for 'opacity'.
static class PropertyManagerTest.FillManager
          Manager for 'fill'.
static class PropertyManagerTest.FillOpacityManager
          Manager for 'fill-opacity'.
static class PropertyManagerTest.FloodColorManager
          Manager for 'flood-color'.
static class PropertyManagerTest.FloodOpacityManager
          Manager for 'flood-opacity'.
static class PropertyManagerTest.LetterSpacingManager
          Manager for 'letter-spacing'.
static class PropertyManagerTest.LightingColorManager
          Manager for 'lighting-color'.
static class PropertyManagerTest.MarkerEndManager
          Manager for 'marker-end'.
static class PropertyManagerTest.MarkerMidManager
          Manager for 'marker-mid'.
static class PropertyManagerTest.MarkerStartManager
          Manager for 'marker-start'.
static class PropertyManagerTest.StopColorManager
          Manager for 'stop-color'.
static class PropertyManagerTest.StopOpacityManager
          Manager for 'stop-opacity'.
static class PropertyManagerTest.StrokeManager
          Manager for 'stroke'.
static class PropertyManagerTest.StrokeOpacityManager
          Manager for 'stroke-opacity'.
static class PropertyManagerTest.WordSpacingManager
          Manager for 'word-spacing'.
 
Field Summary
protected  java.lang.String defaultValue
          The candidate default value of the property.
static java.lang.String ERROR_INHERIT_VALUE
          The error code if the property does not support the 'inherit' value.
static java.lang.String ERROR_INSTANTIATION
          The error code if an exception occured while creating the manager.
static java.lang.String ERROR_INVALID_DEFAULT_VALUE
          The error code for the 'default value' test.
static java.lang.String ERROR_INVALID_VALUE
          The error code for an invalid property value.
static java.lang.String ERROR_IS_INHERITED
          The error code for the 'is inherited' test.
protected  java.lang.String[] identValues
          The candidate values of the property.
protected  java.lang.Boolean isInherited
          This flag bit indicates whether or not the property is inherited.
protected  java.lang.String managerClassName
          The class of the manager.
 
Fields inherited from class org.apache.batik.test.AbstractTest
id, name, parent
 
Constructor Summary
PropertyManagerTest(java.lang.String managerClassName, java.lang.Boolean isInherited, java.lang.String defaultValue, java.lang.String identValueList)
          Constructs a new test for the specified manager classname.
 
Method Summary
protected  ValueManager createValueManager()
          Creates the value manager.
 org.apache.batik.test.TestReport runImpl()
          Runs this test.
 
Methods inherited from class org.apache.batik.test.AbstractTest
assertEquals, assertEquals, assertNull, assertTrue, error, getId, getName, getParent, getQualifiedId, reportError, reportException, reportSuccess, run, runImplBasic, setId, setName, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_IS_INHERITED

public static final java.lang.String ERROR_IS_INHERITED
The error code for the 'is inherited' test.

See Also:
Constant Field Values

ERROR_INHERIT_VALUE

public static final java.lang.String ERROR_INHERIT_VALUE
The error code if the property does not support the 'inherit' value.

See Also:
Constant Field Values

ERROR_INVALID_DEFAULT_VALUE

public static final java.lang.String ERROR_INVALID_DEFAULT_VALUE
The error code for the 'default value' test.

See Also:
Constant Field Values

ERROR_INVALID_VALUE

public static final java.lang.String ERROR_INVALID_VALUE
The error code for an invalid property value.

See Also:
Constant Field Values

ERROR_INSTANTIATION

public static final java.lang.String ERROR_INSTANTIATION
The error code if an exception occured while creating the manager.

See Also:
Constant Field Values

managerClassName

protected java.lang.String managerClassName
The class of the manager.


isInherited

protected java.lang.Boolean isInherited
This flag bit indicates whether or not the property is inherited.


identValues

protected java.lang.String[] identValues
The candidate values of the property.


defaultValue

protected java.lang.String defaultValue
The candidate default value of the property.

Constructor Detail

PropertyManagerTest

public PropertyManagerTest(java.lang.String managerClassName,
                           java.lang.Boolean isInherited,
                           java.lang.String defaultValue,
                           java.lang.String identValueList)
Constructs a new test for the specified manager classname.

Method Detail

createValueManager

protected ValueManager createValueManager()
                                   throws java.lang.Exception
Creates the value manager.


runImpl

public org.apache.batik.test.TestReport runImpl()
                                         throws java.lang.Exception
Runs this test. This method will only throw exceptions if some aspect of the test's internal operation fails.