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.
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.