auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return super . createTask ( asyncTaskCreationInfo , parentCommand , entityType , entityIds ) ; }

Target:
public org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return super . createTaskInCurrentTransaction ( taskId , asyncTaskCreationInfo , parentCommand , entityType , entityIds ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { setUpMockQueryParameters ( ) ; setUpSpyQuery ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( "session" ) ; setUpMockQueryParameters ( ) ; setUpSpyQuery ( ) ; }
Source:
public boolean prepareDisconnectStorageServer ( org.ovirt.engine.core.common.action.HostStoragePoolParametersBase parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) { return prepareStorageServer ( parameters , connections ) ; }

Target:
public void prepareDisconnectHostFromStoragePoolServers ( org.ovirt.engine.core.common.action.HostStoragePoolParametersBase parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) { prepareStorageServer ( parameters , connections ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.VolumeType > getVolumeTypeList ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.VolumeType > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.storage.VolumeType [ ] { org.ovirt.engine.core.common.businessentities.storage.VolumeType.Preallocated , org.ovirt.engine.core.common.businessentities.storage.VolumeType.Sparse } ) ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.VolumeType > getVolumeTypeList ( ) { return new java.util.ArrayList ( java.util.Arrays.asList ( VolumeType.Preallocated , VolumeType.Sparse ) ) ; }
Source:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfileForUser ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getVdsGroup ( ) . getCompatibilityVersion ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getUserId ( ) ) ) ; }
Source:
public void constructorInvariants_delegateNull ( ) { new org.ovirt.engine.ui.common.utils.AddOnlyRingBuffer < java.lang.String > ( org.ovirt.engine.ui.common.utils.AddOnlyRingBufferTest.CAPACITY , null ) ; }

Target:
public void constructorInvariants_delegateNull ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.lang.NullPointerException.class , ( ) -> new org.ovirt.engine.ui.common.utils.AddOnlyRingBuffer < > ( org.ovirt.engine.ui.common.utils.AddOnlyRingBufferTest.CAPACITY , null ) ) ; }
Source:
public void setvm_pool_id ( org.ovirt.engine.core.compat.Guid value ) { this . id = value ; }

Target:
public void setVmPoolId ( org.ovirt.engine.core.compat.Guid value ) { this . id = value ; }
Source:
public void canDoActionFailsWithEmptyBricks ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( getVolume ( 0 , false ) ) ) ; prepareMocks ( cmd ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_BRICKS_REQUIRED ) ; }

Target:
public void canDoActionFailsWithEmptyBricks ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( getVolume ( 0 , false ) ) ) ; prepareMocks ( cmd ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_BRICKS_REQUIRED ) ; }
Source:
public org.ovirt.engine.core.extensions.mgr.ExtensionProxy getAuthn ( java.lang.String sessionId ) { return ( ( org.ovirt.engine.core.extensions.mgr.ExtensionProxy ) ( getData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.AUTHN_PARAMETER_NAME , false ) ) ) ; }

Target:
public final void removeSessionOnLogout ( java.lang.String sessionId ) { removeSessionImpl ( sessionId , Acct.ReportReason.PRINCIPAL_LOGOUT , "Prinicial %1$s has performed logout" , getUserName ( sessionId ) ) ; }
Source:
protected void addErrorMessages ( org.ovirt.engine.core.common.errors.VdcBllMessages messageActionTypeParameter , org.ovirt.engine.core.common.errors.VdcBllMessages messageReason ) { addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__BOOKMARK ) ; addCanDoActionMessage ( messageActionTypeParameter ) ; addCanDoActionMessage ( messageReason ) ; }

Target:
protected void addErrorMessages ( org.ovirt.engine.core.common.errors.EngineMessage messageActionTypeParameter , org.ovirt.engine.core.common.errors.EngineMessage messageReason ) { addCanDoActionMessage ( EngineMessage.VAR__TYPE__BOOKMARK ) ; addCanDoActionMessage ( messageActionTypeParameter ) ; addCanDoActionMessage ( messageReason ) ; }
Source:
void initTableActionButtons ( ) { getTable ( ) . addActionButton ( new org.ovirt.engine.ui.webadmin.widget.action.WebAdminButtonDefinition < org.ovirt.engine.core.common.businessentities.storage.Disk > ( org.ovirt.engine.ui.webadmin.section.main.view.tab.storage.SubTabStorageDiskView.constants.removeDisk ( ) ) { @ java.lang.Override protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getDetailModel ( ) . getRemoveCommand ( ) ; } } ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getDetailModel ( ) . getResumeUploadCommand ( ) ; }
Source:
private org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters buildRemoveMemoryVolumesParameters ( java.lang.String memoryState , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters parameters = new org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters ( memoryState , org.ovirt.engine.core.bll.RemoveVmCommand.getVmId ( ) ) ; parameters.setRemoveOnlyIfNotUsedAtAll ( true ) ; return parameters ; }

Target:
private org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters buildRemoveMemoryVolumesParameters ( java.lang.String memoryState , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters params = new org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters ( memoryState , vmId ) ; params.setEntityInfo ( getParameters ( ) . getEntityInfo ( ) ) ; return params ; }
Source:
private org.ovirt.engine.core.common.businessentities.VdsStatic getVdsStatic ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setId ( serverId ) ; vds.setVdsGroupId ( clusterId ) ; vds.setHostName ( org.ovirt.engine.core.bll.gluster.AddBricksToGlusterVolumeCommandTest.serverName ) ; return vds ; }

Target:
private org.ovirt.engine.core.common.businessentities.VdsStatic getVdsStatic ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setId ( serverId ) ; vds.setClusterId ( clusterId ) ; vds.setHostName ( org.ovirt.engine.core.bll.gluster.AddBricksToGlusterVolumeCommandTest.serverName ) ; return vds ; }
Source:
private static void assertGetAllForClusterResult ( java.util.List < org.ovirt.engine.core.common.businessentities.Network > result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
private static void assertGetAllForClusterResult ( java.util.List < org.ovirt.engine.core.common.businessentities.Network > result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; org.ovirt.engine.core.dao.NetworkDAOTest.assertIsSorted ( result ) ; }
Source:
private org.ovirt.engine.api.model.DiskProfile getDiskProfile ( java.lang.String id ) { return getEntity ( org.ovirt.engine.api.model.DiskProfile.class , VdcQueryType.GetDiskProfileById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuidOr404 ( id ) ) , "DiskProfile" ) ; }

Target:
private org.ovirt.engine.api.model.DiskProfile getDiskProfile ( java.lang.String id ) { return getEntity ( org.ovirt.engine.api.model.DiskProfile.class , QueryType.GetDiskProfileById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuidOr404 ( id ) ) , "DiskProfile" ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ! ( isSelected ( ) ) ) { setSelectedItem ( ) ; } }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ! ( isSelected ( ) ) ) { setSelectedItem ( ) ; setVmStyleMouseOver ( ) ; } }
Source:
public org.ovirt.engine.core.common.action.MaintenanceNumberOfVdssParameters createMaintenanceParams ( ) { org.ovirt.engine.core.common.action.MaintenanceNumberOfVdssParameters params = new org.ovirt.engine.core.common.action.MaintenanceNumberOfVdssParameters ( java.util.Collections.singletonList ( org.ovirt.engine.core.bll.hostdeploy.UpgradeHostCommand.getVdsId ( ) ) , true ) ; return withRootCommandInfo ( params ) ; }

Target:
public org.ovirt.engine.core.common.action.MaintenanceNumberOfVdssParameters createMaintenanceParams ( ) { org.ovirt.engine.core.common.action.MaintenanceNumberOfVdssParameters params = new org.ovirt.engine.core.common.action.MaintenanceNumberOfVdssParameters ( java.util.Collections.singletonList ( org.ovirt.engine.core.bll.hostdeploy.UpgradeHostCommand.getVdsId ( ) ) , true , "" , true ) ; return withRootCommandInfo ( params ) ; }
Source:
private void RemoveVdsDynamicFromDb ( ) { getVdsDynamicDAO ( ) . remove ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ; }

Target:
private void RemoveVdsDynamicFromDb ( ) { org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsDynamicDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ; }
Source:
public javax.ws.rs.core.Response performAction ( org.ovirt.engine.core.common.action.VdcActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.api.model.Action action ) { return performAction ( task , params , action , false ) ; }

Target:
public javax.ws.rs.core.Response performAction ( org.ovirt.engine.core.common.action.ActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.api.model.Action action ) { return performAction ( task , params , action , false ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface findInterfaceByNetworkName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( i.getNetworkName ( ) , name ) ) { return i ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface findInterfaceByNetworkName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i : items ) { if ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( i.getNetworkName ( ) , name ) ) { return i ; } } return null ; }
Source:
public javax.ws.rs.core.Response detach ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.RemoveVmFromPool , new org.ovirt.engine.core.common.action.RemoveVmFromPoolParameters ( guid , true , true ) , action ) ; }

Target:
public javax.ws.rs.core.Response detach ( org.ovirt.engine.api.model.Action action ) { return doAction ( ActionType.RemoveVmFromPool , new org.ovirt.engine.core.common.action.RemoveVmFromPoolParameters ( guid , true , true ) , action ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getvds_group_id ( ) { return this . mVmStatic.getvds_group_id ( ) ; }

Target:
public void setVdsGroupId ( org.ovirt.engine.core.compat.Guid value ) { this . vmStatic.setvds_group_id ( value ) ; }
Source:
public void setError ( int value ) { _Error = org.ovirt.engine.core.common.errors.VdcBllErrors.forValue ( value ) ; }

Target:
public void setError ( int value ) { _Error = org.ovirt.engine.core.common.errors.EngineError.forValue ( value ) ; }
Source:
public void getIdByTypeAndStatusReturnsNullForNonExistingStatus ( ) { org.junit.Assert.assertNull ( dao.getId ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_VM_ID , SnapshotType.REGULAR , SnapshotStatus.IN_PREVIEW ) ) ; }

Target:
public void getIdByTypeAndStatusReturnsNullForNonExistingStatus ( ) { org.junit.jupiter.api.Assertions.assertNull ( dao.getId ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_VM_ID , SnapshotType.REGULAR , SnapshotStatus.IN_PREVIEW ) ) ; }
Source:
protected org.springframework.ldap.core.support.DirContextAuthenticationStrategy buildContextAuthenticationStategy ( ) { java.lang.String realm = domain.toUpperCase ( ) ; return new org.ovirt.engine.extensions.aaa.builtin.kerberosldap.GSSAPIDirContextAuthenticationStrategy ( userName , password , realm , explicitAuth ) ; }

Target:
protected org.springframework.ldap.core.support.DirContextAuthenticationStrategy buildContextAuthenticationStategy ( ) { return new org.ovirt.engine.extensions.aaa.builtin.kerberosldap.GSSAPIDirContextAuthenticationStrategy ( configuration , userName , password ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getVolumeByGlusterTask ( org.ovirt.engine.core.compat.Guid taskId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume = getCallsHandler ( ) . executeRead ( "GetGlusterVolumeByGlusterTaskId" , org.ovirt.engine.core.dao.gluster.GlusterVolumeDaoDbFacadeImpl.volumeRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "task_id" , taskId ) ) ; return volume ; }

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getVolumeByGlusterTask ( org.ovirt.engine.core.compat.Guid taskId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume = getCallsHandler ( ) . executeRead ( "GetGlusterVolumeByGlusterTaskId" , org.ovirt.engine.core.dao.gluster.GlusterVolumeDaoDbFacadeImpl.volumeRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "task_id" , taskId ) ) ; fetchRelatedEntities ( volume ) ; return volume ; }
Source:
private org.ovirt.engine.core.bll.AddQuotaCommand createCommand ( ) { org.ovirt.engine.core.common.action.QuotaCRUDParameters param = new org.ovirt.engine.core.common.action.QuotaCRUDParameters ( mockGeneralStorageQuota ( ) ) ; command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.AddQuotaCommand ( param , null ) ) ; org.mockito.Mockito.doReturn ( quotaDao ) . when ( command ) . getQuotaDao ( ) ; return command ; }

Target:
public void testAddDefaultQuota ( ) { command.getParameters ( ) . getQuota ( ) . setDefault ( true ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_QUOTA_IS_NOT_VALID ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getVnicProfileId ( ) { return externalVnicProfileMapping.getVnicProfileId ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getVnicProfileId ( ) { return externalVnicProfileMapping.getTargetProfileId ( ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.NIC model , int index ) { org.ovirt.engine.api.restapi.resource.AbstractBackendNicsResourceTest.verifyModelSpecific ( model , index ) ; verifyLinks ( model ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Nic model , int index ) { org.ovirt.engine.api.restapi.resource.AbstractBackendNicsResourceTest.verifyModelSpecific ( model , index ) ; verifyLinks ( model ) ; }
Source:
protected void initCommands ( org.ovirt.engine.ui.uicommonweb.models.Model m ) { m.getCommands ( ) . add ( org.ovirt.engine.ui.uicommonweb.UICommand.createDefaultOkUiCommand ( org.ovirt.engine.ui.uicommonweb.models.AbstractErrataCountModel.CLOSE , this ) ) ; }

Target:
protected void initCommands ( org.ovirt.engine.ui.uicommonweb.models.Model m ) { org.ovirt.engine.ui.uicommonweb.UICommand closeCommand = org.ovirt.engine.ui.uicommonweb.UICommand.createDefaultOkUiCommand ( org.ovirt.engine.ui.uicommonweb.models.AbstractErrataCountModel.CLOSE , this ) ; closeCommand.setIsCancel ( true ) ; m.getCommands ( ) . add ( closeCommand ) ; }
Source:
public org.ovirt.engine.api.model.Groups list ( ) { return mapDbGroupsCollection ( getGroupsCollection ( SearchType.DBUser , getSearchPattern ( ) ) ) ; }

Target:
public org.ovirt.engine.api.model.Groups list ( ) { if ( isFiltered ( ) ) { return mapDbGroupCollection ( getBackendCollection ( VdcQueryType.GetAllDbGroups , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; } else { return mapDbGroupCollection ( getBackendCollection ( SearchType.DBGroup , getSearchPattern ( ) ) ) ; } }
Source:
public java.util.Set < org.ovirt.engine.core.compat.Guid > keySet ( ) { initializeCache ( ) ; return commandMap.keySet ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.CommandEntity get ( org.ovirt.engine.core.compat.Guid commandId ) { initializeCache ( ) ; return commandMap.get ( commandId ) ; }
Source:
protected boolean canDoAction ( ) { return org.ovirt.engine.core.bll.AddVmToPoolCommand.CanAddVmToPool ( org.ovirt.engine.core.bll.AddVmToPoolCommand.getParameters ( ) . getVmId ( ) , org.ovirt.engine.core.bll.AddVmToPoolCommand.getReturnValue ( ) . getCanDoActionMessages ( ) , org.ovirt.engine.core.bll.AddVmToPoolCommand.getParameters ( ) . getVmPoolId ( ) ) ; }

Target:
protected boolean canDoAction ( ) { return org.ovirt.engine.core.bll.AddVmToPoolCommand.canAddVmToPool ( org.ovirt.engine.core.bll.AddVmToPoolCommand.getParameters ( ) . getVmId ( ) , org.ovirt.engine.core.bll.AddVmToPoolCommand.getReturnValue ( ) . getCanDoActionMessages ( ) , org.ovirt.engine.core.bll.AddVmToPoolCommand.getParameters ( ) . getVmPoolId ( ) ) ; }
Source:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup.getcompatibility_version ( ) ) , UsbPolicy.DISABLED ) ; }
Source:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > getDiskInterfaceList ( ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > diskInterfaces = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.DiskInterface [ ] { org.ovirt.engine.core.common.businessentities.DiskInterface.IDE , org.ovirt.engine.core.common.businessentities.DiskInterface.VirtIO , org.ovirt.engine.core.common.businessentities.DiskInterface.VirtIO_SCSI } ) ) ; return diskInterfaces ; }

Target:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > getDiskInterfaceList ( ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > diskInterfaces = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.DiskInterface [ ] { org.ovirt.engine.core.common.businessentities.DiskInterface.IDE , org.ovirt.engine.core.common.businessentities.DiskInterface.VirtIO , org.ovirt.engine.core.common.businessentities.DiskInterface.VirtIO_SCSI , org.ovirt.engine.core.common.businessentities.DiskInterface.SPAPR_VSCSI } ) ) ; return diskInterfaces ; }
Source:
public org.ovirt.engine.api.model.MacPool update ( org.ovirt.engine.api.model.MacPool macPool ) { return performUpdate ( macPool , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetMacPoolById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , VdcActionType.UpdateMacPool , new org.ovirt.engine.api.restapi.resource.BackendMacPoolResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.MacPool update ( org.ovirt.engine.api.model.MacPool macPool ) { return performUpdate ( macPool , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetMacPoolById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , ActionType.UpdateMacPool , new org.ovirt.engine.api.restapi.resource.BackendMacPoolResource.UpdateParametersProvider ( ) ) ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.storage_domain_dynamic result = dao.get ( org.ovirt.engine.core.dao.StorageDomainDynamicDAOTest.EXISTING_DOMAIN_ID ) ; assertNotNull ( result ) ; assertEquals ( org.ovirt.engine.core.dao.StorageDomainDynamicDAOTest.EXISTING_DOMAIN_ID , result.getId ( ) ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.StorageDomainDynamic result = dao.get ( org.ovirt.engine.core.dao.StorageDomainDynamicDAOTest.EXISTING_DOMAIN_ID ) ; assertNotNull ( result ) ; assertEquals ( org.ovirt.engine.core.dao.StorageDomainDynamicDAOTest.EXISTING_DOMAIN_ID , result.getId ( ) ) ; }
Source:
public void setup ( ) { validator = new org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.UpdateNetworkValidator ( network , vmDao ) ; }

Target:
public void setup ( ) { validator = new org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.UpdateNetworkValidator ( network , vmDao , interfaceDao ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity slaveVolume ) { return ( slaveVolume.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus.UP ) ; }

Target:
public boolean test ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity slaveVolume ) { return ( slaveVolume.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus.UP ) ; }
Source:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.bll.AttachTemplatesToTagCommand.getTagId ( ) ) == null ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_TAG_ID_REQUIRED ) ; } return true ; }

Target:
protected boolean validate ( ) { if ( ( org.ovirt.engine.core.bll.AttachTemplatesToTagCommand.getTagId ( ) ) == null ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_TAG_ID_REQUIRED ) ; } return true ; }
Source:
public void testRemoveNotFound ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( 1 , 0 , true ) ; try { resource.remove ( ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testRemoveNotFound ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( 1 , 0 , true ) ; try { resource.remove ( ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return diskImage.getStoragesNames ( ) . get ( 0 ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.DiskInterface getRawValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.Disk disk = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ; return disk.getDiskInterface ( ) ; }
Source:
public void statusNotSupportedForHostUpgrade ( ) { org.ovirt.engine.core.common.businessentities.VDS host = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; host.setStatus ( VDSStatus.Unassigned ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.UpgradeHostValidator ( host ) . statusSupportedForHostUpgrade ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.CANNOT_UPGRADE_HOST_STATUS_ILLEGAL ) ) ; }

Target:
public void statusNotSupportedForHostUpgrade ( ) { org.ovirt.engine.core.common.businessentities.VDS host = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; host.setStatus ( VDSStatus.Unassigned ) ; org.hamcrest.MatcherAssert.assertThat ( new org.ovirt.engine.core.bll.validator.UpgradeHostValidator ( host ) . statusSupportedForHostUpgrade ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.CANNOT_UPGRADE_HOST_STATUS_ILLEGAL ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotEnabledNotSetLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_LEGACY , null ) , UsbPolicy.ENABLED_LEGACY ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) , UsbPolicy.DISABLED ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; CheckStorageStatus ( ) ; UpdateActionAvailability ( ) ; getSearchCommand ( ) . Execute ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; CheckStorageStatus ( ) ; UpdateActionAvailability ( ) ; getSearchCommand ( ) . Execute ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.HypervisorType gethypervisor_type ( ) { return this . hypervisor_type ; }

Target:
public void setlibvirt_version ( java.lang.String value ) { this . libvirt_version = value ; }
Source:
private void cancelConfirm ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.AbstractDiskModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.AbstractDiskModel ) ( getWindow ( ) ) ) ; org.ovirt.engine.ui.uicommonweb.models.storage.SanStorageModel sanStorageModel = model.getSanStorageModel ( ) ; sanStorageModel.setForce ( false ) ; setConfirmWindow ( null ) ; }

Target:
private void cancelConfirm ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.AbstractDiskModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.AbstractDiskModel ) ( getWindow ( ) ) ) ; org.ovirt.engine.ui.uicommonweb.models.storage.SanStorageModelBase sanStorageModelBase = model.getSanStorageModelBase ( ) ; sanStorageModelBase.setForce ( false ) ; setConfirmWindow ( null ) ; }
Source:
public void testValidModifiedBondsFailsWhenInsufficientNumberOfSlaves ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( ) ; bond.setName ( "bond0" ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , VdcBllMessages.NETWORK_BONDS_INVALID_SLAVE_COUNT , false , false ) ; }

Target:
public void testValidModifiedBondsFailsWhenInsufficientNumberOfSlaves ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( HostSetupNetworksValidator.VAR_NETWORK_BONDS_INVALID_SLAVE_COUNT_LIST , bond.getName ( ) ) ) , ValidationResult.VALID ) ; }
Source:
public void setVmDescription ( java.lang.String value ) { this . vmStatic.setdescription ( value ) ; }

Target:
public int getNumOfMonitors ( ) { return this . vmStatic.getNumOfMonitors ( ) ; }
Source:
public void checkInvalidNullStringIpv4AddressConversion ( ) { org.junit.Assert.assertEquals ( "" , underTest.convertPrefixToNetmask ( null ) ) ; }

Target:
public void checkInvalidNullStringIpv4AddressConversion ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.lang.NumberFormatException.class , ( ) -> underTest.convertPrefixToNetmask ( null ) ) ; }
Source:
java.lang.String model ( ) ;

Target:
java.lang.String endByLabel ( ) ;
Source:
public void reportCompleted ( ) { try { super . reportCompleted ( ) ; } finally { if ( ( getVdsDestinationId ( ) ) != null ) { decreasePendingVms ( getVdsDestinationId ( ) ) ; } } }

Target:
protected org.ovirt.engine.core.compat.Guid getCurrentVdsId ( ) { org.ovirt.engine.core.compat.Guid destinationVdsId = getDestinationVdsId ( ) ; return destinationVdsId != null ? destinationVdsId : super . getCurrentVdsId ( ) ; }
Source:
public java.lang.Object convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { if ( returnValue == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.migration.MigrationPolicy > ( ) ; } return returnValue ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { memoryHotUnplugSupport = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( "EntityStatusSnapshot [id=" + ( id ) ) + ", status=" ) + ( status ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "id" , id ) . append ( "status" , status ) . build ( ) ; }
Source:
private boolean isDiskImage ( org.ovirt.engine.api.model.Disk disk ) { return ( disk.getDiskStorageType ( ) ) == org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.storage.Disk ; }

Target:
private boolean isDiskImage ( org.ovirt.engine.api.model.Disk disk ) { return ( disk.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getNumOfCpus ( ) ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) . getNumOfCpus ( ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }
Source:
public static org.ovirt.engine.core.common.users.VdcUser getVdcUser ( ) { return org.ovirt.engine.core.utils.ThreadLocalParamsContainer.vdcUserKeeper.get ( ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.DbUser getUser ( ) { return org.ovirt.engine.core.utils.ThreadLocalParamsContainer.userKeeper.get ( ) ; }
Source:
private static java.lang.String buildUrl ( java.lang.String service ) { return ( "/" + ( org.ovirt.engine.ui.frontend.utils.BaseContextPathData.getInstance ( ) . getRelativePath ( ) ) ) + service ; }

Target:
private static java.lang.String buildUrl ( java.lang.String service , java.lang.String params ) { return ( ( "/" + ( org.ovirt.engine.ui.frontend.utils.BaseContextPathData.getInstance ( ) . getRelativePath ( ) ) ) + service ) + ( params != null ? params : "" ) ; }
Source:
public org.ovirt.engine.core.bll.storage.disk.cinder.CinderBroker getCinderBroker ( ) { if ( ( cinderBroker ) == null ) { cinderBroker = new org.ovirt.engine.core.bll.storage.disk.cinder.CinderBroker ( org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getStorageDomainId ( ) , org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getReturnValue ( ) . getExecuteFailedMessages ( ) ) ; } return cinderBroker ; }

Target:
public org.ovirt.engine.core.bll.storage.disk.cinder.CinderBroker getCinderBroker ( ) { if ( ( cinderBroker ) == null ) { cinderBroker = org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.bll.storage.disk.cinder.CinderBroker ( org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getStorageDomainId ( ) , org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getReturnValue ( ) . getExecuteFailedMessages ( ) ) ) ; } return cinderBroker ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public void getNextAvailableDiskAliasNameByVMId ( org.ovirt.engine.ui.frontend.AsyncQuery < java.lang.String > aQuery , org.ovirt.engine.core.compat.Guid vmId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetNextAvailableDiskAliasNameByVMId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) , aQuery ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addActiveSnapshot ( snapshotId , vm , SnapshotStatus.OK , compensationContext ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addActiveSnapshot ( snapshotId , vm , SnapshotStatus.OK , "" , compensationContext ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( NetEnv.IPTABLES_ENABLE , _customizationConditions.contains ( org.ovirt.engine.core.bll.VdsDeploy.CustomizationCondition.IPTABLES_OVERRIDE ) ) ; return null ; }

Target:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( NetEnv.SSH_USER , _vds.getSshUsername ( ) ) ; return null ; }
Source:
protected void HandleMemoryAdjustments ( ) { if ( ( getDestinationVds ( ) ) != null ) { AutoMemoryAdjust ( getDestinationVds ( ) , org.ovirt.engine.core.bll.RunVmOnDedicatedVdsCommand.getVm ( ) ) ; } }

Target:
protected void handleMemoryAdjustments ( ) { if ( ( getDestinationVds ( ) ) != null ) { AutoMemoryAdjust ( getDestinationVds ( ) , org.ovirt.engine.core.bll.RunVmOnDedicatedVdsCommand.getVm ( ) ) ; } }
Source:
public void setvds_strength ( int value ) { this . vdsStrength = ( value < 1 ) ? 1 : value > 100 ? 100 : value ; }

Target:
public void setVdsStrength ( int value ) { this . vdsStrength = ( value < 1 ) ? 1 : value > 100 ? 100 : value ; }
Source:
public void testJsonDiskDescription ( ) throws java.io.IOException { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( "DiskDescription" ) ; org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.assertDiskDescriptionMap ( disk ) ; }

Target:
public void testJsonEmptyDiskDescription ( ) throws java.io.IOException { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( "" ) ; assertDiskDescriptionMap ( disk ) ; }
Source:
private void assertGetResult ( org.ovirt.engine.core.common.businessentities.StorageDomain result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingDomain , result ) ; }

Target:
private void assertGetResult ( org.ovirt.engine.core.common.businessentities.StorageDomain result ) { org.junit.Assert.assertEquals ( existingDomain , result ) ; org.junit.Assert.assertEquals ( "Wrong committed disk size" , 8 , result.getCommittedDiskSize ( ) ) ; org.junit.Assert.assertEquals ( "Wrong actual disk size" , 4 , result.getActualImagesSize ( ) ) ; }
Source:
public void testGetAllVnicProfile ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForVnicProfile ( FixturesTool.VM_NETWORK_INTERFACE_PROFILE ) ; org.junit.Assert.assertEquals ( existingEntity , result.get ( 0 ) ) ; }

Target:
public void testGetAllVnicProfile ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForVnicProfile ( FixturesTool.VM_NETWORK_INTERFACE_PROFILE ) ; org.junit.jupiter.api.Assertions.assertEquals ( existingEntity , result.get ( 0 ) ) ; }
Source:
public void testSave ( ) { dao.save ( newAsyncTask ) ; org.ovirt.engine.core.common.businessentities.AsyncTask result = dao.get ( newAsyncTask.getTaskId ( ) ) ; org.junit.Assert.assertEquals ( newAsyncTask , result ) ; }

Target:
public void testSave ( ) { dao.save ( newAsyncTask ) ; org.ovirt.engine.core.common.businessentities.AsyncTask result = dao.get ( newAsyncTask.getTaskId ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( newAsyncTask , result ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmStatic map ( org.ovirt.engine.api.model.InstanceType model , org.ovirt.engine.core.common.businessentities.VmStatic incoming ) { return org.ovirt.engine.api.restapi.types.TemplateMapper.map ( model , incoming ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VmStatic map ( org.ovirt.engine.api.model.InstanceType model , org.ovirt.engine.core.common.businessentities.VmStatic incoming ) { org.ovirt.engine.core.common.businessentities.VmStatic staticVm = ( incoming != null ) ? incoming : new org.ovirt.engine.core.common.businessentities.VmStatic ( ) ; mapCommonModelToEntity ( staticVm , model ) ; return staticVm ; }
Source:
protected boolean canDoAction ( ) { org.ovirt.engine.core.common.businessentities.AuditLog event = org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand.getAuditLogDao ( ) . get ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand.getParameters ( ) . getAuditLogId ( ) ) ; if ( event == null ) { return failCanDoAction ( EngineMessage.AUDIT_LOG_CANNOT_REMOVE_AUDIT_LOG_NOT_EXIST ) ; } return true ; }

Target:
protected boolean validate ( ) { org.ovirt.engine.core.common.businessentities.AuditLog event = org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand.getAuditLogDao ( ) . get ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand.getParameters ( ) . getAuditLogId ( ) ) ; if ( event == null ) { return failValidation ( EngineMessage.AUDIT_LOG_CANNOT_REMOVE_AUDIT_LOG_NOT_EXIST ) ; } return true ; }
Source:
public void setTextAndStyle ( java.lang.String text , java.lang.String backgroundStyle , java.lang.String foregroundStyle ) { this . backgroundStyle = backgroundStyle ; this . foregroundStyle = foregroundStyle ; setFadeText ( text ) ; }

Target:
protected void onFadeInComplete ( ) { setStylePrimaryName ( foregroundStyle ) ; this . setStylePrimaryName ( backgroundStyle ) ; }
Source:
protected void executeVmCommand ( ) { InitVdss ( ) ; Perform ( ) ; ProcessVm ( ) ; org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( true ) ; }

Target:
protected void executeVmCommand ( ) { initVdss ( ) ; perform ( ) ; processVm ( ) ; org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( true ) ; }
Source:
protected org.ovirt.engine.core.dao.StorageDomainDynamicDAO getStorageDomainDynamicDao ( ) { return getDbFacade ( ) . getStorageDomainDynamicDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.StorageDomainDynamicDAO getStorageDomainDynamicDao ( ) { return org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.getDbFacade ( ) . getStorageDomainDynamicDao ( ) ; }
Source:
public void getIsUsbEnabledEnabledNative ( ) { 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.getIsUsbEnabled ( usbPolicy ) ; }

Target:
public void getIsUsbEnabledEnabledNative ( ) { org.ovirt.engine.core.common.businessentities.UsbPolicy usbPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; org.junit.Assert.assertTrue ( org.ovirt.engine.api.restapi.utils.UsbMapperUtils.getIsUsbEnabled ( usbPolicy ) ) ; }
Source:
public static java.lang.String getSpiceBaseURL ( ) { return com.google.gwt.core.client.GWT.getModuleBaseURL ( ) . replace ( org.ovirt.engine.ui.uicommonweb.Configurator.WEBADMIN_ROOT_FOLDER , org.ovirt.engine.ui.uicommonweb.Configurator.USERPORTAL_ROOT_FOLDER ) ; }

Target:
public static java.lang.String getSpiceBaseURL ( ) { return ( org.ovirt.engine.ui.uicommonweb.Configurator.getRootURL ( ) ) + "/spice/" ; }
Source:
public void shouldDetectUpgradePossible ( ) { org.assertj.core.api.Assertions.assertThat ( validator.isUpgradePossible ( java.util.Arrays.asList ( newHost1 , newHost2 ) , java.util.Arrays.asList ( validVM ) ) ) . isEqualTo ( ValidationResult.VALID ) ; }

Target:
public void shouldDetectUpgradePossible ( ) { org.assertj.core.api.Assertions.assertThat ( validator.isUpgradePossible ( java.util.Arrays.asList ( newHost1 , newHost2 ) , java.util.Collections.singletonList ( validVM ) ) ) . isEqualTo ( ValidationResult.VALID ) ; }
Source:
public void buildVmSerialNumber ( ) { new org.ovirt.engine.core.vdsbroker.vdsbroker.VmSerialNumberBuilder ( vm , getCluster ( ) , createInfo ) . buildVmSerialNumber ( ) ; }

Target:
public void buildVmSerialNumber ( ) { java.lang.String serialNumber = vmSerialNumberBuilder.buildVmSerialNumber ( vm ) ; if ( serialNumber != null ) { createInfo.put ( VdsProperties.SERIAL_NUMBER , serialNumber ) ; } }
Source:
public void setIsVolumeFormatChangable ( boolean isVolumeFormatChangable ) { this . isVolumeFormatChangable = isVolumeFormatChangable ; }

Target:
public void setIsVolumeFormatChangable ( boolean isVolumeFormatChangable ) { if ( ( this . isVolumeFormatChangable ) != isVolumeFormatChangable ) { this . isVolumeFormatChangable = isVolumeFormatChangable ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "VolumeFormat" ) ) ; } }
Source:
public void logoutUser ( final java.lang.Object userObject , final org.ovirt.engine.ui.frontend.communication.VdcUserCallback < ? > callback ) { loggedIn = false ; processor.logoutUser ( userObject , callback ) ; }

Target:
public void logoutUser ( final java.lang.Object userObject , final org.ovirt.engine.ui.frontend.communication.UserCallback < ? > callback ) { loggedIn = false ; processor.logoutUser ( userObject , callback ) ; }
Source:
public void testGetAllByStoragePoolAndConnectionWithInvalidStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_CONNECTION ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllByStoragePoolAndConnectionWithInvalidStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_CONNECTION ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void sparsifyNotSupportedForDirectLun ( ) { setupForLun ( ) ; org.junit.Assert.assertThat ( lunValidator.isSparsifySupported ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_SPARSIFY_NOT_SUPPORTED_BY_DISK_STORAGE_TYPE ) ) ; }

Target:
public void sparsifyNotSupportedForDirectLun ( ) { setupForLun ( ) ; org.hamcrest.MatcherAssert.assertThat ( lunValidator.isSparsifySupported ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_SPARSIFY_NOT_SUPPORTED_BY_DISK_STORAGE_TYPE ) ) ; }
Source:
private void initInfoImages ( org.ovirt.engine.ui.common.CommonApplicationResources resources ) { setRefreshImage ( new com.google.gwt.user.client.ui.Image ( resources.refreshButtonImage ( ) ) ) ; }

Target:
private void initInfoImages ( ) { setRefreshImage ( new com.google.gwt.user.client.ui.Image ( org.ovirt.engine.ui.common.widget.dialog.RefreshActionIcon.resources.refreshButtonImage ( ) ) ) ; }
Source:
public void canDetectZeroHostNodesWithVmFromDb ( ) { vdsNumaNodes.clear ( ) ; final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.VM_NUMA_PINNED_VDS_NODE_EMPTY ) ; }

Target:
public void canDetectZeroHostNodesWithVmFromDb ( ) { vdsNumaNodes.clear ( ) ; final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VM_NUMA_PINNED_VDS_NODE_EMPTY ) ; }
Source:
protected void logEndTaskSuccess ( ) { org.ovirt.engine.core.bll.tasks.SPMAsyncTask.log.infoFormat ( "BaseAsyncTask::onTaskEndSuccess: Task '{0}' (Parent Command {1}, Parameters Type {2}) ended successfully." , getVdsmTaskId ( ) , getParameters ( ) . getDbAsyncTask ( ) . getActionType ( ) , getParameters ( ) . getClass ( ) . getName ( ) ) ; }

Target:
protected void logEndTaskSuccess ( ) { org.ovirt.engine.core.bll.tasks.SPMAsyncTask.log.info ( ( "BaseAsyncTask::onTaskEndSuccess: Task '{}' (Parent Command '{}', Parameters Type '{}')" + " ended successfully." ) , getVdsmTaskId ( ) , getParameters ( ) . getDbAsyncTask ( ) . getActionType ( ) , getParameters ( ) . getClass ( ) . getName ( ) ) ; }
Source:
public void execute ( ) { attachAlert ( createAlert ( type , message ) ) ; }

Target:
public void onClose ( org.gwtbootstrap3.client.shared.event.AlertCloseEvent evt ) { timer.cancel ( ) ; }
Source:
protected void selectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . selectedItemPropertyChanged ( sender , e ) ; updateActionAvailability ( ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; }
Source:
public void vdsIdNull ( ) { b.setVdsId ( null ) ; final org.ovirt.engine.core.compat.Guid g = b.getVdsId ( ) ; org.junit.Assert.assertEquals ( Guid.Empty , g ) ; }

Target:
public void vdsIdNull ( ) { b.setVdsId ( null ) ; final org.ovirt.engine.core.compat.Guid g = b.getVdsId ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( Guid.Empty , g ) ; }