neilcsmith-net commented on code in PR #8476:
URL: https://github.com/apache/netbeans/pull/8476#discussion_r2069315978
##########
java/java.editor/test/unit/src/org/netbeans/modules/java/editor/imports/ClipboardHandlerTest.java:
##########
@@ -179,6 +180,19 @@ private void copyAndPaste(String from, final String to,
String golden, String so
assertEquals(golden, actual[0]);
}
+ // NbClipboard is asynchronoous - this test has to wait for copy/paste to
finish
+ private static void syncNbClipboard() {
+ NbClipboard nbclip = Lookup.getDefault().lookup(NbClipboard.class);
+ assertNotNull("active NbClipboard expected", nbclip);
+ try {
Review Comment:
So is getContents. I don't think we should change this test, and if we do I
think it should use the API.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists