Class SigTestDriver
java.lang.Object
ee.jakarta.tck.ws.rs.signaturetest.SignatureTestDriver
ee.jakarta.tck.ws.rs.signaturetest.SigTestDriver
Wrapper for the Sig Test
framework.
-
Nested Class Summary
Nested classes/interfaces inherited from class ee.jakarta.tck.ws.rs.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 String
protected boolean
runPackageSearch
(String packageOrClassName, String[] testArguments) This checks if a class exists or not within the impl.protected boolean
runSignatureTest
(String packageOrClassName, String[] testArguments) Invoke the underlying signature test framework for the specified package or class.protected boolean
verifyJTAJarForNoXA
(String classpath, String repositoryDir) This method checks whether JTA API jar contains classes from javax.transaction.xa packageMethods inherited from class ee.jakarta.tck.ws.rs.signaturetest.SignatureTestDriver
cleanupImpl, executeSigTest, getMapFileImpl, getPackageFileImpl, getRepositoryDirImpl, getSigFileInfo, getSigFileName, isJavaSEVersion, loadMapFile
-
Constructor Details
-
SigTestDriver
public SigTestDriver()
-
-
Method Details
-
normalizeFileName
- Specified by:
normalizeFileName
in classSignatureTestDriver
-
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
-
runPackageSearch
protected boolean runPackageSearch(String packageOrClassName, String[] testArguments) throws Exception Description copied from class:SignatureTestDriver
This checks if a class exists or not within the impl.- Specified by:
runPackageSearch
in classSignatureTestDriver
- Parameters:
packageOrClassName
- the package or class to be validated- Returns:
true
if the package was found to exist, otherwisefalse
- Throws:
Exception
-
verifyJTAJarForNoXA
Description copied from class:SignatureTestDriver
This method checks whether JTA API jar contains classes from javax.transaction.xa package- Specified by:
verifyJTAJarForNoXA
in classSignatureTestDriver
- Parameters:
classpath
- the classpath, pointing JTA API jarrepositoryDir
- the directory containing an empty signature file- Returns:
true
if the package javax.transaction.xa is not found in the JTA API jar, otherwisefalse
- Throws:
Exception
-