Class ApiCheckDriver
java.lang.Object
ee.jakarta.tck.ws.rs.signaturetest.SignatureTestDriver
ee.jakarta.tck.ws.rs.signaturetest.ApiCheckDriver
- All Implemented Interfaces:
Serializable
- See Also:
-
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 Stringprotected booleanrunPackageSearch(String packageOrClassName, String[] testArguments) This checks if a class exists or not within the impl.protected booleanrunSignatureTest(String packageOrClassName, String[] testArguments) Invoke the underlying signature test framework for the specified package or class.protected booleanverifyJTAJarForNoXA(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
-
ApiCheckDriver
public ApiCheckDriver()
-
-
Method Details
-
normalizeFileName
- Specified by:
normalizeFileNamein classSignatureTestDriver
-
createTestArguments
protected String[] createTestArguments(String packageListFile, String mapFile, String signatureRepositoryDir, String packageOrClassUnderTest, String classpath, boolean bStaticMode) throws Exception Description copied from class:SignatureTestDriverUsing a common set of information, create arguments that are appropriate to be used with the underlying signature test framework.- Specified by:
createTestArgumentsin 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:SignatureTestDriverInvoke the underlying signature test framework for the specified package or class.- Specified by:
runSignatureTestin classSignatureTestDriver- Parameters:
packageOrClassName- the package or class to be validatedtestArguments- the arguments necessary to invoke the signature test framework- Returns:
trueif the test passed, otherwisefalse- Throws:
Exception
-
runPackageSearch
protected boolean runPackageSearch(String packageOrClassName, String[] testArguments) throws Exception Description copied from class:SignatureTestDriverThis checks if a class exists or not within the impl.- Specified by:
runPackageSearchin classSignatureTestDriver- Parameters:
packageOrClassName- the package or class to be validated- Returns:
trueif the package was found to exist, otherwisefalse- Throws:
Exception
-
verifyJTAJarForNoXA
Description copied from class:SignatureTestDriverThis method checks whether JTA API jar contains classes from javax.transaction.xa package- Specified by:
verifyJTAJarForNoXAin classSignatureTestDriver- Parameters:
classpath- the classpath, pointing JTA API jarrepositoryDir- the directory containing an empty signature file- Returns:
trueif the package javax.transaction.xa is not found in the JTA API jar, otherwisefalse- Throws:
Exception
-