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

Quick Search    Search Deep

abbot.script
Class ScriptTest  view ScriptTest download ScriptTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byabbot.script.ScriptTest
All Implemented Interfaces:
junit.framework.Test

public class ScriptTest
extends junit.framework.TestCase

Verify the script works as advertised.


Field Summary
(package private) static java.lang.String CLASS
           
private  test.AbbotHelper helper
           
(package private) static java.lang.String ID
           
private  Script script
           
(package private) static java.lang.String TAG
           
private static java.lang.String unicodeData
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ScriptTest(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
 void testDirty()
           
 void testFilePaths()
           
 void testNestedFileNotFound()
          If a nested file does not exist, an exception should be thrown.
 void testNestedReference()
          Ensure that a nested script maintains its own context.
 void testRead()
           
 void testReferenceReuse()
          Any given component, if added multiple times, should result in the same component reference.
 void testSaveNestedScript()
          A nested script should have *only* its filename attribute saved.
 void testUniqueReferences()
          Any number of unique components should all result in unique references.
 void testWrite()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

helper

private test.AbbotHelper helper

script

private Script script

ID

static final java.lang.String ID
See Also:
Constant Field Values

TAG

static final java.lang.String TAG
See Also:
Constant Field Values

CLASS

static final java.lang.String CLASS
See Also:
Constant Field Values

unicodeData

private static final java.lang.String unicodeData
See Also:
Constant Field Values
Constructor Detail

ScriptTest

public ScriptTest(java.lang.String name)
Method Detail

testDirty

public void testDirty()
               throws java.lang.Throwable

testWrite

public void testWrite()
               throws java.lang.Throwable

testRead

public void testRead()
              throws java.lang.Throwable

testNestedReference

public void testNestedReference()
                         throws java.lang.Throwable
Ensure that a nested script maintains its own context.


testSaveNestedScript

public void testSaveNestedScript()
                          throws java.lang.Throwable
A nested script should have *only* its filename attribute saved.


testNestedFileNotFound

public void testNestedFileNotFound()
                            throws java.lang.Throwable
If a nested file does not exist, an exception should be thrown.


testFilePaths

public void testFilePaths()

testReferenceReuse

public void testReferenceReuse()
Any given component, if added multiple times, should result in the same component reference.


testUniqueReferences

public void testUniqueReferences()
Any number of unique components should all result in unique references.


setUp

protected void setUp()
Description copied from class: junit.framework.TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.


tearDown

protected void tearDown()
Description copied from class: junit.framework.TestCase
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.


main

public static void main(java.lang.String[] args)