test_class.declarator: classUnderTest = null
test_class.original_string: SQLSchemaImpl classUnderTest = null;
test_class.type: SQLSchemaImpl
test_class.var_name: classUnderTest
test_class.declarator: mockSession = mockHelper.createMock(ISession.class)
test_class.original_string: ISession mockSession = mockHelper.createMock(ISession.class);
test_class.type: ISession
test_class.var_name: mockSession
test_class.declarator: mockConnection = mockHelper.createMock(ISQLConnection.class)
test_class.original_string: ISQLConnection mockConnection = mockHelper.createMock(ISQLConnection.class);
test_class.type: ISQLConnection
test_class.var_name: mockConnection
test_class.declarator: mockMetaData = mockHelper.createMock(SQLDatabaseMetaData.class)
test_class.original_string: SQLDatabaseMetaData mockMetaData = mockHelper.createMock(SQLDatabaseMetaData.class);
test_class.type: SQLDatabaseMetaData
test_class.var_name: mockMetaData
test_class.declarator: mockApplication = mockHelper.createMock(IApplication.class)
test_class.original_string: IApplication mockApplication = mockHelper.createMock(IApplication.class);
test_class.type: IApplication
test_class.var_name: mockApplication
test_class.declarator: mockThreadPool = mockHelper.createMock(TaskThreadPool.class)
test_class.original_string: TaskThreadPool mockThreadPool = mockHelper.createMock(TaskThreadPool.class);
test_class.type: TaskThreadPool
test_class.var_name: mockThreadPool
test_class.declarator: mockSchemaInfo = mockHelper.createMock(SchemaInfo.class)
test_class.original_string: SchemaInfo mockSchemaInfo = mockHelper.createMock(SchemaInfo.class);
test_class.type: SchemaInfo
test_class.var_name: mockSchemaInfo
test_class.declarator: catalog  = "aCatalog"
test_class.original_string: String catalog  = "aCatalog";
test_class.type: String
test_class.var_name: catalog
test_class.declarator: schema = "aSchema"
test_class.original_string: String schema = "aSchema";
test_class.type: String
test_class.var_name: schema
test_class.declarator: name = "aTableName"
test_class.original_string: String name = "aTableName";
test_class.type: String
test_class.var_name: name
test_class.declarator: tables = new String[] { name }
test_class.original_string: String[] tables = new String[] { name };
test_class.type: String[]
test_class.var_name: tables
test_class.file: sql12/app/src/test/java/net/sourceforge/squirrel_sql/client/session/parser/SQLSchemaImplTest.java
test_class.identifier: SQLSchemaImplTest
test_class.superclass: extends BaseSQuirreLJUnit4TestCase
test_case.body: @Test
  	public void testGetTables_null_Catalog_and_Schema()
  	{
  		
  		expect(mockSchemaInfo.getTables()).andReturn(tables);
  		mockHelper.replayAll();
  		classUnderTest = new SQLSchemaImpl(mockSession);
  		List<SQLSchema.Table> result = classUnderTest.getTables(null, null, name);
  		assertEquals(tables.length, result.size());
  		mockHelper.verifyAll();
  		
  	}
test_case.class_method_signature: SQLSchemaImplTest.testGetTables_null_Catalog_and_Schema()
test_case.full_signature: @Test public void testGetTables_null_Catalog_and_Schema()
test_case.identifier: testGetTables_null_Catalog_and_Schema
test_case.invocations: andReturn expect getTables replayAll getTables assertEquals size verifyAll
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetTables_null_Catalog_and_Schema()
focal_class.declarator: _session
focal_class.modifier: private
focal_class.original_string: private ISession _session;
focal_class.type: ISession
focal_class.var_name: _session
focal_class.declarator: _tableCache = new Hashtable<String, Table>()
focal_class.modifier: private
focal_class.original_string: private Hashtable<String, SQLSchema.Table> _tableCache = new Hashtable<String, Table>();
focal_class.type: Hashtable<String, SQLSchema.Table>
focal_class.var_name: _tableCache
focal_class.declarator: _dmd
focal_class.modifier: private
focal_class.original_string: private SQLDatabaseMetaData _dmd;
focal_class.type: SQLDatabaseMetaData
focal_class.var_name: _dmd
focal_class.file: sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/parser/SQLSchemaImpl.java
focal_class.identifier: SQLSchemaImpl
focal_class.interfaces: implements SQLSchema
focal_class.class_method_signature: SQLSchemaImpl.SQLSchemaImpl(ISession session)
focal_class.full_signature:   SQLSchemaImpl(ISession session)
focal_class.identifier: SQLSchemaImpl
focal_class.parameters: (ISession session)
focal_class.signature:  SQLSchemaImpl(ISession session)
focal_class.class_method_signature: SQLSchemaImpl.getTable(String catalog, String schema, String name)
focal_class.full_signature: public SQLSchema.Table getTable(String catalog, String schema, String name)
focal_class.identifier: getTable
focal_class.modifiers: public
focal_class.parameters: (String catalog, String schema, String name)
focal_class.return: SQLSchema.Table
focal_class.signature: SQLSchema.Table getTable(String catalog, String schema, String name)
focal_class.class_method_signature: SQLSchemaImpl.getKey(String catalog, String schema, String name)
focal_class.full_signature: private String getKey(String catalog, String schema, String name)
focal_class.identifier: getKey
focal_class.modifiers: private
focal_class.parameters: (String catalog, String schema, String name)
focal_class.return: String
focal_class.signature: String getKey(String catalog, String schema, String name)
focal_class.class_method_signature: SQLSchemaImpl.getTables(String catalog, String schema, String name)
focal_class.full_signature: public List<Table> getTables(String catalog, String schema, String name)
focal_class.identifier: getTables
focal_class.modifiers: public
focal_class.parameters: (String catalog, String schema, String name)
focal_class.return: List<Table>
focal_class.signature: List<Table> getTables(String catalog, String schema, String name)
focal_class.class_method_signature: SQLSchemaImpl.getTableForAlias(String alias)
focal_class.full_signature: public SQLSchema.Table getTableForAlias(String alias)
focal_class.identifier: getTableForAlias
focal_class.modifiers: public
focal_class.parameters: (String alias)
focal_class.return: SQLSchema.Table
focal_class.signature: SQLSchema.Table getTableForAlias(String alias)
focal_method.body: public List<Table> getTables(String catalog, String schema, String name)
  	{
          Vector<Table> ret = new Vector<Table>();
          String[] tableNames = _session.getSchemaInfo().getTables();
          
          for (int i = 0; i < tableNames.length; i++)
          {
              String key = getKey(catalog, schema, name);
              SQLSchema.Table buf = _tableCache.get(key);
              if(null == buf)
              {
                  buf = new SQLSchema.Table(catalog, schema, tableNames[i], _dmd); 
                  _tableCache.put(key, buf);
              }
              ret.add(buf);
          }
          return ret;
      }
focal_method.class_method_signature: SQLSchemaImpl.getTables(String catalog, String schema, String name)
focal_method.full_signature: public List<Table> getTables(String catalog, String schema, String name)
focal_method.identifier: getTables
focal_method.invocations: getTables getSchemaInfo getKey get put add
focal_method.modifiers: public
focal_method.parameters: (String catalog, String schema, String name)
focal_method.return: List<Table>
focal_method.signature: List<Table> getTables(String catalog, String schema, String name)