com.netriser.xmltestsuite
Class Main

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.extensions.TestDecorator
              |
              +--junit.extensions.TestSetup
                    |
                    +--com.netriser.xmltestsuite.Main
All Implemented Interfaces:
junit.framework.Test

public class Main
extends junit.extensions.TestSetup

This class provdes a main() for executing directly and a suite() method for use with junit runners.

The package can be called using the supplied *nix and windows shell scripts or directly from the command line.

Scripts

        xmltestsuite xmlpathname
 

Command line

        java com.netriser.xmltestsuite.Main [-v|-verbose] [-d|-debug] [-js|-javascript] [-h|-help] [xmlPathname]
 or     java [-Dv] [-Dd] [-Djs] [-Dfile=xmlpathname] com.netriser.xmltestsuite.Main
 or     java [-Dv] [-Dd] [-Djs] [-Dfile=xmlpathname] junit.textui.TestRunner com.netriser.xmltestsuite.Main
 or     java [-Dv] [-Dd] [-Djs] [-Dfile=xmlpathname] junit.swingui.TestRunner -noloading com.netriser.xmltestsuite.Main
 

The default xmlPathname is 'test.xml'


Constructor Summary
Main(junit.framework.TestSuite stepsSuite, java.io.File file)
          The constructor requires a parent test suite; see @link #suite
 
Method Summary
static junit.framework.Test init(java.lang.String pathname)
           
static void main(java.lang.String[] params)
           
 void run(junit.framework.TestResult result)
           
 void setUp()
           
static junit.framework.Test suite()
           
 void tearDown()
           
 
Methods inherited from class junit.extensions.TestDecorator
basicRun, countTestCases, getTest, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Main

public Main(junit.framework.TestSuite stepsSuite,
            java.io.File file)
The constructor requires a parent test suite; see @link #suite

Parameters:
stepsSuite -
Method Detail

init

public static junit.framework.Test init(java.lang.String pathname)

main

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

suite

public static junit.framework.Test suite()

setUp

public void setUp()
Overrides:
setUp in class junit.extensions.TestSetup
See Also:
TestResourceInterface.setUp()

tearDown

public void tearDown()
Overrides:
tearDown in class junit.extensions.TestSetup
See Also:
TestResourceInterface.tearDown()

run

public void run(junit.framework.TestResult result)
Specified by:
run in interface junit.framework.Test
Overrides:
run in class junit.extensions.TestSetup
See Also:
Test.run(TestResult)