This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 237941 - Copy actual result into clipboard
Summary: Copy actual result into clipboard
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-04 10:59 UTC by Svata Dedic
Modified: 2013-11-08 18:04 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Svata Dedic 2013-11-04 10:59:48 UTC
A failed TestCase (or just NbTestCase ?) assertEquals() offers "View Difference" action in the test results tree. It would be good to also offer an action to copy the actual results to the clipboard, so it could be pasted into source text.

The scenario is as follows:
- write the unit test, do not bother with assertEquals() contents (e.g. use empty String)
- observe the failed output, check if the actual value is correct
- paste the actual value as the golden one for comparison.

Both popup menu action AND a keyboard-accessible action withint he View Differences dialog should be available, for different paths through the scenario.