1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Changeset 5421

Show
Ignore:
Timestamp:
12/16/09 02:07:33 (4 years ago)
Author:
manningr
Message:

Return mock alias color properties bean from SQLAlias.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/sql12/test/src/net/sourceforge/squirrel_sql/client/AppTestUtil.java

    r5277 r5421  
    3838import net.sourceforge.squirrel_sql.client.gui.db.ISQLAliasExt; 
    3939import net.sourceforge.squirrel_sql.client.gui.db.SQLAlias; 
     40import net.sourceforge.squirrel_sql.client.gui.db.SQLAliasColorProperties; 
    4041import net.sourceforge.squirrel_sql.client.gui.session.SessionInternalFrame; 
    4142import net.sourceforge.squirrel_sql.client.gui.session.SessionPanel; 
     
    136137                expect(session.getSQLPanelAPIOfActiveSessionWindow()).andReturn(api).anyTimes(); 
    137138                // expect(session.getMessageHandler()).andReturn(messageHandler).anyTimes(); 
    138                 expect(session.getAlias()).andReturn(AppTestUtil.getEasyMockSqlAliasExt()); 
     139                expect(session.getAlias()).andStubReturn(AppTestUtil.getEasyMockSqlAliasExt()); 
    139140                expect(session.getIdentifier()).andReturn(FwTestUtil.getEasyMockIdentifier()).anyTimes(); 
    140141                expect(session.getSQLConnection()).andReturn(con).anyTimes(); 
     
    279280        public static ISQLAliasExt getEasyMockSqlAliasExt() { 
    280281           ISQLAliasExt result = createMock(ISQLAliasExt.class); 
     282           SQLAliasColorProperties props = createMock(SQLAliasColorProperties.class); 
    281283           expect(result.getName()).andReturn("TestAlias").anyTimes(); 
    282284           IIdentifier id = FwTestUtil.getEasyMockIdentifier(); 
    283285           expect(result.getDriverIdentifier()).andReturn(id).anyTimes(); 
     286           expect(result.getColorProperties()).andStubReturn(props); 
    284287           replay(result); 
    285288           return result;