public void testGetNodeTransferableForSingleNodeCopy() throws Exception {
N node = new N();
Transferable t = DragDropUtilities.getNodeTransferable(node, NodeTransfer.DND_COPY);
assertEquals("One call to copy", 1, node.copy);
assertEquals("Also one call to drag which delegates to copy", 1, node.drag);
assertEquals("No call to cut", 0, node.cut);
assertNotNull("Call to convertor", last);
assertTrue("StringSelection got to ExClipboard convertor", last instanceof StringSelection);
}
DragDropUtilitiesTest.java 文件源码
java
阅读 35
收藏 0
点赞 0
评论 0
项目:incubator-netbeans
作者:
评论列表
文章目录