auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static void addPermission ( org.ovirt.engine.core.common.businessentities.Permission ... permissions ) { for ( org.ovirt.engine.core.common.businessentities.Permission perms : permissions ) { org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.getPermissionDAO ( ) . save ( perms ) ; } }

Target:
public static void addPermission ( org.ovirt.engine.core.common.businessentities.Permission ... permissions ) { for ( org.ovirt.engine.core.common.businessentities.Permission perms : permissions ) { org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.getPermissionDao ( ) . save ( perms ) ; } }
Source:
public void lowerVersionMgmtNetworkNonSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworkToPool ( ) ; setupNetworkValidator ( false ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionMgmtNetworkNonSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( false ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public void testDataCenterLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.DataCenter dataCenter = new org.ovirt.engine.api.model.DataCenter ( ) ; dataCenter.setId ( org.ovirt.engine.api.common.util.LinkHelperTest.DATA_CENTER_ID ) ; org.ovirt.engine.api.common.util.LinkHelper.addLinks ( setUpUriExpectations ( ) , dataCenter ) ; assertEquals ( org.ovirt.engine.api.common.util.LinkHelperTest.DATA_CENTER_HREF , dataCenter.getHref ( ) ) ; }

Target:
public void testDataCenterLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.DataCenter dataCenter = new org.ovirt.engine.api.model.DataCenter ( ) ; dataCenter.setId ( org.ovirt.engine.api.common.util.LinkHelperTest.DATA_CENTER_ID ) ; org.ovirt.engine.api.utils.LinkHelper.addLinks ( setUpUriExpectations ( ) , dataCenter ) ; assertEquals ( org.ovirt.engine.api.common.util.LinkHelperTest.DATA_CENTER_HREF , dataCenter.getHref ( ) ) ; }
Source:
public void testGetVmDeviceByVmIdTypeAndDeviceFilteringWithPermissionsNoFiltering ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices = dao.getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.dao.VmDeviceDAOTest.EXISTING_VM_ID , "disk" , "disk" , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , false ) ; org.ovirt.engine.core.dao.VmDeviceDAOTest.assertGetVMDeviceByIdTypeAndDeviceFullResult ( devices ) ; }

Target:
public void testGetVmDeviceByVmIdTypeAndDeviceFilteringWithPermissionsNoFiltering ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices = dao.getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.dao.VmDeviceDAOTest.EXISTING_VM_ID , VmDeviceGeneralType.DISK , "disk" , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , false ) ; org.ovirt.engine.core.dao.VmDeviceDAOTest.assertGetVMDeviceByIdTypeAndDeviceFullResult ( devices ) ; }
Source:
public void getUsbTypeEnabledNative ( ) { org.ovirt.engine.core.common.businessentities.UsbPolicy usbPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; assert org.ovirt.engine.api.restapi.utils.UsbMapperUtils.getUsbType ( usbPolicy ) . equals ( UsbType.NATIVE ) ; }

Target:
public void getUsbTypeEnabledNative ( ) { org.ovirt.engine.core.common.businessentities.UsbPolicy usbPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.utils.UsbMapperUtils.getUsbType ( usbPolicy ) , UsbType.NATIVE ) ; }
Source:
protected org.ovirt.engine.core.dao.network.HostNetworkQosDao getQosDao ( ) { return getDbFacade ( ) . getHostNetworkQosDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.network.HostNetworkQosDao getQosDao ( ) { return dbFacade.getHostNetworkQosDao ( ) ; }
Source:
public void setComment ( java.lang.String value ) { comment = value ; }

Target:
public void setComment ( java.lang.String value ) { comment = ( value == null ) ? "" : value ; }
Source:
public void testReturnsV4WhenGivenValidV4Address ( ) { org.ovirt.engine.api.model.Ip ip = new org.ovirt.engine.api.model.Ip ( ) ; ip.setAddress ( "127.0.0.1" ) ; org.ovirt.engine.api.model.IpVersion version = org.ovirt.engine.api.restapi.types.IpHelper.getVersion ( ip ) ; org.junit.Assert.assertEquals ( IpVersion.V4 , version ) ; }

Target:
public void testReturnsV4WhenGivenValidV4Address ( ) { org.ovirt.engine.api.model.Ip ip = new org.ovirt.engine.api.model.Ip ( ) ; ip.setAddress ( "127.0.0.1" ) ; org.ovirt.engine.api.model.IpVersion version = org.ovirt.engine.api.restapi.types.IpHelper.getVersion ( ip ) ; org.junit.jupiter.api.Assertions.assertEquals ( IpVersion.V4 , version ) ; }
Source:
public void shouldDetectZeroHostNodes ( ) { vdsNumaNodes.clear ( ) ; assertValidationFailure ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.VM_NUMA_PINNED_VDS_NODE_EMPTY ) ; }

Target:
public void shouldDetectZeroHostNodes ( ) { vdsNumaNodes.clear ( ) ; assertValidationFailure ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.VM_NUMA_PINNED_VDS_NODE_EMPTY ) ; }
Source:
public void tearDown ( ) { org.powermock.api.easymock.PowerMock.verifyAll ( ) ; }

Target:
public void tearDown ( ) { org.powermock.api.easymock.PowerMock.verifyAll ( ) ; org.ovirt.engine.api.common.invocation.CurrentManager.remove ( ) ; }
Source:
java.util.Map < java.lang.String , java.lang.String > allocate ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.common.businessentities.network.VnicProfile vnicProfile , org.ovirt.engine.core.common.businessentities.network.VmNic nic , org.ovirt.engine.core.common.businessentities.VDS host ) ;

Target:
java.util.Map < java.lang.String , java.lang.String > allocate ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.common.businessentities.network.VnicProfile vnicProfile , org.ovirt.engine.core.common.businessentities.network.VmNic nic , org.ovirt.engine.core.common.businessentities.VDS host , boolean ignoreSecurityGroups ) ;
Source:
public java.lang.Object put ( java.lang.Object key , java.lang.Object value ) { if ( containsKey ( key ) ) { throw new java.lang.RuntimeException ( ( ( "The key " + key ) + " already exists" ) ) ; } return super . put ( key , value ) ; }

Target:
public java.lang.Object put ( java.lang.Object key , java.lang.Object value ) { if ( containsKey ( key ) ) { throw new org.ovirt.engine.core.utils.DuplicatePropertyException ( ( ( "The key " + key ) + " already exists" ) ) ; } return super . put ( key , value ) ; }
Source:
public java.util.ArrayList < java.lang.String > getChangeablePropertiesList ( ) { return null ; }

Target:
public boolean isUseHostCpuFlags ( ) { return useHostCpuFlags ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetPolicyNotSetUsb ( ) { 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.ENABLED_NATIVE ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy , null ) , currentPolicy ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }
Source:
public java.util.List < org.ovirt.engine.core.compat.Guid > getMonitoredTaskIDsInDB ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStepDao ( ) . getExternalIdsForRunningSteps ( ExternalSystemType.GLUSTER ) ; }

Target:
public java.util.List < org.ovirt.engine.core.compat.Guid > getMonitoredTaskIDsInDB ( ) { return stepDao.getExternalIdsForRunningSteps ( ExternalSystemType.GLUSTER ) ; }
Source:
protected void endMoveOrCopyCommand ( ) { endActionOnAllImageGroups ( ) ; endVmTemplateRelatedOps ( ) ; org.ovirt.engine.core.bll.storage.export.MoveOrCopyTemplateCommand.setSucceeded ( true ) ; }

Target:
protected void endMoveOrCopyCommand ( ) { endActionOnAllImageGroups ( ) ; endVmTemplateRelatedOps ( ) ; org.ovirt.engine.core.bll.exportimport.MoveOrCopyTemplateCommand.setSucceeded ( true ) ; }
Source:
public void setvds_group_compatibility_version ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( getvds_group_compatibility_version ( ) , value ) ) { this . vds_group_compatibility_versionField = value ; } }

Target:
public void setVdsGroupCpuName ( java.lang.String value ) { this . vdsGroupCpuName = value ; }
Source:
public void vdsIdDefault ( ) { final org.ovirt.engine.core.compat.Guid g = b.getVdsId ( ) ; org.junit.Assert.assertEquals ( Guid.Empty , g ) ; }

Target:
public void vdsIdDefault ( ) { final org.ovirt.engine.core.compat.Guid g = b.getVdsId ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( Guid.Empty , g ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel vmModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ; vmModel.set_MinMemSize ( ( ( java.lang.Integer ) ( returnValue ) ) ) ; }

Target:
public void setRngPeriod ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.NotChangableForVmInPoolEntityModel < java.lang.Integer > rngPeriod ) { this . rngPeriod = rngPeriod ; }
Source:
protected javax.ws.rs.core.UriInfo setUpRestoreExpectations ( ) { return setUpActionExpectations ( VdcActionType.RestoreAllSnapshots , org.ovirt.engine.core.common.action.RestoreAllSnapshotsParameters.class , new java.lang.String [ ] { "VmId" , "DstSnapshotId" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendSnapshotResourceTest.VM_ID , org.ovirt.engine.api.restapi.resource.BackendSnapshotResourceTest.SNAPSHOT_ID } , true , true , null , false ) ; }

Target:
protected javax.ws.rs.core.UriInfo setUpRestoreExpectations ( ) { return setUpActionExpectations ( VdcActionType.RestoreAllSnapshots , org.ovirt.engine.core.common.action.RestoreAllSnapshotsParameters.class , new java.lang.String [ ] { "VmId" , "SnapshotAction" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendSnapshotResourceTest.VM_ID , org.ovirt.engine.core.common.businessentities.SnapshotActionEnum.COMMIT } , true , true , null , false ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel asUserPortalItem ( org.ovirt.engine.ui.uicommonweb.models.userportal.IUserPortalListModel model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel ) ( model.getSelectedItem ( ) ) ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel asUserPortalItem ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalConsolePopupModel model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel ) ( model.getModel ( ) . getSelectedItem ( ) ) ) ; }
Source:
protected void setDiskAttributes ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage , com.woorea.openstack.glance.model.Image glanceImage ) { setImageVirtualSize ( diskImage , glanceImage ) ; diskImage.setActualSizeInBytes ( glanceImage.getSize ( ) ) ; }

Target:
protected void setDiskAttributes ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage , com.woorea.openstack.glance.model.Image glanceImage ) { setImageVirtualSizeAndCompat ( diskImage , glanceImage ) ; diskImage.setActualSizeInBytes ( glanceImage.getSize ( ) ) ; }
Source:
private boolean isIsoFileValid ( java.lang.String isoFile ) { return ( org.apache.commons.lang.StringUtils.isNotBlank ( isoFile ) ) && ( org.ovirt.engine.core.utils.FileUtil.fileExists ( org.ovirt.engine.core.compat.backendcompat.Path.Combine ( org.ovirt.engine.core.common.config.Config.resolveOVirtISOsRepositoryPath ( ) , isoFile ) ) ) ; }

Target:
private boolean isIsoFileValid ( java.lang.String isoFile ) { return ( org.apache.commons.lang.StringUtils.isNotBlank ( isoFile ) ) && ( org.ovirt.engine.core.utils.FileUtil.fileExists ( ( ( ( org.ovirt.engine.core.common.config.Config.resolveOVirtISOsRepositoryPath ( ) ) + ( java.io.File.separator ) ) + isoFile ) ) ) ; }
Source:
public void setDomain ( java.lang.String value ) { domain = value ; }

Target:
public void setDomain ( java.lang.String value ) { domain = ( value == null ) ? "" : value ; }
Source:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterHooksResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity.class ) , index ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterHooksResourceTest.setUpEntityExpectations ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity.class ) , index ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ExternalComputeResource > ( ) ; } return source ; }

Target:
public java.util.Map < K , V > convert ( java.lang.Object source ) { return source != null ? ( ( java.util.Map < K , V > ) ( source ) ) : new java.util.HashMap < K , V > ( ) ; }
Source:
public void validateSucceedsOnVolumeWithRemoveBricksTask ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.CommitRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithRemoveBricksTask , getBricks ( volumeWithRemoveBricksTask ) ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
private void setVolume ( org.ovirt.engine.core.compat.Guid volumeId ) { cmd.setGlusterVolumeId ( volumeId ) ; cmd.getParameters ( ) . setBricks ( getBricks ( volumeId ) ) ; }
Source:
protected org.ovirt.engine.core.bll.SPMAsyncTask ConcreteCreateTask ( @ java.lang.SuppressWarnings ( value = "unused" ) org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , @ java.lang.SuppressWarnings ( value = "unused" ) org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { throw new org.ovirt.engine.core.compat.NotImplementedException ( ) ; }

Target:
protected org.ovirt.engine.core.bll.SPMAsyncTask ConcreteCreateTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public void testdefaultVersionedValue ( ) { org.junit.Assert.assertEquals ( 1024 , OsRepositoryImpl.INSTANCE.getMinimumRam ( 888 , Version.v4_0 ) ) ; }

Target:
public void testdefaultVersionedValue ( ) { org.junit.jupiter.api.Assertions.assertEquals ( 1024 , OsRepositoryImpl.INSTANCE.getMinimumRam ( 888 , Version.v4_0 ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.vnicProfilePermissionSubTabLabel ( ) , 2 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.profile.SubTabVnicProfilePermissionPresenter.constants.vnicProfilePermissionSubTabLabel ( ) , 2 , modelProvider ) ; }
Source:
private java.lang.Integer getApplicationMode ( javax.servlet.http.HttpServletRequest request ) { return ( ( java.lang.Integer ) ( runPublicQuery ( VdcQueryType.GetConfigurationValue , new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.ApplicationMode , org.ovirt.engine.core.common.config.Config.DefaultConfigurationVersion ) , request ) ) ) ; }

Target:
private java.lang.Integer getApplicationMode ( javax.servlet.http.HttpServletRequest request ) { return ( ( java.lang.Integer ) ( runPublicQuery ( VdcQueryType.GetConfigurationValue , new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.ApplicationMode , org.ovirt.engine.core.common.config.ConfigCommon.defaultConfigurationVersion ) , request ) ) ) ; }
Source:
boolean scheduleNextTimeToRun ( java.util.Date timeToRunTheVm ) { this . timeToRunTheVm = timeToRunTheVm ; return ( ++ ( numOfRuns ) ) < ( org.ovirt.engine.core.bll.AutoStartVmsRunner.AutoStartVmToRestart.MAXIMUM_NUM_OF_TRIES_TO_RESTART_HA_VM ) ; }

Target:
boolean scheduleNextTimeToRun ( java.util.Date timeToRunTheVm ) { this . timeToRunTheVm = timeToRunTheVm ; return ( ++ ( numOfRuns ) ) < ( org.ovirt.engine.core.bll.AutoStartVmsRunner.AutoStartVmToRestart.MAXIMUM_NUM_OF_TRIES_TO_AUTO_START_VM ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.DiskImage object ) { return ( java.lang.String.valueOf ( object.getSizeInGigabytes ( ) ) ) + " GB" ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { return ( java.lang.String.valueOf ( object.getSizeInGigabytes ( ) ) ) + " GB" ; }
Source:
public void testRemoveWithParam ( ) { container.setData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_VALUE ) ; container.removeSessionOnLogout ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID ) ; org.junit.Assert.assertNull ( "Get should return null since the session was removed" , container.getData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_KEY , false ) ) ; }

Target:
public void testRemoveWithParam ( ) { container.setData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_VALUE ) ; container.removeSessionOnLogout ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID ) ; org.junit.jupiter.api.Assertions.assertNull ( container.getData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_KEY , false ) , "Get should return null since the session was removed" ) ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; if ( ( getEntity ( ) ) == null ) { return ; } setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . Execute ( ) ; } UpdateActionAvailability ( ) ; UpdateIsDiskHotPlugAvailable ( ) ; }

Target:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . Execute ( ) ; UpdateIsDiskHotPlugAvailable ( ) ; UpdateLiveStorageMigrationEnabled ( ) ; } UpdateActionAvailability ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getId ( ) . toString ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getId ( ) . toString ( ) ; }
Source:
public void isNextRunConfigurationChanged ( org.ovirt.engine.core.common.businessentities.VM original , org.ovirt.engine.core.common.businessentities.VM updated , org.ovirt.engine.core.common.action.VmManagementParametersBase updateVmParameters , org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmUpdatesOnNextRunExists , new org.ovirt.engine.core.common.queries.GetVmUpdatesOnNextRunExistsParameters ( original , updated , updateVmParameters ) , aQuery ) ; }

Target:
public void getVmChangedFieldsForNextRun ( org.ovirt.engine.core.common.businessentities.VM original , org.ovirt.engine.core.common.businessentities.VM updated , org.ovirt.engine.core.common.action.VmManagementParametersBase updateVmParameters , org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmChangedFieldsForNextRun , new org.ovirt.engine.core.common.queries.GetVmChangedFieldsForNextRunParameters ( original , updated , updateVmParameters ) , aQuery ) ; }
Source:
private boolean isGlusterNetworkInUse ( ) { return ! ( getGlusterBrickDao ( ) . getAllByClusterAndNetworkId ( oldNetworkCluster.getClusterId ( ) , oldNetworkCluster.getNetworkId ( ) ) . isEmpty ( ) ) ; }

Target:
private boolean isGlusterNetworkInUse ( ) { return ! ( glusterBrickDao.getAllByClusterAndNetworkId ( oldNetworkCluster.getClusterId ( ) , oldNetworkCluster.getNetworkId ( ) ) . isEmpty ( ) ) ; }
Source:
public void hideAndUnbind ( ) { super . hideAndUnbind ( ) ; org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget.getView ( ) . cleanup ( ) ; if ( ( this . model ) != null ) { this . model.cleanup ( ) ; this . model = null ; } }

Target:
public void hideAndUnbind ( ) { super . hideAndUnbind ( ) ; model = null ; if ( ( org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget.getActivePopupCount ( ) ) == 0 ) { cleanupPopupResources ( ) ; } }
Source:
private void assertCorrectGetResult ( org.ovirt.engine.core.common.businessentities.VDS result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingVds , result ) ; }

Target:
private void assertCorrectGetResult ( org.ovirt.engine.core.common.businessentities.VDS result ) { org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( existingVds , result ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.ActivateVdsCommand.getParameters ( ) . getVdsId ( ) . toString ( ) , LockMessagesMatchUtil.VDS ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.ActivateVdsCommand.getParameters ( ) . getVdsId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VDS , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }
Source:
public void setLdapServers ( java.util.List < java.net.URI > ldapServersURIs ) { for ( java.net.URI uri : ldapServersURIs ) { ldapServers.put ( uri , new org.ovirt.engine.core.bll.adbroker.ScorableLDAPServer ( uri ) ) ; } }

Target:
public void setLdapServers ( java.util.List < java.net.URI > ldapServersURIs ) { lock.writeLock ( ) . lock ( ) ; try { this . ldapServers = ldapServersURIs ; } finally { lock.writeLock ( ) . unlock ( ) ; } }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : java.lang.Boolean.TRUE ; }

Target:
public void getAllowClusterWithVirtGlusterEnabled ( org.ovirt.engine.ui.frontend.AsyncQuery < java.lang.Boolean > aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.DefaultValueConverter < > ( java.lang.Boolean.TRUE ) ; getConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.AllowClusterWithVirtGlusterEnabled , getDefaultConfigurationVersion ( ) ) , aQuery ) ; }
Source:
protected void doGridTimerExecute ( ) { org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.logger.fine ( ( ( this . getClass ( ) . getName ( ) ) + ": Executing search" ) ) ; syncSearch ( ) ; }

Target:
public void execute ( ) { org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.logger.fine ( ( ( this . getClass ( ) . getName ( ) ) + ": Executing search" ) ) ; syncSearch ( ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTagUserMapByTagNameQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetTagUserMapByTagNameQuery.getDbFacade ( ) . getTagDAO ( ) . getTagUserMapByTagName ( org.ovirt.engine.core.bll.GetTagUserMapByTagNameQuery.getParameters ( ) . getTagName ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTagUserMapByTagNameQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetTagUserMapByTagNameQuery.getDbFacade ( ) . getTagDao ( ) . getTagUserMapByTagName ( org.ovirt.engine.core.bll.GetTagUserMapByTagNameQuery.getParameters ( ) . getTagName ( ) ) ) ; }
Source:
protected void entityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . entityPropertyChanged ( sender , e ) ; if ( e.PropertyName.equals ( "name" ) ) { getSearchCommand ( ) . Execute ( ) ; } }

Target:
protected void entityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . entityPropertyChanged ( sender , e ) ; if ( e.PropertyName.equals ( "name" ) ) { getSearchCommand ( ) . execute ( ) ; } }
Source:
protected boolean contentOverflows ( com.google.gwt.dom.client.Element parent ) { return ( parent != null ) && ( ( org.ovirt.engine.ui.common.utils.ElementUtils.detectOverflowUsingScrollWidth ( parent ) ) || ( org.ovirt.engine.ui.common.utils.ElementUtils.detectOverflowUsingClientHeight ( parent ) ) ) ; }

Target:
protected boolean contentOverflows ( com.google.gwt.dom.client.Element parent ) { return ( parent != null ) && ( ( org.ovirt.engine.ui.common.utils.ElementUtils.detectHorizontalOverflow ( parent ) ) || ( org.ovirt.engine.ui.common.utils.ElementUtils.detectVerticalOverflow ( parent ) ) ) ; }
Source:
public void setstorage_domain_name ( java.lang.String value ) { storageDomainName = value ; }

Target:
public org.ovirt.engine.core.compat.Guid getVmTemplateId ( ) { return vmTemplateId ; }
Source:
public void logout ( final org.ovirt.engine.ui.frontend.communication.UserCallback callback ) { xsrfRequestBuilder.setXsrfToken ( null ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase retVal = new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; retVal.setSucceeded ( true ) ; callback.onSuccess ( retVal ) ; }

Target:
public void logout ( final org.ovirt.engine.ui.frontend.communication.UserCallback callback ) { xsrfRequestBuilder.setXsrfToken ( null ) ; org.ovirt.engine.core.common.action.ActionReturnValue retVal = new org.ovirt.engine.core.common.action.ActionReturnValue ( ) ; retVal.setSucceeded ( true ) ; callback.onSuccess ( retVal ) ; }
Source:
public static synchronized boolean isIsoDomain ( org.ovirt.engine.api.model.StorageDomain storageDomain ) { org.ovirt.engine.api.model.StorageDomainType type = storageDomain.getstorage_domain_type ( ) ; return ( type != null ) && ( type == org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.StorageDomainType ) ? true : false ; }

Target:
public static synchronized boolean isIsoDomain ( org.ovirt.engine.api.model.StorageDomain storageDomain ) { org.ovirt.engine.api.model.StorageDomainType type = storageDomain.getStorageDomainType ( ) ; return ( type != null ) && ( type == org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.StorageDomainType ) ? true : false ; }
Source:
public static boolean isNonVmNonVlanNetwork ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return ( ! ( network.isVmNetwork ( ) ) ) && ( ( network.getVlanId ( ) ) == null ) ; }

Target:
public static boolean isVlan ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return ( network.getVlanId ( ) ) != null ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.Role model , int index ) { assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Role model , int index ) { org.junit.Assert.assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; }
Source:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean present ) { ensureColumnPresent ( column , headerText , present , null ) ; }

Target:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.safehtml.shared.SafeHtml headerHtml , boolean present ) { ensureColumnPresent ( column , new org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader ( headerHtml ) , present , null ) ; }
Source:
private boolean isReadOnly ( ) { return provider.getAdditionalProperties ( ) . getReadOnly ( ) ; }

Target:
private boolean isReadOnly ( ) { return getProvider ( ) . getAdditionalProperties ( ) . getReadOnly ( ) ; }
Source:
public void testUpdate ( ) { existingDynamic.setUsedDiskSize ( org.ovirt.engine.core.dao.StorageDomainDynamicDAOTest.USED_DISK_SIZE ) ; dao.update ( existingDynamic ) ; org.ovirt.engine.core.common.businessentities.StorageDomainDynamic result = dao.get ( existingDynamic.getId ( ) ) ; assertEquals ( existingDynamic , result ) ; }

Target:
public void testUpdate ( ) { existingDynamic.setUsedDiskSize ( org.ovirt.engine.core.dao.StorageDomainDynamicDAOTest.USED_DISK_SIZE ) ; dao.update ( existingDynamic ) ; org.ovirt.engine.core.common.businessentities.StorageDomainDynamic result = dao.get ( existingDynamic.getId ( ) ) ; org.junit.Assert.assertEquals ( existingDynamic , result ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3MacPool pool ) { return adaptAdd ( delegate :: add , pool ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3MacPool pool ) { return adaptAdd ( getDelegate ( ) :: add , pool ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ! ( ( ( java.lang.Boolean ) ( source ) ) . booleanValue ( ) ) : false ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ActionGroup > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ActionGroup > ( ) ; }
Source:
public void testGetAllVmTagsWithIds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllVmTagsWithIds ( existingTag.gettag_id ( ) . toString ( ) ) ; assertNotNull ( result ) ; assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForVmPools ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForVmPools ( vmPool.toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
private void localize ( ) { checkConnectivity.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.HostSetupNetworksPopupView.constants.checkConHostPopup ( ) ) ; commitChanges.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.HostSetupNetworksPopupView.constants.saveNetConfigHostPopup ( ) ) ; }

Target:
private void setWarningStatus ( java.lang.String message ) { statusPanel.setTextAndStyle ( message , style.warningPanel ( ) , style.warningLabel ( ) ) ; }
Source:
private void saveNetworksAndLabels ( org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig entity ) { massNetworksUpdate ( entity.getId ( ) , entity.getNetworks ( ) ) ; massLabelsUpdate ( entity.getId ( ) , entity.getLabels ( ) ) ; }

Target:
private void saveNetworksAndLabels ( org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig entity ) { massNetworksUpdate ( entity.getId ( ) , entity.getNetworks ( ) ) ; massLabelsUpdate ( entity.getId ( ) , entity.getNetworkLabels ( ) ) ; }
Source:
public void testIsInternalExecutionFalse ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class ) ) ; query.setInternalExecution ( true ) ; query.setInternalExecution ( false ) ; org.junit.Assert.assertFalse ( "Query should not be marked for internel execution" , query.isInternalExecution ( ) ) ; }

Target:
public void testIsInternalExecutionFalse ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class ) ) ; query.setInternalExecution ( true ) ; query.setInternalExecution ( false ) ; org.junit.Assert.assertFalse ( "Query should not be marked for internal execution" , query.isInternalExecution ( ) ) ; }
Source:
public java.lang.String GetTagIdAndChildrenIds ( java.lang.String tagName ) { org.ovirt.engine.core.common.businessentities.Tags tag = GetTagByName ( tagName ) ; java.lang.StringBuilder sb = tag.getTagIdAndChildrenIds ( ) ; return sb.toString ( ) ; }

Target:
public java.lang.String getTagIdAndChildrenIds ( java.lang.String tagName ) { org.ovirt.engine.core.common.businessentities.Tags tag = getTagByName ( tagName ) ; java.lang.StringBuilder sb = tag.getTagIdAndChildrenIds ( ) ; return sb.toString ( ) ; }
Source:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( null , getBricks ( volumeWithRemoveBricksTaskCompleted ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( null , getBricks ( volumeWithRemoveBricksTaskCompleted ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void typeMatchesProfileOnlyTypePassthrough ( ) { typeMatchesProfileCommon ( true , false ) ; org.junit.Assert.assertThat ( validator.typeMatchesProfile ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_VM_INTERFACE_TYPE_NOT_MATCH_PROFILE ) ) ; }

Target:
public void typeMatchesProfileOnlyTypePassthrough ( ) { typeMatchesProfileCommon ( true , false ) ; org.junit.Assert.assertThat ( validator.typeMatchesProfile ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VM_INTERFACE_TYPE_NOT_MATCH_PROFILE ) ) ; }
Source:
public void externalNetworkIsNotAVmNetwork ( ) { org.mockito.Mockito.when ( network.isVmNetwork ( ) ) . thenReturn ( false ) ; org.junit.Assert.assertThat ( validator.externalNetworkIsVmNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_MUST_BE_VM_NETWORK ) ) ; }

Target:
public void externalNetworkIsNotAVmNetwork ( ) { org.mockito.Mockito.when ( network.isVmNetwork ( ) ) . thenReturn ( false ) ; org.hamcrest.MatcherAssert.assertThat ( validator.externalNetworkIsVmNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_MUST_BE_VM_NETWORK ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { updateOptionsPostData ( ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.Disk > ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { java.util.Collection < org.ovirt.engine.core.common.businessentities.Disk > disks = ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.Disk > ) ( returnValue ) ) ; updateOptions ( ( ! ( disks.isEmpty ( ) ) ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getDedicatedVmForVds ( ) { return vmStatic.getDedicatedVmForVds ( ) ; }

Target:
public java.util.List < org.ovirt.engine.core.compat.Guid > getDedicatedVmForVdsList ( ) { return vmStatic.getDedicatedVmForVdsList ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult notRemovingManagementNetwork ( ) { return createNetworkValidator ( ) . notManagementNetwork ( ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult notRemovingManagementNetwork ( ) { return getNetworkValidator ( ) . notRemovingManagementNetwork ( ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.storage_pool x , org.ovirt.engine.core.common.businessentities.storage_pool y ) { return x.getname ( ) . compareTo ( y.getname ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.Provider p1 , org.ovirt.engine.core.common.businessentities.Provider p2 ) { return org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator.comp ( p1.getName ( ) , p2.getName ( ) ) ; }
Source:
public void testGetMasterStorageDomainIdForPool ( ) { org.ovirt.engine.core.compat.Guid result = dao.getMasterStorageDomainIdForPool ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_DOMAIN_ID , result ) ; }

Target:
public void testGetMasterStorageDomainIdForPool ( ) { org.ovirt.engine.core.compat.Guid result = dao.getMasterStorageDomainIdForPool ( new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_DOMAIN_ID , result ) ; }
Source:
public void tearDown ( ) { java.util.Locale.setDefault ( locale ) ; control.verify ( ) ; org.ovirt.engine.api.common.invocation.CurrentManager.remove ( ) ; }

Target:
public void tearDown ( ) { java.util.Locale.setDefault ( locale ) ; control.verify ( ) ; org.ovirt.engine.api.restapi.invocation.CurrentManager.remove ( ) ; }
Source:
public java.lang.String getdisplay_ip ( ) { return this . mVmDynamic.getdisplay_ip ( ) ; }

Target:
public void setAcpiEnable ( java.lang.Boolean value ) { this . vmDynamic.setacpi_enable ( value ) ; }
Source:
private void commitLabelChanges ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > srcIfaces , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface dstIface ) { org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.moveLabels ( srcIfaces , dstIface , hostSetupNetworksParametersData ) ; }

Target:
private void attachLabels ( java.lang.String bondName , java.util.List < org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkLabelModel > labels ) { org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel bondModel = nicModelByName.get ( bondName ) ; org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.attachLabels ( bondModel , new java.util.ArrayList ( labels ) , hostSetupNetworksParametersData ) ; }
Source:
public void canDoActionFailsOnRemovingEventWithOvirtOrigin ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveExternalEventCommand < org.ovirt.engine.core.common.action.RemoveExternalEventParameters > ( new org.ovirt.engine.core.common.action.RemoveExternalEventParameters ( org.ovirt.engine.core.bll.RemoveExternalEventCommandTest.EVENT_ID_2 ) ) ) ; prepareMocks ( command ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_EXTERNAL_EVENT_ILLEGAL_ORIGIN ) ; }

Target:
public void canDoActionFailsOnRemovingEventWithOvirtOrigin ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand < org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters > ( new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_2 ) ) ) ; prepareMocks ( command ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_EXTERNAL_EVENT_ILLEGAL_ORIGIN ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { buildVmData ( ) ; mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.getBroker ( ) . create ( createInfo ) ; logCommandInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.ProceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVMDynamicData ( vm.getDynamicData ( ) , mVmReturn.mVm ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { buildVmData ( ) ; mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.getBroker ( ) . create ( createInfo ) ; logCommandInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVMDynamicData ( vm.getDynamicData ( ) , mVmReturn.mVm ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return new ConvertVmCallback ( org.ovirt.engine.core.bll.ConvertVmCommand.getVmId ( ) , org.ovirt.engine.core.bll.ConvertVmCommand.getVdsId ( ) , org.ovirt.engine.core.bll.ConvertVmCommand.getStoragePool ( ) . getCompatibilityVersion ( ) ) ; }

Target:
public boolean hasTasks ( ) { return true ; }
Source:
public void doTest ( ) throws java.io.IOException , java.net.URISyntaxException { java.util.List < java.lang.String > errors = org.ovirt.engine.ui.common.GwtMessagesValidator.validateClass ( org.ovirt.engine.ui.userportal.ApplicationMessages.class ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.ui.common.GwtMessagesValidator.format ( errors ) , errors.isEmpty ( ) ) ; }

Target:
public void doTest ( ) throws java.io.IOException , java.net.URISyntaxException { java.util.List < java.lang.String > errors = org.ovirt.engine.ui.uicompat.GwtMessagesValidator.validateClass ( org.ovirt.engine.ui.userportal.ApplicationMessages.class ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.ui.uicompat.GwtMessagesValidator.format ( errors ) , errors.isEmpty ( ) ) ; }
Source:
public void getHostListByClusterId ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetHostsByClusterId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( clusterId ) , aQuery ) ; }

Target:
public void getHostListByClusterId ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.VDS > > aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetHostsByClusterId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( clusterId ) , aQuery ) ; }
Source:
public void setAsyncResult ( org.ovirt.engine.ui.frontend.RegistrationResult value ) { if ( ( asyncResult ) != value ) { AsyncResultChanging ( value , asyncResult ) ; asyncResult = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "AsyncResult" ) ) ; } }

Target:
public void setAsyncResult ( org.ovirt.engine.ui.frontend.RegistrationResult value ) { if ( ( asyncResult ) != value ) { AsyncResultChanging ( value , asyncResult ) ; asyncResult = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "AsyncResult" ) ) ; } }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy , null ) , currentPolicy ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetPolicyNotSetUsb ( ) { 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.ENABLED_NATIVE ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }
Source:
public void validateEnums ( org.ovirt.engine.api.model.GuestNicConfiguration entity ) { if ( entity != null ) { org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( org.ovirt.engine.api.model.BootProtocol.class , entity.getBootProtocol ( ) , true ) ; } }

Target:
public void validateEnums ( org.ovirt.engine.api.model.NicConfiguration entity ) { if ( entity != null ) { org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( org.ovirt.engine.api.model.BootProtocol.class , entity.getBootProtocol ( ) , true ) ; } }
Source:
public void getFreeVfNotSriovNic ( ) { commonIsSriovDevice ( false ) ; hostNicVfsConfigHelper.getFreeVf ( nic , null ) ; }

Target:
public void getFreeVfNoFreeVf ( ) { freeVfCommon ( 0 , 1 , 2 , 3 , 4 ) ; org.junit.Assert.assertNull ( hostNicVfsConfigHelper.getFreeVf ( nic ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.EditDiskModel diskModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.EditDiskModel ) ( result.getState ( ) ) ) ; diskModel.StopProgress ( ) ; diskModel.cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.EditDiskModel diskModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.EditDiskModel ) ( result.getState ( ) ) ) ; diskModel.stopProgress ( ) ; diskModel.cancel ( ) ; }