Class SigTestDriver
java.lang.Object
com.sun.ts.tests.el.signaturetest.SignatureTestDriver
com.sun.ts.tests.el.signaturetest.SigTestDriver
Wrapper for the Sig Test
framework.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.ts.tests.el.signaturetest.SignatureTestDriver
SignatureTestDriver.SignatureFileInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]
createTestArguments
(String packageListFile, String mapFile, String signatureRepositoryDir, String packageOrClassUnderTest, String classpath, boolean bStaticMode) Using a common set of information, create arguments that are appropriate to be used with the underlying signature test framework.protected boolean
runSignatureTest
(String packageOrClassName, String[] testArguments) Invoke the underlying signature test framework for the specified package or class.Methods inherited from class com.sun.ts.tests.el.signaturetest.SignatureTestDriver
executeSigTest, getSigFileInfo, getSigFileName, loadMapFile
-
Constructor Details
-
SigTestDriver
public SigTestDriver()
-
-
Method Details
-
createTestArguments
protected String[] createTestArguments(String packageListFile, String mapFile, String signatureRepositoryDir, String packageOrClassUnderTest, String classpath, boolean bStaticMode) throws Exception Description copied from class:SignatureTestDriver
Using a common set of information, create arguments that are appropriate to be used with the underlying signature test framework.- Specified by:
createTestArguments
in classSignatureTestDriver
- Parameters:
packageListFile
- - file containing the packages/classes that are to be verifiedmapFile
- sig-test.map filesignatureRepositoryDir
- directory containing the recorded signaturespackageOrClassUnderTest
- the class or packageclasspath
- The location of the API being verified. Normally the checked API will be available in the test environment and testClasspath will be null. In some rare cases the tested API may not be part of the test environment and will have to specified using this parameter.- Throws:
Exception
-
runSignatureTest
protected boolean runSignatureTest(String packageOrClassName, String[] testArguments) throws Exception Description copied from class:SignatureTestDriver
Invoke the underlying signature test framework for the specified package or class.- Specified by:
runSignatureTest
in classSignatureTestDriver
- Parameters:
packageOrClassName
- the package or class to be validatedtestArguments
- the arguments necessary to invoke the signature test framework- Returns:
true
if the test passed, otherwisefalse
- Throws:
Exception
-