|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdeveloper.junit.TestFactory
The TestFactory class is the main entry point for JUnit api users. The Factory is used to create instances
of TestSuite, TestCase and TestFixture. The containment hierarchy is very simple.
1. A TestSuite contains a collection of TestCases
2. A TestCase uses a collection of TestFixtures
The responsabilities are as follows:
1. A TestSuite generates the runtime class that runs the tests
2. A TestCase installs itself to a TestSuite
3. A TestFixture installs itself to a TestCase and also configures the project
to be able to run test cases that use the fixture.
Constructor Summary | |
TestFactory()
|
Method Summary | |
static TestCase |
createClassTestCase(JProject project,
java.lang.String sPackage,
java.lang.String sClassName)
Creates an instance of a ClassTestCase. |
static TestCase |
createMethodTestCase(JProject project,
java.lang.String sPackage,
java.lang.String sClassName)
Creates a method test case. |
static SuiteTestCase |
createSuiteTestCase(JProject project,
java.lang.String sPackage,
java.lang.String sClassName)
Creates a suite test case. |
static TestCase |
createTestCaseFromClass(JProject project,
JotClass testClass)
This method creates a TestCase from an existing Java class. |
static TestFixture |
createTestFixture(JProject project,
java.lang.String sPackage,
java.lang.String sClassName)
Create a new TestFixture and adds a setUp and tearDown methods to it. |
static TestFixture |
createTestFixtureFromClass(JProject project,
JotClass fixtureClass)
This method creates a TestFixture from an existing Java class. |
static TestSuite |
createTestSuite(JProject project,
java.lang.String sPackage,
java.lang.String sClassName)
This method is used to create a New TestSuite. |
static boolean |
installJUnit(JProject project)
This method should be called by any addin\wizard to make sure that JUnit has been downloaded and installed so that JDeveloper can make use of it's functionality. |
protected static java.util.HashMap |
saveProjectState(JProject proj)
|
protected static void |
sendChangeNotifications(JProject proj,
java.util.HashMap map)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TestFactory()
Method Detail |
public static TestSuite createTestSuite(JProject project, java.lang.String sPackage, java.lang.String sClassName) throws java.lang.Exception
java.lang.Exception
public static TestCase createClassTestCase(JProject project, java.lang.String sPackage, java.lang.String sClassName) throws java.lang.Exception
java.lang.Exception
public static TestCase createMethodTestCase(JProject project, java.lang.String sPackage, java.lang.String sClassName) throws java.lang.Exception
java.lang.Exception
public static SuiteTestCase createSuiteTestCase(JProject project, java.lang.String sPackage, java.lang.String sClassName) throws java.lang.Exception
java.lang.Exception
public static TestCase createTestCaseFromClass(JProject project, JotClass testClass)
public static TestFixture createTestFixtureFromClass(JProject project, JotClass fixtureClass)
public static TestFixture createTestFixture(JProject project, java.lang.String sPackage, java.lang.String sClassName) throws java.lang.Exception
java.lang.Exception
public static boolean installJUnit(JProject project)
protected static java.util.HashMap saveProjectState(JProject proj)
protected static void sendChangeNotifications(JProject proj, java.util.HashMap map)
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.