Extension SDK

oracle.jdeveloper.junit
Interface TestCaseContainer

All Known Subinterfaces:
TestSuite

public interface TestCaseContainer

The TestCaseContainer manages a set of TestCases. It provides the basic services needed by the TestSuite and SuiteTestCase classes.


Method Summary
 void addTestCase(TestCase newTest)
          Adds a TestCase to the set of TestCases.
 void commitChanges()
          Commits any of the generated source code into the source file.
 JotClass getJotClass()
          Returns the JotClass that has been generated for this TestCaseContainer.
 JotBlockElement getSuiteMethodInsertionPoint()
          Returns the insertion point to be used as a marker.
 

Method Detail

addTestCase

public void addTestCase(TestCase newTest)
Adds a TestCase to the set of TestCases.


getSuiteMethodInsertionPoint

public JotBlockElement getSuiteMethodInsertionPoint()
Returns the insertion point to be used as a marker. This is an important utility function to be used by TestCases in order to install themselves into the TestContainer. The TestCase class should insert itself before the returned element. The returned element will usually be the 'return' statement of the TestSuite's suite() method.


getJotClass

public JotClass getJotClass()
Returns the JotClass that has been generated for this TestCaseContainer. API users can use this to further specialize the TestCase by adding imports, generating methods,...


commitChanges

public void commitChanges()
Commits any of the generated source code into the source file.


Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.