auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testRemoveWithParam ( ) { container.SetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_VALUE ) ; container.removeSession ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID ) ; org.junit.Assert.assertNull ( "Get should return null since the session was removed" , container.GetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }

Target:
public void testRemoveWithParam ( ) { container.setData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_VALUE ) ; container.removeSession ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID ) ; org.junit.Assert.assertNull ( "Get should return null since the session was removed" , container.getData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }
Source:
protected void executeQueryCommand ( ) { setReturnValue ( org.ovirt.engine.core.bll.GetAllVmPoolsAttachedToUserQuery.getDbFacade ( ) . getVmPoolDao ( ) . getAllForUser ( org.ovirt.engine.core.bll.GetAllVmPoolsAttachedToUserQuery.getUserID ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { setReturnValue ( vmPoolDao.getAllForUser ( org.ovirt.engine.core.bll.GetAllVmPoolsAttachedToUserQuery.getUserID ( ) ) ) ; }
Source:
public void addTabWidget ( com.google.gwt.user.client.ui.Widget tabWidget , int index ) { tabContainer.insert ( tabWidget , index ) ; }

Target:
public void addTabWidget ( com.google.gwt.user.client.ui.IsWidget tabWidget , int index ) { tabContainer.insert ( tabWidget , index ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatic result = dao.getByName ( existingEntity.getStorageName ( ) ) ; org.junit.Assert.assertEquals ( existingEntity , result ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatic result = dao.getByName ( existingEntity.getStorageName ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( existingEntity , result ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.VdsManager GetVdsManager ( org.ovirt.engine.core.compat.Guid vdsId , boolean newHost ) { org.ovirt.engine.core.vdsbroker.VdsManager vdsManger = vdsManagersDict.get ( vdsId ) ; if ( vdsManger == null ) { if ( ! newHost ) { org.ovirt.engine.core.vdsbroker.ResourceManager.log.errorFormat ( "Cannot get vdsManager for vdsid={0}" , vdsId ) ; } } return vdsManger ; }

Target:
public org.ovirt.engine.core.vdsbroker.VdsManager GetVdsManager ( org.ovirt.engine.core.compat.Guid vdsId , boolean newHost ) { org.ovirt.engine.core.vdsbroker.VdsManager vdsManger = vdsManagersDict.get ( vdsId ) ; if ( vdsManger == null ) { if ( ! newHost ) { org.ovirt.engine.core.vdsbroker.ResourceManager.log.error ( "Cannot get vdsManager for vdsid='{}'." , vdsId ) ; } } return vdsManger ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSType getHostType ( ) { return org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDSType getHostType ( ) { return org.ovirt.engine.core.common.businessentities.VDSType.oVirtVintageNode ; }
Source:
public void testHelloWrold ( ) throws java.lang.InterruptedException , java.util.concurrent.ExecutionException , org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { testEchoMessage ( "Hello world!" , 61626 ) ; }

Target:
public void testHelloWrold ( ) throws java.lang.InterruptedException , java.util.concurrent.ExecutionException , org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { testEchoMessage ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.SSLStompClientTestCase.generateRandomMessage ( 16 ) , 61626 ) ; }
Source:
protected org.ovirt.engine.api.model.VM doPopulate ( org.ovirt.engine.api.model.VM model , org.ovirt.engine.api.model.VM entity ) { parent.setConsoleDevice ( model ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.VM doPopulate ( org.ovirt.engine.api.model.VM model , org.ovirt.engine.api.model.VM entity ) { parent.setConsoleDevice ( model ) ; parent.setVirtioScsiController ( model ) ; return model ; }
Source:
public void rollback ( ) { super . rollback ( ) ; poolPerDc.modifyPool ( oldMacPool ) ; }

Target:
public void onRollback ( ) { macPoolPerCluster.modifyPool ( oldMacPool ) ; }
Source:
public void testAdjustLegacySecureChannelsWithEmptyChannels ( ) throws java.lang.Exception { java.lang.String legacyChannels = "" ; java.lang.String correctChannels = "" ; org.junit.Assert.assertEquals ( correctChannels , org.ovirt.engine.ui.common.uicommon.AbstractSpice.adjustLegacySecureChannels ( legacyChannels ) ) ; }

Target:
public void testAdjustLegacySecureChannelsWithEmptyChannels ( ) throws java.lang.Exception { java.lang.String legacyChannels = "" ; java.lang.String correctChannels = "" ; org.junit.Assert.assertEquals ( correctChannels , org.ovirt.engine.core.common.console.ConsoleOptions.adjustLegacySecureChannels ( legacyChannels ) ) ; }
Source:
protected int getDefaultRefreshRate ( ) { return getClientAgentType ( ) . isIE8OrBelow ( ) ? org.ovirt.engine.ui.userportal.widget.refresh.UserPortalRefreshManager.SLOWER_REFRESH_RATE : super . getDefaultRefreshRate ( ) ; }

Target:
protected int getDefaultRefreshRate ( ) { return org.ovirt.engine.ui.userportal.gin.ClientGinjectorProvider.getClientAgentType ( ) . isIE8OrBelow ( ) ? org.ovirt.engine.ui.userportal.widget.refresh.UserPortalRefreshManager.SLOWER_REFRESH_RATE : super . getDefaultRefreshRate ( ) ; }
Source:
public void testRemove ( ) { dao.remove ( FixturesTool.HOOK_ID ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook = dao.getById ( FixturesTool.HOOK_ID ) ; org.junit.Assert.assertNull ( hook ) ; }

Target:
public void testRemove ( ) { dao.remove ( FixturesTool.HOOK_ID ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook = dao.getById ( FixturesTool.HOOK_ID ) ; org.junit.Assert.assertNull ( hook ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook serverhook = dao.getGlusterServerHook ( FixturesTool.HOOK_ID , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.SERVER_ID ) ; org.junit.Assert.assertNull ( serverhook ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllForVdsGroup ( org.ovirt.engine.core.compat.Guid vds_group_id ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllForUserAndActionGroup ( org.ovirt.engine.core.compat.Guid userID , org.ovirt.engine.core.common.businessentities.ActionGroup actionGroup ) ;
Source:
public org.springframework.jdbc.core.namedparam.MapSqlParameterSource map ( org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession entity ) { return createFullParametersMapper ( entity ) ; }

Target:
public org.springframework.jdbc.core.namedparam.MapSqlParameterSource map ( org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionDetails entity ) { return createFullParametersMapper ( entity ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.VDS host0 , org.ovirt.engine.core.common.businessentities.VDS host1 ) { return lexoNumeric.compare ( host0.getHostName ( ) , host1.getHostName ( ) ) ; }

Target:
public void setHostList ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts ) { java.util.Collections.sort ( hosts , java.util.Comparator.comparing ( VDS :: getHostName , new org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator ( ) ) ) ; getServers ( ) . setItems ( hosts ) ; }
Source:
public org.ovirt.engine.api.model.Host get ( ) { return performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.GetVdsByVdsIdParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.api.model.Host get ( ) { if ( isFiltered ( ) ) { throw new javax.ws.rs.WebApplicationException ( Response.Status.FORBIDDEN ) ; } return performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.GetVdsByVdsIdParameters ( guid ) ) ; }
Source:
protected void setActionMessageParameters ( ) { if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( cdImagePath ) ) ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__CHANGE_CD ) ; } else { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__EJECT_CD ) ; } addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__VM ) ; }

Target:
protected void setActionMessageParameters ( ) { if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( cdImagePath ) ) ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__CHANGE_CD ) ; } else { addCanDoActionMessage ( EngineMessage.VAR__ACTION__EJECT_CD ) ; } addCanDoActionMessage ( EngineMessage.VAR__TYPE__VM ) ; }
Source:
public void setdisplay_ip ( java.lang.String value ) { this . mVmDynamic.setdisplay_ip ( value ) ; }

Target:
public java.lang.String getDisplayIp ( ) { return this . vmDynamic.getdisplay_ip ( ) ; }
Source:
protected abstract void onExportChanged ( ) ;

Target:
private void setSubnetName ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > subnetName ) { this . subnetName = subnetName ; }
Source:
public void leaseNotFreeSingleOwner ( ) { java.lang.Object [ ] owners = new java.lang.Object [ ] { 1 } ; org.junit.Assert.assertFalse ( getLeaseStatus ( owners ) . isFree ( ) ) ; }

Target:
public void leaseNotFreeMultipleOwners ( ) { java.lang.Object [ ] owners = new java.lang.Object [ ] { 1 , 2 , 3 } ; org.junit.jupiter.api.Assertions.assertFalse ( getLeaseStatus ( owners ) . isFree ( ) ) ; }
Source:
public void validateEnums ( ) { org.ovirt.engine.api.model.WatchDog entity = new org.ovirt.engine.api.model.WatchDog ( ) ; entity.setAction ( "reset" ) ; entity.setModel ( "i6300esb" ) ; new org.ovirt.engine.api.restapi.resource.validation.WatchdogValidator ( ) . validateEnums ( entity ) ; }

Target:
public void validateEnums ( ) { org.ovirt.engine.api.model.Watchdog entity = new org.ovirt.engine.api.model.Watchdog ( ) ; entity.setAction ( "reset" ) ; entity.setModel ( "i6300esb" ) ; new org.ovirt.engine.api.restapi.resource.validation.WatchdogValidator ( ) . validateEnums ( entity ) ; }
Source:
private boolean findDefaultManagementNetwork ( ) { managementNetwork = defaultManagementNetworkFinder.findDefaultManagementNetwork ( org.ovirt.engine.core.bll.AddVdsGroupCommand.getVdsGroup ( ) . getStoragePoolId ( ) ) ; if ( ( managementNetwork ) == null ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_DEFAULT_MANAGEMENT_NETWORK_NOT_FOUND ) ; return false ; } return true ; }

Target:
private boolean findDefaultManagementNetwork ( ) { setManagementNetwork ( defaultManagementNetworkFinder.findDefaultManagementNetwork ( org.ovirt.engine.core.bll.AddVdsGroupCommand.getVdsGroup ( ) . getStoragePoolId ( ) ) ) ; if ( ( getManagementNetwork ( ) ) == null ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_DEFAULT_MANAGEMENT_NETWORK_NOT_FOUND ) ; return false ; } return true ; }
Source:
public void testValidModifiedBondsFailsWhenReferencingExistingNonBondInterface ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_INTERFACE_IS_NOT_BOND ) , VdcBllMessages.NETWORK_INTERFACE_IS_NOT_BOND , false , false ) ; }

Target:
public void testValidModifiedBondsFailsWhenReferencingExistingNonBondInterface ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACE_IS_NOT_BOND ) , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACE_IS_NOT_BOND ) , ValidationResult.VALID ) ; }
Source:
public void setAutoSuspend ( boolean value ) { this . vmStatic.setAutoSuspend ( value ) ; }

Target:
public void setCreatedByUserId ( org.ovirt.engine.core.compat.Guid value ) { vmStatic.setCreatedByUserId ( value ) ; }
Source:
public void persistCommand ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.Guid rootCommandId , org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.core.compat.CommandStatus status , boolean enableCallBack ) { commandsCache.put ( commandId , rootCommandId , actionType , params , status , enableCallBack ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.CommandEntity getCommandEntity ( org.ovirt.engine.core.compat.Guid commandId ) { return commandsCache.get ( commandId ) ; }
Source:
public void setTitle ( java.lang.String title ) { button.setTitle ( title ) ; }

Target:
public void setTooltipText ( java.lang.String tooltipText ) { if ( ( tooltip ) == null ) { tooltip = new org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip ( this ) ; } tooltip.setText ( tooltipText ) ; tooltip.reconfigure ( ) ; }
Source:
private boolean isDiskImage ( ) { return ( ( ( getOldDisk ( ) ) != null ) && ( ( getNewDisk ( ) ) != null ) ) && ( ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) == ( getOldDisk ( ) . getDiskStorageType ( ) ) ) ; }

Target:
private boolean isDiskImage ( ) { return ( ( ( getOldDisk ( ) ) != null ) && ( ( getNewDisk ( ) ) != null ) ) && ( ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) == ( getOldDisk ( ) . getDiskStorageType ( ) ) ) ; }
Source:
private org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersister createLegacyPersister ( java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > userNetworkAttachments , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ... vdsNetworkInterfaces ) { return new org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersister ( networkAttachmentDao , hostId , new java.util.ArrayList ( java.util.Arrays.asList ( vdsNetworkInterfaces ) ) , customPropertiesForNics , userNetworkAttachments , clusterNetworks ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersister createPersister ( java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > userNetworkAttachments , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ... hostInterfaces ) { return createPersister ( userNetworkAttachments , java.util.Collections.emptySet ( ) , hostInterfaces ) ; }
Source:
public void checkInvalidAddress ( ) { org.junit.Assert.assertFalse ( underTest.eval ( generateVdsNetworkInterface ( getINVALID ( ) ) ) ) ; }

Target:
public void checkInvalidAddress ( ) { org.junit.Assert.assertFalse ( underTest.test ( generateVdsNetworkInterface ( getINVALID ( ) ) ) ) ; }
Source:
public void testEventLinks ( ) { org.ovirt.engine.api.model.Event event = new org.ovirt.engine.api.model.Event ( ) ; event.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.EVENT_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( event ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.EVENT_HREF , event.getHref ( ) ) ; }

Target:
public void testEventLinks ( ) { org.ovirt.engine.api.model.Event event = new org.ovirt.engine.api.model.Event ( ) ; event.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.EVENT_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( event ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.EVENT_HREF , event.getHref ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel vmListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel ) ( target ) ) ; vmListModel.PostMigrateGetUpHosts ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel vmListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel ) ( target ) ) ; vmListModel.postMigrateGetUpHosts ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ) ; }
Source:
public final void SetStringValue ( java.lang.String name , java.lang.String value ) { SetValue ( name , value , Config.DefaultConfigurationVersion ) ; }

Target:
public final void SetStringValue ( java.lang.String name , java.lang.String value ) { SetValue ( name , value , ConfigCommon.defaultConfigurationVersion ) ; }
Source:
public void testDebugFaultDetail ( ) throws java.lang.Exception { setUpLogExpectations ( false ) ; java.lang.Throwable t = new java.lang.Exception ( "snafu" ) ; java.lang.String detail = org.ovirt.engine.api.restapi.resource.AbstractBackendResource.detail ( t ) ; assertEquals ( t.getMessage ( ) , detail ) ; }

Target:
public void testDebugFaultDetail ( ) throws java.lang.Exception { setUpLogExpectations ( false ) ; java.lang.Throwable t = new java.lang.Exception ( "snafu" ) ; java.lang.String detail = org.ovirt.engine.api.restapi.resource.AbstractBackendResource.detail ( t ) ; org.junit.Assert.assertEquals ( t.getMessage ( ) , detail ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionCreate ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String remoteUserName , java.lang.Boolean force ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStatus ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String userName ) ;
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.get ( existingVdsGroup.getId ( ) ) ; assertCorrectVDSGroup ( result ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.Cluster result = dao.get ( existingCluster.getId ( ) ) ; assertCorrectCluster ( result ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult isConnectionExists ( ) { if ( ( connection ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult isConnectionExists ( ) { if ( ( connection ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
private boolean hasDifferentOSType ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . isWindowsOsType ( vm.getVmOsId ( ) ) ) != ( ( vm.getGuestOsType ( ) ) == ( org.ovirt.engine.core.common.businessentities.OsType.Windows ) ) ; }

Target:
private static com.google.gwt.safehtml.shared.SafeHtml getAlertImageResource ( org.ovirt.engine.core.common.businessentities.VM vm ) { com.google.gwt.resources.client.ImageResource alertImageResource = org.ovirt.engine.ui.webadmin.widget.table.cell.VmStatusCell.resources.alertImage ( ) ; com.google.gwt.user.client.ui.AbstractImagePrototype imagePrototype = com.google.gwt.user.client.ui.AbstractImagePrototype.create ( alertImageResource ) ; java.lang.String html = imagePrototype.getHTML ( ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromTrustedString ( html ) ; }
Source:
public void hasNoStorageDomains ( ) { org.mockito.Mockito.when ( sdDao.getAllForStoragePool ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( java.util.Collections.emptyList ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }

Target:
public void hasNoStorageDomains ( ) { org.mockito.Mockito.when ( sdDao.getAllForStoragePool ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( java.util.Collections.emptyList ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
protected final org.ovirt.engine.core.common.businessentities.DbUser initUser ( ) { return org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . getUser ( parameters.getSessionId ( ) , parameters.getRefresh ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.DbUser initUser ( ) { return org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . getUser ( engineContext.getSessionId ( ) , parameters.getRefresh ( ) ) ; }
Source:
protected void CancelConfirm ( ) { setConfirmWindow ( null ) ; }

Target:
protected void cancelConfirm ( ) { setConfirmWindow ( null ) ; }
Source:
protected void entityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . entityPropertyChanged ( sender , e ) ; if ( e.PropertyName.equals ( "status" ) ) { UpdateActionAvailability ( ) ; } }

Target:
protected void entityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . entityPropertyChanged ( sender , e ) ; if ( e.PropertyName.equals ( "status" ) ) { updateActionAvailability ( ) ; } }
Source:
protected void ProcessOldImageFromDb ( ) { updateOldImageActive ( SnapshotType.PREVIEW , false ) ; }

Target:
protected void processOldImageFromDb ( ) { updateOldImageActive ( SnapshotType.PREVIEW , false ) ; }
Source:
public org.ovirt.engine.api.model.WatchDog addParents ( org.ovirt.engine.api.model.WatchDog device ) { device.setTemplate ( new org.ovirt.engine.api.model.Template ( ) ) ; device.getTemplate ( ) . setId ( parentId.toString ( ) ) ; return device ; }

Target:
public org.ovirt.engine.api.model.WatchDog addParents ( org.ovirt.engine.api.model.WatchDog device ) { device.setTemplate ( new org.ovirt.engine.api.model.Template ( ) ) ; device.getTemplate ( ) . setId ( templateId.toString ( ) ) ; return device ; }
Source:
private org.ovirt.engine.api.restapi.resource.BackendDeviceResource < org.ovirt.engine.api.model.WatchDog , org.ovirt.engine.api.model.WatchDogs , org.ovirt.engine.core.common.businessentities.VmWatchdog > getResource ( org.ovirt.engine.core.compat.Guid guid ) { return new org.ovirt.engine.api.restapi.resource.BackendWatchdogResource ( guid , org.ovirt.engine.api.restapi.resource.BackendWatchdogResourceTest.getCollection ( ) , org.ovirt.engine.core.common.action.VdcActionType.UpdateWatchdog , null , new java.lang.String [ ] { } ) ; }

Target:
private static org.ovirt.engine.api.restapi.resource.BackendDeviceResource < org.ovirt.engine.api.model.WatchDog , org.ovirt.engine.api.model.WatchDogs , org.ovirt.engine.core.common.businessentities.VmWatchdog > getResource ( ) { return new org.ovirt.engine.api.restapi.resource.BackendWatchdogResource ( true , org.ovirt.engine.api.restapi.resource.BackendWatchdogResourceTest.VM_ID , org.ovirt.engine.api.restapi.resource.BackendWatchdogResourceTest.WATCHDOG_ID , org.ovirt.engine.api.restapi.resource.BackendWatchdogResourceTest.getCollection ( ) , org.ovirt.engine.core.common.action.VdcActionType.UpdateWatchdog , org.ovirt.engine.api.restapi.resource.BackendWatchdogResourceTest.getUpdateParams ( ) , new java.lang.String [ ] { "action" , "model" } ) ; }
Source:
public boolean match ( T entry ) { return object.equals ( entry ) ; }

Target:
public static < T > T retrieveFromSet ( java.util.Set < T > set , final T object ) { return org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( set , new org.ovirt.engine.ui.uicommonweb.Linq.EqualsPredicate ( object ) ) ; }
Source:
public boolean canVmsBePaused ( java.util.List < org.ovirt.engine.core.common.businessentities.VM > items ) { for ( org.ovirt.engine.core.common.businessentities.VM vm : items ) { if ( ! ( isSuspendSupportedByArchitecture ( vm.getClusterArch ( ) , vm.getVdsGroupCompatibilityVersion ( ) ) ) ) { return false ; } } return true ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { memoryHotUnplugSupport = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }
Source:
public void testMulKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtils.string2Map ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtilsTest.MUL_KEY_VAL ) ; org.junit.Assert.assertEquals ( 4 , map.size ( ) ) ; }

Target:
public void testMulKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.utils.StringMapUtils.string2Map ( org.ovirt.engine.core.utils.StringMapUtilsTest.MUL_KEY_VAL ) ; org.junit.Assert.assertEquals ( 4 , map.size ( ) ) ; }
Source:
public java.lang.String getCpuId ( java.lang.String name , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler._managersDictionary.get ( ver ) ; if ( cpuFlagsManager != null ) { return cpuFlagsManager.getVDSVerbDataByCpuName ( name ) ; } return null ; }

Target:
public java.lang.String getCpuId ( java.lang.String name , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler.managersDictionary.get ( ver ) ; return cpuFlagsManager != null ? cpuFlagsManager.getVDSVerbDataByCpuName ( name ) : null ; }
Source:
protected final < T > javax.ws.rs.core.Response performCreate ( org.ovirt.engine.core.common.action.ActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase taskParams , org.ovirt.engine.api.restapi.resource.IResolver < T , Q > entityResolver , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParentType ) { return performCreate ( task , taskParams , entityResolver , expectBlocking ( ) , suggestedParentType ) ; }

Target:
protected final < T > javax.ws.rs.core.Response performCreate ( org.ovirt.engine.core.common.action.ActionType task , org.ovirt.engine.core.common.action.ActionParametersBase taskParams , org.ovirt.engine.api.restapi.resource.IResolver < T , Q > entityResolver , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParentType ) { return performCreate ( task , taskParams , entityResolver , expectBlocking ( ) , suggestedParentType ) ; }
Source:
public void setupMocks ( ) { org.mockito.MockitoAnnotations.initMocks ( this ) ; mockGlobalParameters ( ) ; setUpCommand ( ) ; mockVds ( ) ; mockDbDAO ( ) ; command.postConstruct ( ) ; }

Target:
public void setupMocks ( ) { org.mockito.MockitoAnnotations.initMocks ( this ) ; mockGlobalParameters ( ) ; setUpCommand ( ) ; mockVds ( ) ; mockDbDao ( ) ; command.postConstruct ( ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 5 , result.size ( ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 6 , result.size ( ) ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.memory.HibernationVolumesRemover hibernationVolumesRemover = new org.ovirt.engine.core.bll.memory.HibernationVolumesRemover ( org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.getParameters ( ) . getMemoryVolumes ( ) , org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.getParameters ( ) . getVmId ( ) , this ) ; setSucceeded ( hibernationVolumesRemover.remove ( ) ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.memory.MemoryImageRemoverOnDataDomain memoryImageRemover = new org.ovirt.engine.core.bll.memory.MemoryImageRemoverOnDataDomain ( org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.getParameters ( ) . getVmId ( ) , this ) ; setSucceeded ( memoryImageRemover.remove ( java.util.Collections.singleton ( org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.getParameters ( ) . getMemoryVolumes ( ) ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) throws org.ovirt.engine.core.common.errors.EngineException { return getBackend ( ) . getResourceManager ( ) . RunVdsCommand ( commandType , parameters ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) throws org.ovirt.engine.core.common.errors.EngineException { return getVdsBroker ( ) . RunVdsCommand ( commandType , parameters ) ; }
Source:
public void testGetByNameWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic result = dao.get ( "farkle" ) ; assertNull ( result ) ; }

Target:
public void testGetByNameWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic result = dao.get ( "farkle" ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public static java.lang.String getMessage ( org.ovirt.engine.core.common.AuditLogType logType ) { final java.lang.String result = org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.getMessageOrNull ( logType ) ; return result == null ? "" : result ; }

Target:
public static java.lang.String getMessage ( org.ovirt.engine.core.common.AuditLogType logType ) { return org.apache.commons.lang.StringUtils.defaultString ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.getMessageOrNull ( logType ) ) ; }
Source:
public void vlanIdTakenByDifferentNetwork ( ) throws java.lang.Exception { vlanIdAvailableTest ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_VLAN_IN_USE ) , getSingletonVlanNetworkList ( DEFAULT_VLAN_ID , OTHER_GUID ) ) ; }

Target:
public void vlanIdTakenByDifferentNetwork ( ) throws java.lang.Exception { vlanIdAvailableTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_VLAN_IN_USE ) , getSingletonVlanNetworkList ( DEFAULT_VLAN_ID , OTHER_GUID ) ) ; }
Source:
protected boolean isDataCenterWithSpm ( ) { return isDataCenterWithSpm ( org.ovirt.engine.core.bll.storage.disk.image.BaseImagesCommand.getStoragePool ( ) ) ; }

Target:
protected boolean isDataOperationsBySpm ( ) { return isDataOperationsBySpm ( org.ovirt.engine.core.bll.storage.disk.image.BaseImagesCommand.getStoragePool ( ) ) ; }
Source:
public boolean isSetVcpuPin ( ) { return ( ( this . vcpuPin ) != null ) && ( ! ( this . vcpuPin.isEmpty ( ) ) ) ; }

Target:
public boolean isSetVCpuPin ( ) { return ( ( this . vCpuPin ) != null ) && ( ! ( this . vCpuPin.isEmpty ( ) ) ) ; }
Source:
private void validateValidResult ( org.ovirt.engine.core.bll.ValidationResult validationResult ) { validateResult ( validationResult , true , null ) ; }

Target:
private static void validateInvalidResult ( org.ovirt.engine.core.bll.ValidationResult validationResult , org.ovirt.engine.core.dal.VdcBllMessages message ) { org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateResult ( validationResult , false , message ) ; }
Source:
private void writeTypeRef ( org.ovirt.api.metamodel.concepts.Type type ) { writeStartElement ( "type" ) ; writeCharacters ( getTypeRef ( type ) ) ; writeEndElement ( ) ; }

Target:
private void writeTypeRef ( org.ovirt.api.metamodel.concepts.Type type ) { writer.writeElement ( "type" , getTypeRef ( type ) ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.String > event ) { com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , model ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , model ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml inputChecked ( java.lang.String id ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml inputChecked ( java.lang.String id , java.lang.String style ) ;
Source:
public void testCleanExpiredSessions ( ) { initDataForClearTest ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY ) ; container.cleanExpiredUsersSessions ( ) ; org.junit.Assert.assertNull ( "Get not find the session" , container.getData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }

Target:
public void testCleanExpiredSessions ( ) { initDataForClearTest ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_KEY ) ; container.cleanExpiredUsersSessions ( ) ; org.junit.Assert.assertNull ( "Get not find the session" , container.getData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_KEY , false ) ) ; }
Source:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.DeactivateStorageDomain , new org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase ( guid , dataCenterId ) , action ) ; }

Target:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.DeactivateStorageDomainWithOvfUpdate , new org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase ( guid , dataCenterId ) , action ) ; }
Source:
public void init ( org.ovirt.engine.core.common.businessentities.VDS vds ) { mCurrentVdsId = vds.getId ( ) ; setmIrsPort ( vds.getPort ( ) ) ; privatemCurrentIrsHost = vds.getHostName ( ) ; }

Target:
public void init ( org.ovirt.engine.core.common.businessentities.VDS vds ) { mCurrentVdsId = vds.getId ( ) ; setmIrsPort ( vds.getPort ( ) ) ; privatemCurrentIrsHost = vds.getHostName ( ) ; setProtocol ( vds.getProtocol ( ) ) ; }
Source:
public org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < java.lang.Void , org.ovirt.engine.ui.uicommonweb.models.reports.ReportsListModel > getDashboardReportsListProvider ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.uicommon.model.MainTabModelProvider < java.lang.Void , org.ovirt.engine.ui.uicommonweb.models.reports.ReportsListModel > ( ginjector , org.ovirt.engine.ui.uicommonweb.models.reports.ReportsListModel.class ) ; }

Target:
public org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < java.lang.Void , org.ovirt.engine.ui.uicommonweb.models.reports.ReportsListModel > getDashboardReportsListProvider ( com.google.gwt.event.shared.EventBus eventBus , com.google.inject.Provider < org.ovirt.engine.ui.common.presenter.popup.DefaultConfirmationPopupPresenterWidget > defaultConfirmPopupProvider ) { return new org.ovirt.engine.ui.common.uicommon.model.MainTabModelProvider < java.lang.Void , org.ovirt.engine.ui.uicommonweb.models.reports.ReportsListModel > ( eventBus , defaultConfirmPopupProvider , org.ovirt.engine.ui.uicommonweb.models.reports.ReportsListModel.class ) ; }
Source:
protected boolean addMacToPool ( java.lang.String macAddress ) { if ( org.ovirt.engine.core.bll.network.MacPoolManager.getInstance ( ) . addMac ( macAddress ) ) { return true ; } else { throw new org.ovirt.engine.core.common.errors.VdcBLLException ( org.ovirt.engine.core.common.errors.VdcBllErrors.MAC_ADDRESS_IS_IN_USE ) ; } }

Target:
protected boolean addMacToPool ( java.lang.String macAddress ) { if ( org.ovirt.engine.core.bll.network.vm.AbstractVmInterfaceCommand.getMacPool ( ) . addMac ( macAddress ) ) { return true ; } else { throw new org.ovirt.engine.core.common.errors.VdcBLLException ( org.ovirt.engine.core.common.errors.VdcBllErrors.MAC_ADDRESS_IS_IN_USE ) ; } }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.dao.VmDeviceDAO dao = org.ovirt.engine.core.bll.IsBalloonEnabledQuery.getDbFacade ( ) . getVmDeviceDao ( ) ; org.ovirt.engine.core.bll.IsBalloonEnabledQuery.getQueryReturnValue ( ) . setReturnValue ( dao.isMemBalloonEnabled ( org.ovirt.engine.core.bll.IsBalloonEnabledQuery.getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.dao.VmDeviceDao dao = org.ovirt.engine.core.bll.IsBalloonEnabledQuery.getDbFacade ( ) . getVmDeviceDao ( ) ; org.ovirt.engine.core.bll.IsBalloonEnabledQuery.getQueryReturnValue ( ) . setReturnValue ( dao.isMemBalloonEnabled ( org.ovirt.engine.core.bll.IsBalloonEnabledQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmPauseStatus getVmPauseStatus ( ) { return this . mVmDynamic.getPauseStatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmPauseStatus getVmPauseStatus ( ) { return this . vmDynamic.getPauseStatus ( ) ; }
Source:
public void endWithFailure ( ) { getReturnValue ( ) . setSucceeded ( true ) ; }

Target:
public void endWithFailure ( ) { getEnclosingCommand ( ) . getParameters ( ) . setTaskGroupSuccess ( false ) ; getReturnValue ( ) . setSucceeded ( true ) ; }
Source:
public int hashCode ( ) { final int prime = 31 ; int result = super . hashCode ( ) ; return ( prime * result ) + ( ( sessionId ) == null ? 0 : sessionId.hashCode ( ) ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , sessionId ) ; }
Source:
public org.ovirt.engine.core.dal.VdcBllMessages validate ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.StringBuilder sb ) { if ( ! ( org.ovirt.engine.core.bll.VdsSelector.isVMSwapValueLegal ( vds ) ) ) { sb.append ( "swap value is illegal" ) ; return org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VDS_VM_SWAP ; } return null ; }

Target:
public org.ovirt.engine.core.dal.VdcBllMessages validate ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.StringBuilder sb , boolean isMigrate ) { if ( ! ( org.ovirt.engine.core.bll.VdsSelector.isVMSwapValueLegal ( vds ) ) ) { sb.append ( "swap value is illegal" ) ; return org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VDS_VM_SWAP ; } return null ; }
Source:
public org.ovirt.engine.core.common.businessentities.StoragePool getStoragePool ( ) { if ( ( cachedStoragePool ) == null ) { cachedStoragePool = getStoragePoolDAO ( ) . get ( params.getStoragePoolId ( ) ) ; } return cachedStoragePool ; }

Target:
public org.ovirt.engine.core.common.businessentities.StoragePool getStoragePool ( ) { if ( ( cachedStoragePool ) == null ) { cachedStoragePool = getStoragePoolDao ( ) . get ( params.getStoragePoolId ( ) ) ; } return cachedStoragePool ; }
Source:
private java.util.List < org.ovirt.engine.core.common.job.Step > getSteps ( ) { java.util.List < org.ovirt.engine.core.common.job.Step > steps = new java.util.ArrayList < > ( ) ; steps.add ( createStep ( ) ) ; return steps ; }

Target:
private java.util.List < org.ovirt.engine.core.common.job.Step > getSteps ( org.ovirt.engine.core.compat.Guid taskGuid ) { java.util.List < org.ovirt.engine.core.common.job.Step > steps = new java.util.ArrayList < > ( ) ; steps.add ( createStep ( taskGuid ) ) ; return steps ; }
Source:
public void sethost_name ( java.lang.String value ) { this . mVdsStatic.sethost_name ( value ) ; }

Target:
public java.lang.String getHostName ( ) { return this . mVdsStatic.getHostName ( ) ; }
Source:
public void setUsageMemPercent ( java.lang.Integer value ) { this . usage_mem_percentField = value ; }

Target:
public void setUsageCpuPercent ( java.lang.Integer usageCpuPercent ) { this . usageCpuPercent = usageCpuPercent ; }
Source:
public M getModel ( ) { M model = modelProvider.get ( ) ; if ( ! ( model.isInitialized ( ) ) ) { model.initialize ( ) ; initializeModelHandlers ( model ) ; } return model ; }

Target:
public M getModel ( ) { M model = modelProvider.get ( ) ; if ( ! ( modelInitialized ) ) { modelInitialized = true ; initializeModelHandlers ( model ) ; } return model ; }
Source:
protected com.google.gwt.user.client.ui.DisclosurePanel createPanel ( java.lang.String label ) { return new com.google.gwt.user.client.ui.DisclosurePanel ( resources.decreaseIcon ( ) , resources.increaseIcon ( ) , label ) ; }

Target:
protected com.google.gwt.user.client.ui.DisclosurePanel createPanel ( java.lang.String label ) { return new com.google.gwt.user.client.ui.DisclosurePanel ( org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmRunOncePopupWidget.resources.decreaseIcon ( ) , org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmRunOncePopupWidget.resources.increaseIcon ( ) , label ) ; }
Source:
public void onClick ( com.google.gwt.dom.client.NativeEvent event , org.ovirt.engine.core.common.businessentities.VmDevice vmDevice ) { getModelProvider ( ) . getModel ( ) . onHotUnplug ( vmDevice ) ; }

Target:
public void onClick ( com.google.gwt.dom.client.NativeEvent event , org.ovirt.engine.ui.uicommonweb.models.vms.VmDeviceFeEntity vmDevice ) { getModelProvider ( ) . getModel ( ) . onHotUnplug ( vmDevice ) ; }
Source:
private boolean validateAttachment ( ) { final org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator attachNetworkClusterValidator = createNetworkClusterValidator ( ) ; return ( validate ( attachNetworkClusterValidator.networkBelongsToClusterDataCenter ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getVdsGroup ( ) , org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getPersistedNetwork ( ) ) ) ) && ( validateAttachment ( attachNetworkClusterValidator ) ) ; }

Target:
private boolean validateAttachment ( ) { final org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator attachNetworkClusterValidator = createNetworkClusterValidator ( ) ; return ( validate ( attachNetworkClusterValidator.networkBelongsToClusterDataCenter ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getCluster ( ) , org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getPersistedNetwork ( ) ) ) ) && ( validateAttachment ( attachNetworkClusterValidator ) ) ; }
Source:
public java.lang.String toString ( ) { java.lang.String user = java.lang.String.format ( "%s@%s" , org.apache.commons.lang.StringUtils.defaultIfEmpty ( username , "" ) , org.apache.commons.lang.StringUtils.defaultIfEmpty ( profile , "" ) ) ; return "@" . equals ( user ) ? "" : " for user " + user ; }

Target:
public java.lang.String getUsernameWithProfile ( ) { java.lang.String user = java.lang.String.format ( "%s@%s" , java.util.Objects.toString ( username , "" ) , java.util.Objects.toString ( profile , "" ) ) ; return "@" . equals ( user ) ? "N/A" : user ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.QueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , org.ovirt.engine.core.bll.context.EngineContext engineContext ) { return runQueryImpl ( actionType , parameters , false , engineContext ) ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.QueryType actionType , org.ovirt.engine.core.common.queries.QueryParametersBase parameters , org.ovirt.engine.core.bll.context.EngineContext engineContext ) { return runQueryImpl ( actionType , parameters , false , engineContext ) ; }
Source:
public void canRemoveNodesWithVmFromParams ( ) { vm.setvNumaNodeList ( existingNumaNodes ) ; final org.ovirt.engine.core.bll.numa.vm.RemoveVmNumaNodesCommand command = mockedCommandWithVmFromParams ( ) ; command.executeCommand ( ) ; org.mockito.Mockito.verify ( vmNumaNodeDao ) . massRemoveNumaNodeByNumaNodeId ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.numa.vm.RemoveVmNumaNodesCommandTest.NODE_ID_1 , org.ovirt.engine.core.bll.numa.vm.RemoveVmNumaNodesCommandTest.NODE_ID_2 ) ) ; }

Target:
public void canRemoveNodesWithVmFromParams ( ) { vm.setvNumaNodeList ( existingNumaNodes ) ; final org.ovirt.engine.core.bll.numa.vm.RemoveVmNumaNodesCommand command = mockedCommandWithVmFromParams ( ) ; command.executeCommand ( ) ; org.mockito.Mockito.verify ( vmNumaNodeDao ) . massRemoveNumaNodeByNumaNodeId ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.numa.vm.RemoveVmNumaNodesCommandTest.NODE_ID_0 , org.ovirt.engine.core.bll.numa.vm.RemoveVmNumaNodesCommandTest.NODE_ID_1 ) ) ; }
Source:
private void OnMove ( ) { OnMoveOrCopy ( ImageOperation.Move ) ; }

Target:
private void OnCopy ( ) { OnMoveOrCopy ( ) ; }
Source:
public void networkPrefixBond ( ) throws java.lang.Exception { networkPrefixValidTest ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_CANNOT_CONTAIN_BOND_NAME ) , "bond0" ) ; }

Target:
public void networkPrefixBond ( ) throws java.lang.Exception { networkPrefixValidTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_CANNOT_CONTAIN_BOND_NAME ) , "bond0" ) ; }
Source:
public void canDoActionSucceeds ( ) { cmd = createTestCommand ( startedVolumeId ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( startedVolumeId , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
private void initHandlers ( ) { org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.tagsHandler = tagsDirector ; serviceLoader.load ( org.ovirt.engine.core.bll.VmHandler.class ) ; serviceLoader.load ( org.ovirt.engine.core.bll.VdsHandler.class ) ; org.ovirt.engine.core.bll.VmTemplateHandler.init ( ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }

Target:
private void initHandlers ( ) { org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.tagsHandler = tagsDirector ; serviceLoader.load ( org.ovirt.engine.core.bll.VmHandler.class ) ; serviceLoader.load ( org.ovirt.engine.core.bll.VdsHandler.class ) ; serviceLoader.load ( org.ovirt.engine.core.bll.VmTemplateHandler.class ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }
Source:
public void create ( ) { org.ovirt.engine.core.bll.Backend.checkDBConnectivity ( ) ; Initialize ( ) ; }

Target:
public void create ( ) { org.ovirt.engine.core.bll.Backend.checkDBConnectivity ( ) ; initialize ( ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetPolicyNotSetUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.DISABLED ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }