Package net.sourceforge.squirrel_sql.client.gui.session

Examples of net.sourceforge.squirrel_sql.client.gui.session.SessionPanel


    */
   private boolean objectTreeTabIsSelected() {
      boolean result = false;
      ISession session = _treePanel.getSession();
      if (session != null) {
         SessionPanel sessionPanel = session.getSessionSheet();
         if (sessionPanel != null) {
            result = sessionPanel.isObjectTreeTabSelected();
         }
      }
      return result;
   }
View Full Code Here


    expect(session.getSQLConnection()).andReturn(con).anyTimes();
    session.setExceptionFormatter(isA(ExceptionFormatter.class));
    expectLastCall().anyTimes();
    session.addSeparatorToToolbar();
    expectLastCall().anyTimes();
    SessionPanel panel = AppTestUtil.getEasyMockSessionPanel();
    expect(session.getSessionSheet()).andReturn(panel).anyTimes();
    session.addToToolbar(isA(Action.class));
    expectLastCall().anyTimes();
    SessionInternalFrame frame = AppTestUtil.getEasyMockSessionInternalFrame();
    expect(session.getSessionInternalFrame()).andReturn(frame).anyTimes();
View Full Code Here

    return session;
  }

  public static SessionPanel getEasyMockSessionPanel()
  {
    SessionPanel result = createMock(SessionPanel.class);
    ISQLPanelAPI api = AppTestUtil.getEasyMockSqlPanelApi();
    expect(result.getSQLPaneAPI()).andReturn(api);
    ObjectTreePanel mockObjTreePanel = createMock(ObjectTreePanel.class);
    expect(result.getObjectTreePanel()).andStubReturn(mockObjTreePanel);
    mockObjTreePanel.addExpander(isA(DatabaseObjectType.class), isA(INodeExpander.class));
    expectLastCall().anyTimes();
    mockObjTreePanel.addDetailTab(isA(DatabaseObjectType.class), isA(IObjectTab.class));
    expectLastCall().anyTimes();
    replay(mockObjTreePanel);
View Full Code Here

  // close events on shutdown.
  @Test
  public void testMultipleSessionEndings() {
   
    ISession mockSession = mockHelper.createMock("mockSession", ISession.class);
    SessionPanel mockSessionPanel = mockHelper.createMock("mockSessionPanel", SessionPanel.class);
    ISQLPanelAPI mockSQLPanelAPI = mockHelper.createMock("mockSQLPanelAPI", ISQLPanelAPI.class);
    EasyMock.makeThreadSafe(mockSQLPanelAPI, true);
   
    expect(mockSession.getSessionSheet()).andStubReturn(mockSessionPanel);
    expect(mockSessionPanel.getSQLPaneAPI()).andStubReturn(mockSQLPanelAPI);
    mockSQLPanelAPI.addSQLExecutionListener(isA(ISQLExecutionListener.class));
    expectLastCall().anyTimes();
    mockSQLPanelAPI.removeSQLExecutionListener(isA(ISQLExecutionListener.class));
    expectLastCall().anyTimes();
   
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.client.gui.session.SessionPanel

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.