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

Quick Search    Search Deep

abbot.script
Class ForkedStepRunnerTest  view ForkedStepRunnerTest download ForkedStepRunnerTest.java

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

public class ForkedStepRunnerTest
extends junit.framework.TestCase

Verify the sequence works as advertised.


Field Summary
private static java.lang.String ERROR_TEXT
           
private static java.lang.String LS
           
private static java.lang.String OUTPUT_TEXT
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ForkedStepRunnerTest(java.lang.String name)
           
 
Method Summary
private  Script loadScript(java.lang.String src)
           
static void main(java.lang.String[] args)
           
 void testFork()
           
 void testForkedError()
          Should be able to catch an error from a forked script exactly like you would from a regular one.
 void testForkedFailure()
          Should be able to catch a failure from a forked script exactly like you would from a regular one.
 void testForkedStepRunner()
          Run a script to completion.
 void testStepEncoding()
          Steps are identified across processes by their encoded locations within the script.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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

LS

private static final java.lang.String LS

OUTPUT_TEXT

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

ERROR_TEXT

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

ForkedStepRunnerTest

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

testFork

public void testFork()
              throws java.lang.Throwable

testStepEncoding

public void testStepEncoding()
                      throws java.lang.Throwable
Steps are identified across processes by their encoded locations within the script.


testForkedStepRunner

public void testForkedStepRunner()
                          throws java.lang.Throwable
Run a script to completion.


testForkedFailure

public void testForkedFailure()
                       throws java.lang.Throwable
Should be able to catch a failure from a forked script exactly like you would from a regular one.


testForkedError

public void testForkedError()
                     throws java.lang.Throwable
Should be able to catch an error from a forked script exactly like you would from a regular one.


loadScript

private Script loadScript(java.lang.String src)
                   throws java.lang.Throwable

main

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