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

Quick Search    Search Deep

org.apache.batik.bridge
Class ScriptSelfTest  view ScriptSelfTest download ScriptSelfTest.java

java.lang.Object
  extended byorg.apache.batik.test.AbstractTest
      extended byorg.apache.batik.test.svg.SelfContainedSVGOnLoadTest
          extended byorg.apache.batik.bridge.ScriptSelfTest
All Implemented Interfaces:
org.apache.batik.test.Test

public class ScriptSelfTest
extends org.apache.batik.test.svg.SelfContainedSVGOnLoadTest

Helper class to simplify writing the unitTesting.xml file for the bridge.

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

Nested Class Summary
(package private)  class ScriptSelfTest.TestUserAgent
           
 
Field Summary
(package private)  java.lang.String fileName
           
(package private)  java.lang.String scriptOrigin
           
(package private)  java.lang.String scripts
           
(package private)  boolean secure
           
(package private)  ScriptSelfTest.TestUserAgent userAgent
           
 
Fields inherited from class org.apache.batik.test.svg.SelfContainedSVGOnLoadTest
ATTRIBUTE_KEY, ATTRIBUTE_RESULT, ATTRIBUTE_VALUE, ENTRY_KEY_ERROR_DESCRIPTION, ENTRY_KEY_NUMBER_OF_TEST_RESULT_ELEMENTS, ENTRY_KEY_RESULT_VALUE, ERROR_CANNOT_LOAD_SVG_DOCUMENT, ERROR_MISSING_OR_EMPTY_ERROR_CODE_ON_FAILED_TEST, ERROR_UNEXPECTED_NUMBER_OF_TEST_RESULT_ELEMENTS, ERROR_UNEXPECTED_RESULT_VALUE, ERROR_WHILE_PROCESSING_SVG_DOCUMENT, svgURL, TAG_ERROR_DESCRIPTION_ENTRY, TAG_TEST_RESULT, TEST_RESULT_FAILED, TEST_RESULT_PASSED, testNS
 
Fields inherited from class org.apache.batik.test.AbstractTest
id, name, parent
 
Constructor Summary
ScriptSelfTest()
           
 
Method Summary
protected  UserAgent buildUserAgent()
          Give subclasses a chance to build their own UserAgent
 java.lang.String getScriptOrigin()
           
 java.lang.String getScripts()
           
 boolean getSecure()
           
 org.apache.batik.test.TestReport runImpl()
          Run this test and produce a report.
 void setId(java.lang.String id)
          Set this Test's id.
 void setScriptOrigin(java.lang.String scriptOrigin)
           
 void setScripts(java.lang.String scripts)
           
 void setSecure(boolean secure)
           
 
Methods inherited from class org.apache.batik.test.svg.SelfContainedSVGOnLoadTest
resolveURL
 
Methods inherited from class org.apache.batik.test.AbstractTest
assertEquals, assertEquals, assertNull, assertTrue, error, getId, getName, getParent, getQualifiedId, reportError, reportException, reportSuccess, run, runImplBasic, setName, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scripts

java.lang.String scripts

secure

boolean secure

scriptOrigin

java.lang.String scriptOrigin

fileName

java.lang.String fileName

userAgent

ScriptSelfTest.TestUserAgent userAgent
Constructor Detail

ScriptSelfTest

public ScriptSelfTest()
Method Detail

setId

public void setId(java.lang.String id)
Description copied from class: org.apache.batik.test.AbstractTest
Set this Test's id. Null is not allowed.


setSecure

public void setSecure(boolean secure)

getSecure

public boolean getSecure()

getScriptOrigin

public java.lang.String getScriptOrigin()

setScriptOrigin

public void setScriptOrigin(java.lang.String scriptOrigin)

setScripts

public void setScripts(java.lang.String scripts)

getScripts

public java.lang.String getScripts()

runImpl

public org.apache.batik.test.TestReport runImpl()
                                         throws java.lang.Exception
Description copied from class: org.apache.batik.test.svg.SelfContainedSVGOnLoadTest
Run this test and produce a report. The test goes through the following steps:
  • load the input SVG into a Document
  • build the GVT tree corresponding to the Document and dispatch the 'onload' event
  • looks for one and only one <testResult> element in the Document. This is used to build the returned TestReport


buildUserAgent

protected UserAgent buildUserAgent()
Description copied from class: org.apache.batik.test.svg.SelfContainedSVGOnLoadTest
Give subclasses a chance to build their own UserAgent