You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Jim Yu (JIRA)" <ji...@apache.org> on 2010/01/19 09:46:54 UTC
[jira] Created: (HARMONY-6427) [test] Improve the method coverage
rate of unit test for javax.print
[test] Improve the method coverage rate of unit test for javax.print
--------------------------------------------------------------------
Key: HARMONY-6427
URL: https://issues.apache.org/jira/browse/HARMONY-6427
Project: Harmony
Issue Type: Sub-task
Components: Classlib
Reporter: Jim Yu
The baseline of the method coverage rate for javax.print is 43% (239/557). This patch will add some testcases to improve the method coverage rate to 92% (513/557).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-6427) [test] Improve the method coverage
rate of unit test for javax.print
Posted by "Regis Xu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12803215#action_12803215 ]
Regis Xu commented on HARMONY-6427:
-----------------------------------
After applying the path, I got 2 failures and 10 errors, did I miss anything?
All tests of SimpleDocTest failed with same error:
/home/bahamut/harmony/federated/working_classlib/deploy/build/test/print/temp
java.io.FileNotFoundException: /home/bahamut/harmony/federated/working_classlib/deploy/build/test/print/temp
at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:240)
at java.io.FileInputStream.(FileInputStream.java:83)
at java.io.FileReader.(FileReader.java:42)
at javax.print.SimpleDocTest.setUp(SimpleDocTest.java:53)
JobHoldUntilTest.test_allMethods
null
junit.framework.AssertionFailedError: null
at javax.print.attribute.standard.JobHoldUntilTest.test_allMethods(JobHoldUntilTest.java:48)
at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
PrintEventTest.toString:
null expected:<[PrintEvent on ]aaaa> but was:<[]aaaa>
junit.framework.ComparisonFailure: null expected:<[PrintEvent on ]aaaa> but was:<[]aaaa>
at javax.print.event.PrintEventTest.test_toString(PrintEventTest.java:54)
at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
PrintJobAdapterTest.test_allMethods:
N/A
java.lang.NullPointerException
at javax.print.event.PrintJobAdapterTest.setUp(PrintJobAdapterTest.java:42)
PrintJobAttributeEventTest:
N/A
java.lang.ExceptionInInitializerError
at java.lang.VMClassRegistry.initializeClass(VMClassRegistry.java)
at java.lang.Class.forName(Class.java:147)
at java.lang.Class.forName(Class.java:90)
Caused by: java.lang.NullPointerException
at javax.print.event.PrintJobAttributeEventTest.(PrintJobAttributeEventTest.java:37)
at java.lang.VMClassRegistry.initializeClass(VMClassRegistry.java)
PrintJobEventTest:
N/A
java.lang.NullPointerException
at javax.print.event.PrintJobEventTest.test_PrintJobEvent_LDocPrintJobI(PrintJobEventTest.java:44)
at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
PrintServiceAttributeEventTest:
N/A
java.lang.IllegalArgumentException
at java.util.EventObject.(EventObject.java:48)
at javax.print.event.PrintEvent.(PrintEvent.java:26)
at javax.print.event.PrintServiceAttributeEvent.(PrintServiceAttributeEvent.java:29)
at javax.print.event.PrintServiceAttributeEventTest.test_PrintServiceAttributeEvent_LPrintService_LPrintServiceAttributeSet(PrintServiceAttributeEventTest.java:48)
at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
> [test] Improve the method coverage rate of unit test for javax.print
> --------------------------------------------------------------------
>
> Key: HARMONY-6427
> URL: https://issues.apache.org/jira/browse/HARMONY-6427
> Project: Harmony
> Issue Type: Sub-task
> Components: Classlib
> Reporter: Jim Yu
> Attachments: HARMONY-6427.diff
>
>
> The baseline of the method coverage rate for javax.print is 43% (239/557). This patch will add some testcases to improve the method coverage rate to 92% (513/557).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-6427) [test] Improve the method coverage
rate of unit test for javax.print
Posted by "Jim Yu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jim Yu updated HARMONY-6427:
----------------------------
Attachment: HARMONY-6427.diff
> [test] Improve the method coverage rate of unit test for javax.print
> --------------------------------------------------------------------
>
> Key: HARMONY-6427
> URL: https://issues.apache.org/jira/browse/HARMONY-6427
> Project: Harmony
> Issue Type: Sub-task
> Components: Classlib
> Reporter: Jim Yu
> Attachments: HARMONY-6427.diff
>
>
> The baseline of the method coverage rate for javax.print is 43% (239/557). This patch will add some testcases to improve the method coverage rate to 92% (513/557).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.