Class ApiCheckDriver

java.lang.Object
ee.jakarta.tck.ws.rs.signaturetest.SignatureTestDriver
ee.jakarta.tck.ws.rs.signaturetest.ApiCheckDriver
All Implemented Interfaces:
Serializable

public final class ApiCheckDriver extends SignatureTestDriver implements Serializable
See Also:
  • Constructor Details

    • ApiCheckDriver

      public ApiCheckDriver()
  • Method Details

    • normalizeFileName

      protected String normalizeFileName(File f)
      Specified by:
      normalizeFileName in class SignatureTestDriver
    • 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 class SignatureTestDriver
      Parameters:
      packageListFile - - file containing the packages/classes that are to be verified
      mapFile - sig-test.map file
      signatureRepositoryDir - directory containing the recorded signatures
      packageOrClassUnderTest - the class or package
      classpath - 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 class SignatureTestDriver
      Parameters:
      packageOrClassName - the package or class to be validated
      testArguments - the arguments necessary to invoke the signature test framework
      Returns:
      true if the test passed, otherwise false
      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 class SignatureTestDriver
      Parameters:
      packageOrClassName - the package or class to be validated
      Returns:
      true if the package was found to exist, otherwise false
      Throws:
      Exception
    • verifyJTAJarForNoXA

      protected boolean verifyJTAJarForNoXA(String classpath, String repositoryDir) throws Exception
      Description copied from class: SignatureTestDriver
      This method checks whether JTA API jar contains classes from javax.transaction.xa package
      Specified by:
      verifyJTAJarForNoXA in class SignatureTestDriver
      Parameters:
      classpath - the classpath, pointing JTA API jar
      repositoryDir - the directory containing an empty signature file
      Returns:
      true if the package javax.transaction.xa is not found in the JTA API jar, otherwise false
      Throws:
      Exception