test_class.declarator: TEST_TABLE_NAME = "TestTable1"
test_class.modifier: private static final
test_class.original_string: private static final String TEST_TABLE_NAME = "TestTable1";
test_class.type: String
test_class.var_name: TEST_TABLE_NAME
test_class.declarator: classUnderTest = null
test_class.modifier: private
test_class.original_string: private DeleteTablesCommand classUnderTest = null;
test_class.type: DeleteTablesCommand
test_class.var_name: classUnderTest
test_class.declarator: mockObjectTreeApi
test_class.modifier: @Mock
  	private
test_class.original_string: @Mock
  	private IObjectTreeAPI mockObjectTreeApi;
test_class.type: IObjectTreeAPI
test_class.var_name: mockObjectTreeApi
test_class.declarator: mockProgressCallBackFactory
test_class.modifier: @Mock
  	private
test_class.original_string: @Mock
  	private IProgressCallBackFactory mockProgressCallBackFactory;
test_class.type: IProgressCallBackFactory
test_class.var_name: mockProgressCallBackFactory
test_class.declarator: mockSession
test_class.modifier: @Mock
  	private
test_class.original_string: @Mock
  	private ISession mockSession;
test_class.type: ISession
test_class.var_name: mockSession
test_class.declarator: mockApplication
test_class.modifier: @Mock
  	private
test_class.original_string: @Mock
  	private IApplication mockApplication;
test_class.type: IApplication
test_class.var_name: mockApplication
test_class.declarator: mockMainFrame
test_class.modifier: @Mock
  	private
test_class.original_string: @Mock
  	private MainFrame mockMainFrame;
test_class.type: MainFrame
test_class.var_name: mockMainFrame
test_class.declarator: mockTaskThreadPool
test_class.modifier: @Mock
  	private
test_class.original_string: @Mock
  	private TaskThreadPool mockTaskThreadPool;
test_class.type: TaskThreadPool
test_class.var_name: mockTaskThreadPool
test_class.declarator: mockSqlConnection
test_class.modifier: @Mock
  	private
test_class.original_string: @Mock
  	private ISQLConnection mockSqlConnection;
test_class.type: ISQLConnection
test_class.var_name: mockSqlConnection
test_class.declarator: mockSqlDatabaseMetaData
test_class.modifier: @Mock
  	private
test_class.original_string: @Mock
  	private SQLDatabaseMetaData mockSqlDatabaseMetaData;
test_class.type: SQLDatabaseMetaData
test_class.var_name: mockSqlDatabaseMetaData
test_class.declarator: mockQueryTokenizer
test_class.modifier: @Mock
  	private
test_class.original_string: @Mock
  	private IQueryTokenizer mockQueryTokenizer;
test_class.type: IQueryTokenizer
test_class.var_name: mockQueryTokenizer
test_class.declarator: mockTableInfo
test_class.modifier: @Mock
  	private
test_class.original_string: @Mock
  	private ITableInfo mockTableInfo;
test_class.type: ITableInfo
test_class.var_name: mockTableInfo
test_class.declarator: mockMatViewTableInfo
test_class.modifier: @Mock
  	private
test_class.original_string: @Mock
  	private ITableInfo mockMatViewTableInfo;
test_class.type: ITableInfo
test_class.var_name: mockMatViewTableInfo
test_class.declarator: mockPreparedStatement
test_class.modifier: @Mock
  	private
test_class.original_string: @Mock
  	private PreparedStatement mockPreparedStatement;
test_class.type: PreparedStatement
test_class.var_name: mockPreparedStatement
test_class.declarator: mockResultSet
test_class.modifier: @Mock
  	private
test_class.original_string: @Mock
  	private ResultSet mockResultSet;
test_class.type: ResultSet
test_class.var_name: mockResultSet
test_class.declarator: selectedTables = new ArrayList<ITableInfo>()
test_class.modifier: private
test_class.original_string: private List<ITableInfo> selectedTables = new ArrayList<ITableInfo>();
test_class.type: List<ITableInfo>
test_class.var_name: selectedTables
test_class.declarator: runnableArgument = ArgumentCaptor.forClass(Runnable.class)
test_class.modifier: private
test_class.original_string: private ArgumentCaptor<Runnable> runnableArgument = ArgumentCaptor.forClass(Runnable.class);
test_class.type: ArgumentCaptor<Runnable>
test_class.var_name: runnableArgument
test_class.declarator: sqlArgument = ArgumentCaptor.forClass(String.class)
test_class.modifier: private
test_class.original_string: private ArgumentCaptor<String> sqlArgument = ArgumentCaptor.forClass(String.class);
test_class.type: ArgumentCaptor<String>
test_class.var_name: sqlArgument
test_class.file: sql12/app/src/test/java/net/sourceforge/squirrel_sql/client/session/action/DeleteTablesCommandTest.java
test_class.identifier: DeleteTablesCommandTest
test_case.body: @Test
  	public void testExecute() throws SQLException
  	{
  //		when(mockProgressCallBackFactory.create(isA(MainFrame.class), anyString(), eq(selectedTables.size()))).thenReturn(
  //			mockProgressCallBack);
  //		when(mockSqlUtilities.getDeletionOrder(selectedTables, mockSqlDatabaseMetaData, mockProgressCallBack)).thenReturn(
  //			selectedTables);
  //		when(
  //			mockSqlExecuterTaskFactory.createSQLExecuterTask(eq(mockSession), anyString(),
  //				(ISQLExecuterHandler) Mockito.isNull())).thenReturn(mockSqlExecuterTask);
  //		when(mockSqlDatabaseMetaData.getCascadeClause()).thenReturn("CASCADE");
  //
  //		classUnderTest = new DeleteTablesCommand(mockObjectTreeApi, selectedTables);
  //		classUnderTest.setProgressCallBackFactory(mockProgressCallBackFactory);
  //		classUnderTest.setSqlExecuterTaskFactory(mockSqlExecuterTaskFactory);
  //		classUnderTest.setSqlUtilities(mockSqlUtilities);
  //		classUnderTest.setDialectFactory(mockDialectFactory);
  //		classUnderTest.execute();
  //
  //		// Capture the Runnable that was given to the thread pool and call it's run method.
  //		verify(mockTaskThreadPool).addTask(runnableArgument.capture());
  //		Runnable deleteExecuter = runnableArgument.getValue();
  //		deleteExecuter.run();
  	}
test_case.class_method_signature: DeleteTablesCommandTest.testExecute()
test_case.full_signature: @Test public void testExecute()
test_case.identifier: testExecute
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testExecute()
focal_class.declarator: s_log = LoggerController.createLogger(DeleteTablesCommand.class)
focal_class.modifier: private final
focal_class.original_string: private final ILogger s_log = LoggerController.createLogger(DeleteTablesCommand.class);
focal_class.type: ILogger
focal_class.var_name: s_log
focal_class.declarator: s_stringMgr =
  		StringManagerFactory.getStringManager(DeleteTablesCommand.class)
focal_class.modifier: private static final
focal_class.original_string: private static final StringManager s_stringMgr =
  		StringManagerFactory.getStringManager(DeleteTablesCommand.class);
focal_class.type: StringManager
focal_class.var_name: s_stringMgr
focal_class.declarator: _session
focal_class.modifier: private final
focal_class.original_string: private final ISession _session;
focal_class.type: ISession
focal_class.var_name: _session
focal_class.declarator: _tables
focal_class.modifier: private final
focal_class.original_string: private final List<ITableInfo> _tables;
focal_class.type: List<ITableInfo>
focal_class.var_name: _tables
focal_class.declarator: matViewLookup = null
focal_class.modifier: private
focal_class.original_string: private HashSet<String> matViewLookup = null;
focal_class.type: HashSet<String>
focal_class.var_name: matViewLookup
focal_class.declarator: _tree
focal_class.modifier: private
focal_class.original_string: private IObjectTreeAPI _tree;
focal_class.type: IObjectTreeAPI
focal_class.var_name: _tree
focal_class.declarator: progressCallBackFactory = new ProgressCallBackFactory()
focal_class.modifier: private
focal_class.original_string: private IProgressCallBackFactory progressCallBackFactory = new ProgressCallBackFactory();
focal_class.type: IProgressCallBackFactory
focal_class.var_name: progressCallBackFactory
focal_class.file: sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/session/action/DeleteTablesCommand.java
focal_class.identifier: DeleteTablesCommand
focal_class.interfaces: implements ICommand
focal_class.class_method_signature: DeleteTablesCommand.DeleteTablesCommand(IObjectTreeAPI tree, List<ITableInfo> tables)
focal_class.full_signature: public  DeleteTablesCommand(IObjectTreeAPI tree, List<ITableInfo> tables)
focal_class.identifier: DeleteTablesCommand
focal_class.modifiers: public
focal_class.parameters: (IObjectTreeAPI tree, List<ITableInfo> tables)
focal_class.signature:  DeleteTablesCommand(IObjectTreeAPI tree, List<ITableInfo> tables)
focal_class.class_method_signature: DeleteTablesCommand.execute()
focal_class.full_signature: public void execute()
focal_class.identifier: execute
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void execute()
focal_class.class_method_signature: DeleteTablesCommand.isMaterializedView(ITableInfo ti, ISession session)
focal_class.full_signature: private boolean isMaterializedView(ITableInfo ti, ISession session)
focal_class.identifier: isMaterializedView
focal_class.modifiers: private
focal_class.parameters: (ITableInfo ti, ISession session)
focal_class.return: boolean
focal_class.signature: boolean isMaterializedView(ITableInfo ti, ISession session)
focal_class.class_method_signature: DeleteTablesCommand.initMatViewLookup(ISession session, String schema)
focal_class.full_signature: private void initMatViewLookup(ISession session, String schema)
focal_class.identifier: initMatViewLookup
focal_class.modifiers: private
focal_class.parameters: (ISession session, String schema)
focal_class.return: void
focal_class.signature: void initMatViewLookup(ISession session, String schema)
focal_class.class_method_signature: DeleteTablesCommand.setProgressCallBackFactory(IProgressCallBackFactory progressCallBackFactory)
focal_class.full_signature: public void setProgressCallBackFactory(IProgressCallBackFactory progressCallBackFactory)
focal_class.identifier: setProgressCallBackFactory
focal_class.modifiers: public
focal_class.parameters: (IProgressCallBackFactory progressCallBackFactory)
focal_class.return: void
focal_class.signature: void setProgressCallBackFactory(IProgressCallBackFactory progressCallBackFactory)
focal_method.body: public void execute()
  	{		
  		ProgressCallBack cb =
  			progressCallBackFactory.create(_session.getApplication().getMainFrame(), 
  				i18n.PROGRESS_DIALOG_TITLE, _tables.size());
  			
  		cb.setLoadingPrefix(i18n.LOADING_PREFIX);
  		DeleteExecuter executer = new DeleteExecuter(cb);
  		_session.getApplication().getThreadPool().addTask(executer);
  	}
focal_method.class_method_signature: DeleteTablesCommand.execute()
focal_method.full_signature: public void execute()
focal_method.identifier: execute
focal_method.invocations: create getMainFrame getApplication size setLoadingPrefix addTask getThreadPool getApplication
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void execute()