net.sf.jsequnit.junit
Class SingleTestMethodJUnit

java.lang.Object
  extended by net.sf.jsequnit.junit.SingleTestMethodJUnit

public class SingleTestMethodJUnit
extends Object

A simple wrapper to run a single JUnit test method with the help of JUnitCore.

Author:
jacek.ratzinger

Constructor Summary
SingleTestMethodJUnit()
           
 
Method Summary
static void main(String[] args)
          The main method accepting a single parameter (i.e. the fully qualified name of the JUnit test method).
 org.junit.runner.Result runTest(String qualifiedTestMethod)
          Run the provided test method using a JUnit Request passed to JUnitCore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleTestMethodJUnit

public SingleTestMethodJUnit()
Method Detail

main

public static void main(String[] args)
The main method accepting a single parameter (i.e. the fully qualified name of the JUnit test method).

Parameters:
args - The arguments containing the test method name.

runTest

public org.junit.runner.Result runTest(String qualifiedTestMethod)
Run the provided test method using a JUnit Request passed to JUnitCore. The following sequence diagram shows the interactions of this method.

Parameters:
qualifiedTestMethod - The fully qualified test method name.
Returns:
The Result of the test, which contains all information about the test run.
Sequence Diagram:


Copyright © 2011. All Rights Reserved.