test_class.declarator: classUnderTest = null
test_class.original_string: InstallStatusListenerImpl classUnderTest = null;
test_class.type: InstallStatusListenerImpl
test_class.var_name: classUnderTest
test_class.declarator: mockController = mockHelper.createMock(ProgressDialogController.class)
test_class.original_string: ProgressDialogController mockController = mockHelper.createMock(ProgressDialogController.class);
test_class.type: ProgressDialogController
test_class.var_name: mockController
test_class.file: sql12/app/src/test/java/net/sourceforge/squirrel_sql/client/update/gui/installer/event/InstallStatusListenerImplTest.java
test_class.identifier: InstallStatusListenerImplTest
test_class.superclass: extends BaseSQuirreLJUnit4TestCase
test_case.body: @Test
  	public void testHandleInitChangelistStartedStatusEvent()
  	{
  		InstallStatusEvent evt = new InstallStatusEvent(InstallEventType.INIT_CHANGELIST_STARTED);
  		int numFilesToUpdate = 10;
  		evt.setNumFilesToUpdate(numFilesToUpdate);
  		mockController.showProgressDialog(isA(String.class), isA(String.class), eq(numFilesToUpdate));
  		
  		mockHelper.replayAll();
  		classUnderTest.handleInstallStatusEvent(evt);
  		mockHelper.verifyAll();
  	}
test_case.class_method_signature: InstallStatusListenerImplTest.testHandleInitChangelistStartedStatusEvent()
test_case.full_signature: @Test public void testHandleInitChangelistStartedStatusEvent()
test_case.identifier: testHandleInitChangelistStartedStatusEvent
test_case.invocations: setNumFilesToUpdate showProgressDialog isA isA eq replayAll handleInstallStatusEvent verifyAll
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testHandleInitChangelistStartedStatusEvent()
focal_class.declarator: _progressDialogController = null
focal_class.original_string: ProgressDialogController _progressDialogController = null;
focal_class.type: ProgressDialogController
focal_class.var_name: _progressDialogController
focal_class.file: sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/update/gui/installer/event/InstallStatusListenerImpl.java
focal_class.identifier: InstallStatusListenerImpl
focal_class.interfaces: implements InstallStatusListener
focal_class.class_method_signature: InstallStatusListenerImpl.InstallStatusListenerImpl(ProgressDialogController progressDialogFactory)
focal_class.full_signature: public  InstallStatusListenerImpl(ProgressDialogController progressDialogFactory)
focal_class.identifier: InstallStatusListenerImpl
focal_class.modifiers: public
focal_class.parameters: (ProgressDialogController progressDialogFactory)
focal_class.signature:  InstallStatusListenerImpl(ProgressDialogController progressDialogFactory)
focal_class.class_method_signature: InstallStatusListenerImpl.handleInstallStatusEvent(InstallStatusEvent evt)
focal_class.full_signature: public void handleInstallStatusEvent(InstallStatusEvent evt)
focal_class.identifier: handleInstallStatusEvent
focal_class.modifiers: public
focal_class.parameters: (InstallStatusEvent evt)
focal_class.return: void
focal_class.signature: void handleInstallStatusEvent(InstallStatusEvent evt)
focal_method.body: public void handleInstallStatusEvent(InstallStatusEvent evt)
  	{
  		if (evt.getType() == InstallEventType.INIT_CHANGELIST_STARTED) {
  			_progressDialogController.showProgressDialog("Initializing File Change List", "Processing file:",
  				evt.getNumFilesToUpdate());			
  		}
  		if (evt.getType() == InstallEventType.FILE_INIT_CHANGELIST_STARTED) {
  			_progressDialogController.setDetailMessage(evt.getArtifactName());
  		}
  		if (evt.getType() == InstallEventType.FILE_INIT_CHANGELIST_COMPLETE) {
  			_progressDialogController.incrementProgress();
  		}		
  		if (evt.getType() == InstallEventType.INIT_CHANGELIST_COMPLETE) {
  			_progressDialogController.setDetailMessage("");
  		}
  		if (evt.getType() == InstallEventType.BACKUP_STARTED)
  		{
  			_progressDialogController.resetProgressDialog("Backing up files to be updated", "Backing up file:",
  				evt.getNumFilesToUpdate());
  		}
  		if (evt.getType() == InstallEventType.FILE_BACKUP_STARTED)
  		{
  			_progressDialogController.setDetailMessage(evt.getArtifactName());
  		}
  		if (evt.getType() == InstallEventType.FILE_BACKUP_COMPLETE)
  		{
  			_progressDialogController.incrementProgress();
  		}
  		if (evt.getType() == InstallEventType.BACKUP_COMPLETE)
  		{
  			_progressDialogController.setDetailMessage("");
  		}
  		
  		if (evt.getType() == InstallEventType.REMOVE_STARTED) {
  			_progressDialogController.resetProgressDialog("Removing file to be updated", "Removing file:", 
  				evt.getNumFilesToUpdate());
  		}		
  		if (evt.getType() == InstallEventType.FILE_REMOVE_STARTED) {
  			_progressDialogController.setDetailMessage(evt.getArtifactName());
  		}
  		if (evt.getType() == InstallEventType.FILE_REMOVE_STARTED) {
  			_progressDialogController.incrementProgress();
  		}
  		if (evt.getType() == InstallEventType.REMOVE_COMPLETE) {
  			_progressDialogController.setDetailMessage("");
  		}
  		if (evt.getType() == InstallEventType.INSTALL_STARTED)
  		{
  			_progressDialogController.resetProgressDialog("Installing updated files", "Installing file:", 
  				evt.getNumFilesToUpdate());
  		}
  		if (evt.getType() == InstallEventType.FILE_INSTALL_STARTED)
  		{
  			_progressDialogController.setDetailMessage(evt.getArtifactName());
  		}
  		if (evt.getType() == InstallEventType.FILE_INSTALL_COMPLETE)
  		{
  			_progressDialogController.incrementProgress();
  		}
  		if (evt.getType() == InstallEventType.INSTALL_COMPLETE)
  		{
  			_progressDialogController.hideProgressDialog();
  		}
  	}
focal_method.class_method_signature: InstallStatusListenerImpl.handleInstallStatusEvent(InstallStatusEvent evt)
focal_method.full_signature: public void handleInstallStatusEvent(InstallStatusEvent evt)
focal_method.identifier: handleInstallStatusEvent
focal_method.invocations: getType showProgressDialog getNumFilesToUpdate getType setDetailMessage getArtifactName getType incrementProgress getType setDetailMessage getType resetProgressDialog getNumFilesToUpdate getType setDetailMessage getArtifactName getType incrementProgress getType setDetailMessage getType resetProgressDialog getNumFilesToUpdate getType setDetailMessage getArtifactName getType incrementProgress getType setDetailMessage getType resetProgressDialog getNumFilesToUpdate getType setDetailMessage getArtifactName getType incrementProgress getType hideProgressDialog
focal_method.modifiers: public
focal_method.parameters: (InstallStatusEvent evt)
focal_method.return: void
focal_method.signature: void handleInstallStatusEvent(InstallStatusEvent evt)