Java 类javax.swing.plaf.basic.BasicSeparatorUI 实例源码

项目:cn1    文件:JSeparatorTest.java   
public void testSetUISeparatorUI() {
    SeparatorUI ui1 = new BasicSeparatorUI();
    SeparatorUI ui2 = new BasicSeparatorUI();
    separator.setUI(ui1);
    assertEquals(ui1, separator.ui);
    assertEquals(ui1, separator.getUI());
    separator.setUI(ui2);
    assertEquals(ui2, separator.ui);
    assertEquals(ui2, separator.getUI());
}
项目:freeVM    文件:JSeparatorTest.java   
public void testSetUISeparatorUI() {
    SeparatorUI ui1 = new BasicSeparatorUI();
    SeparatorUI ui2 = new BasicSeparatorUI();
    separator.setUI(ui1);
    assertEquals(ui1, separator.ui);
    assertEquals(ui1, separator.getUI());
    separator.setUI(ui2);
    assertEquals(ui2, separator.ui);
    assertEquals(ui2, separator.getUI());
}
项目:freeVM    文件:JSeparatorTest.java   
public void testSetUISeparatorUI() {
    SeparatorUI ui1 = new BasicSeparatorUI();
    SeparatorUI ui2 = new BasicSeparatorUI();
    separator.setUI(ui1);
    assertEquals(ui1, separator.ui);
    assertEquals(ui1, separator.getUI());
    separator.setUI(ui2);
    assertEquals(ui2, separator.ui);
    assertEquals(ui2, separator.getUI());
}