BasicTreeUITest.java 文件源码

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

项目:freeVM 作者:
public void testCreateLayoutCache() {
    tree.setRowHeight(0);
    assertNotNull(ui.createLayoutCache());
    assertNotSame(ui.createLayoutCache(), ui.createLayoutCache());
    assertTrue(ui.createLayoutCache() instanceof VariableHeightLayoutCache);
    assertTrue(ui.treeState instanceof VariableHeightLayoutCache);
    tree.setRowHeight(10);
    assertTrue(ui.createLayoutCache() instanceof VariableHeightLayoutCache);
    assertTrue(ui.treeState instanceof VariableHeightLayoutCache);
    tree.setRowHeight(0);
    tree.setLargeModel(true);
    assertTrue(ui.createLayoutCache() instanceof VariableHeightLayoutCache);
    assertTrue(ui.treeState instanceof VariableHeightLayoutCache);
    tree.setRowHeight(10);
    assertTrue(ui.createLayoutCache() instanceof FixedHeightLayoutCache);
    assertTrue(ui.treeState instanceof FixedHeightLayoutCache);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号