yu.ac.bg.etf.javaqx.nunit
Class TestPackage

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.nunit.TestPackage

public class TestPackage
extends java.lang.Object

Package Test Helper.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Constructor Summary
protected TestPackage()
          Constructs new TestPackage object.
 
Method Summary
static junit.framework.TestSuite createTestSuite(java.lang.Class c)
          Creates test suite for the specified package test class.
static junit.framework.TestSuite createTestSuite(java.lang.String name)
          Creates test suite.
static java.lang.String getPackageName(java.lang.Class c)
          Returns package name for the specified class.
static void startTextTestRunner(java.lang.Class c, java.lang.String[] args)
          Starts text test runner.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestPackage

protected TestPackage()
Constructs new TestPackage object.

Method Detail

getPackageName

public static java.lang.String getPackageName(java.lang.Class c)
Returns package name for the specified class.

Parameters:
c - the class
Returns:
package name for the specified class
Throws:
java.lang.IllegalArgumentException - if the class is null

createTestSuite

public static junit.framework.TestSuite createTestSuite(java.lang.String name)
Creates test suite.

Parameters:
name - the test suite name
Returns:
test suite

createTestSuite

public static junit.framework.TestSuite createTestSuite(java.lang.Class c)
Creates test suite for the specified package test class.

Parameters:
c - the class
Returns:
test suite for the specified package test class
Throws:
java.lang.IllegalArgumentException - if the class is null

startTextTestRunner

public static void startTextTestRunner(java.lang.Class c,
                                       java.lang.String[] args)
Starts text test runner.

Parameters:
c - the test class
args - the main method arguments


Copyright © 2007 ETF and contributors. All Rights Reserved.