Package net.geco.ui.framework

Examples of net.geco.ui.framework.ConfigPanel


//    Assert.assertEquals(mockTab, window.getComponent(0));
//  }

  @Test
  public void stagePanelSetupWithTabs(){
    ConfigPanel mockConfig = mock(ConfigPanel.class);
    JPanel mockPanel = mock(JPanel.class);
    when(mockConfig.build()).thenReturn(mockPanel);
    when(mockConfig.getLabel()).thenReturn("mock config");
    StagePanel stagePanel = new StagePanel(mockGeco, mock(JFrame.class));
    stagePanel.buildConfigPanels(new ConfigPanel[] { mockConfig });
    verify(mockConfig, times(1)).getLabel();
    JPanel c = stagePanel.getConfigFor("mock config");
    Assert.assertEquals(mockPanel, c.getComponent(0));
View Full Code Here

TOP

Related Classes of net.geco.ui.framework.ConfigPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.