Package net.geco.ui.framework

Examples of net.geco.ui.framework.ConfigPanel.build()


  @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");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.