Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7901816

Update com.sun.tdk.signaturetest.Test

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • st4.0
    • None
    • tools
    • None
    • b13
    • Verified

      It's convenient to use com.sun.tdk.signaturetest.Test as wrapper for SignatureTest.
      However, currently its method run(String[], PrintWriter, PrintWriter) returns com.sun.javatest.Status when in JCK we generally use javasoft.sqe.javatest.Status.
      That's why started to used SignatureTest itself and parse the status from its toString() method.

      However, this is not very convenient & safety to do the following manually:
      Status s = Status.parse(sigtest.toString().substring(7));
      Assert.assertTrue(s.isPassed(), s.getReason());

      Moreover, the result of SignatureTest::toString is not documented.

      I propose to improve Test or SignatureTest in one of the following ways:
      1) Change return Status type of Test::run to javasoft.sqe.javatest.Status
      2) Add additional method to Test which will return javasoft.sqe.javatest.Status or parseable by Status string.
      3) Add additional method to SignatureTest which will return javasoft.sqe.javatest.Status or parseable by Status string.

      Any of these solutions would work for us.

            ersh Mikhail Ershov (Inactive)
            evotchen Elena Votchennikova (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: