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

Update com.sun.tdk.signaturetest.Test

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: st4.0
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b13
    • Verification:
      Verified

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: