DragDropUtilitiesTest.java 文件源码

java
阅读 35 收藏 0 点赞 0 评论 0

项目:incubator-netbeans 作者:
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);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号