auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getVmDisksFromDB ( ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; org.ovirt.engine.core.bll.VmHandler.filterImageDisksForVM ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) , false , false , true ) ; return org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) . getDiskList ( ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getVmDisksFromDB ( ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; org.ovirt.engine.core.bll.VmHandler.filterImageDisksForVM ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; return org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) . getDiskList ( ) ; }
Source:
void storagePoolUpEvent ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool , boolean isNewSpm ) ;

Target:
void storagePoolUpEvent ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) ;
Source:
private org.ovirt.engine.core.bll.gluster.ReplaceGlusterVolumeBrickCommand createTestCommand2 ( org.ovirt.engine.core.compat.Guid volumeId ) { return new org.ovirt.engine.core.bll.gluster.ReplaceGlusterVolumeBrickCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeReplaceBrickActionParameters ( volumeId , org.ovirt.engine.core.common.businessentities.gluster.GlusterTaskOperation.START , null , getBricks ( volumeId , "" , 1 ) . get ( 0 ) , false ) ) ; }

Target:
private org.ovirt.engine.core.bll.gluster.ReplaceGlusterVolumeBrickCommand createTestCommand2 ( org.ovirt.engine.core.compat.Guid volumeId ) { return new org.ovirt.engine.core.bll.gluster.ReplaceGlusterVolumeBrickCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeReplaceBrickActionParameters ( volumeId , null , getBricks ( volumeId , "" , 1 ) . get ( 0 ) ) , null ) ; }
Source:
public java.lang.String getVmName ( ) { if ( ( ( mVmName ) == null ) && ( ( getVm ( ) ) != null ) ) { mVmName = getVm ( ) . getvm_name ( ) ; } return mVmName ; }

Target:
public java.lang.String getVmName ( ) { if ( ( ( mVmName ) == null ) && ( ( getVm ( ) ) != null ) ) { mVmName = getVm ( ) . getVmName ( ) ; } return mVmName ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return runMultipleActionsImpl ( actionType , parameters , true , executionContext ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return runMultipleActionsImpl ( actionType , parameters , true , false , executionContext ) ; }
Source:
public void validate_vmNotExists_Test ( ) { org.mockito.Mockito.doReturn ( null ) . when ( vmStaticDao ) . get ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INVALID_ENTITY_FOR_AFFINITY_GROUP ) ; }

Target:
public void validate_vmNotExists_Test ( ) { org.mockito.Mockito.doReturn ( null ) . when ( vmStaticDao ) . get ( org.mockito.ArgumentMatchers.any ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INVALID_ENTITY_FOR_AFFINITY_GROUP ) ; }
Source:
public void testBeanValidations ( ) { initializeMock ( ) ; org.junit.Assert.assertTrue ( cmd.validateInputs ( ) ) ; }

Target:
public void testBeanValidations ( ) { org.junit.Assert.assertTrue ( cmd.validateInputs ( ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { if ( ( ( java.lang.Boolean ) ( getGlobalClusterQuota ( ) . getEntity ( ) ) ) == true ) { getSpecificClusterQuota ( ) . setEntity ( false ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { if ( ( ( java.lang.Boolean ) ( getSpecificClusterQuota ( ) . getEntity ( ) ) ) == true ) { getGlobalClusterQuota ( ) . setEntity ( false ) ; } }
Source:
public void setEntity ( org.ovirt.engine.core.common.businessentities.network value ) { super . setEntity ( value ) ; }

Target:
public void setEntity ( org.ovirt.engine.core.common.businessentities.Network value ) { super . setEntity ( value ) ; }
Source:
protected void OnSelectedItemChanged ( ) { super . OnSelectedItemChanged ( ) ; getAppListModel ( ) . setEntity ( getSelectedItem ( ) ) ; }

Target:
protected void OnSelectedItemChanged ( ) { super . OnSelectedItemChanged ( ) ; if ( ( getAppListModel ( ) ) != null ) { getAppListModel ( ) . setEntity ( getSelectedItem ( ) ) ; } }
Source:
protected boolean getForce ( ) { return this . force ; }

Target:
protected boolean getForce ( ) { return force ; }
Source:
protected boolean isVmWithSameNameExistStatic ( ) { return org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( org.ovirt.engine.core.bll.IsVmWithSameNameExistQuery.getParameters ( ) . getVmName ( ) ) ; }

Target:
protected boolean isVmWithSameNameExistStatic ( ) { return org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( org.ovirt.engine.core.bll.IsVmWithSameNameExistQuery.getParameters ( ) . getName ( ) ) ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.PauseGlusterVolumeGeoRepSessionCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeGeoRepSessionParameters ( ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.PauseGlusterVolumeGeoRepSessionCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeGeoRepSessionParameters ( ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
private void mapIsEmpty ( final org.ovirt.engine.core.common.queries.ValueObjectMap map ) { junit.framework.Assert.assertEquals ( 0 , map.getValuePairs ( ) . size ( ) ) ; }

Target:
private void mapIsEmpty ( final java.util.Map < java.lang.String , java.lang.String > map ) { junit.framework.Assert.assertEquals ( 0 , map.size ( ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain a ) { return ( ( a.getstatus ( ) ) == domainStatus ) && ( ! ( a.getId ( ) . equals ( getStorageDomain ( ) . getId ( ) ) ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain a ) { return ( ( a.getStatus ( ) ) == domainStatus ) && ( ! ( a.getId ( ) . equals ( getStorageDomain ( ) . getId ( ) ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.IPv4Address getPrimaryAddress ( ) { return networkDataCenterIpConfigurationDefinition.getIpv4PrimaryAddress ( ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.IPv4Address getIpv4PrimaryAddress ( ) { return networkDataCenterIpConfigurationDefinition.getIpv4PrimaryAddress ( ) ; }
Source:
protected boolean runConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type ) { return runConnectionStorageToDomain ( storageDomain , vdsId , type , null , Guid.Empty ) ; }

Target:
protected boolean runConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type ) { return runConnectionStorageToDomain ( storageDomain , vdsId , type , null , Guid.Empty ) ; }
Source:
public void validate_vmNameExists_Test ( ) { org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.common.scheduling.AffinityGroup ( ) ) . when ( affinityGroupDao ) . getByName ( org.mockito.Matchers.anyString ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_AFFINITY_GROUP_NAME_EXISTS ) ; }

Target:
public void validate_vmNameExists_Test ( ) { org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.common.scheduling.AffinityGroup ( ) ) . when ( affinityGroupDao ) . getByName ( org.mockito.Matchers.any ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_AFFINITY_GROUP_NAME_EXISTS ) ; }
Source:
public boolean isSingleSelectionOnly ( ) { return false ; }

Target:
public boolean isSingleSelectionOnly ( ) { return true ; }
Source:
public synchronized void removeStorageDomain ( org.ovirt.vdsmfake.domain.StorageDomain storageDomain ) { storageDomainMap.remove ( storageDomain.getId ( ) ) ; org.ovirt.vdsmfake.domain.VdsmManager.log.info ( "Removing storage domain: {}" , storageDomain.getId ( ) ) ; removeObject ( storageDomain ) ; }

Target:
public void removeStorageDomain ( org.ovirt.vdsmfake.domain.StorageDomain storageDomain ) { storageDomainMap.remove ( storageDomain.getId ( ) ) ; org.ovirt.vdsmfake.domain.VdsmManager.log.info ( "Removing storage domain: {}" , storageDomain.getId ( ) ) ; removeObject ( storageDomain ) ; }
Source:
protected void disableLoginScreen ( ) { getUserName ( ) . setIsChangeable ( false ) ; getPassword ( ) . setIsChangeable ( false ) ; getProfile ( ) . setIsChangeable ( false ) ; }

Target:
protected void disableLoginScreen ( ) { getUserName ( ) . setIsChangeable ( false ) ; getProfile ( ) . setIsChangeable ( false ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getQuotaId ( ) { return getQuota ( ) . getId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getQuotaId ( ) { return getQuota ( ) . getId ( ) ; }
Source:
public void checkIPAdress ( ) { java.util.Set < javax.validation.ConstraintViolation < org.ovirt.engine.core.common.utils.IPAddressPatternTest.IPAdress > > validate = validator.validate ( new org.ovirt.engine.core.common.utils.IPAddressPatternTest.IPAdress ( address ) ) ; org.junit.Assert.assertEquals ( validate.isEmpty ( ) , expectedResult ) ; }

Target:
public void checkIPAdress ( ) { java.util.Set < javax.validation.ConstraintViolation < org.ovirt.engine.core.common.utils.IPAddressPatternTest.IPAdress > > validate = validator.validate ( new org.ovirt.engine.core.common.utils.IPAddressPatternTest.IPAdress ( address ) ) ; org.junit.Assert.assertEquals ( expectedResult , validate.isEmpty ( ) ) ; }
Source:
public static org.ovirt.engine.core.common.queries.ValueObjectMap instantiate ( com.google.gwt.user.client.rpc.SerializationStreamReader streamReader ) throws com.google.gwt.user.client.rpc.SerializationException { org.ovirt.engine.core.common.queries.ValueObjectMap instance = new org.ovirt.engine.core.common.queries.ValueObjectMap ( ) ; return instance ; }

Target:
public static org.ovirt.engine.core.common.queries.ValueObjectMap instantiate ( com.google.gwt.user.client.rpc.SerializationStreamReader streamReader ) throws com.google.gwt.user.client.rpc.SerializationException { return new org.ovirt.engine.core.common.queries.ValueObjectMap ( ) ; }
Source:
public void testDiskAttachedToAnyNonDownVM ( ) { org.junit.Assert.assertThat ( validator.isDiskPluggedToAnyNonDownVm ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testDiskAttachedToAnyNonDownVM ( ) { org.junit.Assert.assertThat ( validator.isDiskPluggedToAnyNonDownVm ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void noCluster ( ) { simulateClusterDoesNotExist ( ) ; assertValidateFailure ( EngineMessage.VDS_CLUSTER_IS_NOT_VALID.toString ( ) ) ; }

Target:
public void noCluster ( ) { assertValidateFailure ( EngineMessage.VDS_CLUSTER_IS_NOT_VALID.toString ( ) ) ; }
Source:
public org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface createTestedInstance ( ) { return new org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface ( iface , network , networkQos , testedNetworkAttachment ) ; }

Target:
public org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface createTestedInstance ( ) { return new org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface ( iface , network , networkQos , testedNetworkAttachment , cluster ) ; }
Source:
protected org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacade ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) ; }

Target:
private static org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacade ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Provider getHostProvider ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getProviderDao ( ) . get ( org.ovirt.engine.core.bll.AddVdsCommand.getParameters ( ) . getProviderId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Provider < ? > getHostProvider ( ) { return org.ovirt.engine.core.bll.AddVdsCommand.getProviderDao ( ) . get ( org.ovirt.engine.core.bll.AddVdsCommand.getParameters ( ) . getProviderId ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getStorageDomainDao ( ) ; existingDomain = dao.get ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; existingDomain = dao.get ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup getVDSGroup ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VDSGroup.class , VdcQueryType.GetVdsGroupByVdsGroupId , new org.ovirt.engine.core.common.queries.GetVdsGroupByVdsGroupIdParameters ( asGuid ( clusterId ) ) , clusterId ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDSGroup getVDSGroup ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VDSGroup.class , VdcQueryType.GetVdsGroupByVdsGroupId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( clusterId ) ) , clusterId ) ; }
Source:
private void writeBuffer ( java.nio.ByteBuffer buff ) throws java.io.IOException , org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { if ( ! ( isOpen ( ) ) ) { connect ( ) ; } write ( buff ) ; }

Target:
protected void writeBuffer ( java.nio.ByteBuffer buff ) throws java.io.IOException , org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { if ( ! ( isOpen ( ) ) ) { connect ( ) ; } write ( buff ) ; }
Source:
public void invalidLowMTU ( ) { java.util.Set < javax.validation.ConstraintViolation < org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer > > validate = validate ( new org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer ( 30 ) ) ; org.junit.Assert.assertTrue ( ( ( validate.size ( ) ) > 0 ) ) ; }

Target:
public void invalidLowMTU ( ) { java.util.Set < javax.validation.ConstraintViolation < org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer > > validate = validate ( new org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer ( 30 ) ) ; org.junit.Assert.assertTrue ( ( ! ( validate.isEmpty ( ) ) ) ) ; }
Source:
protected boolean canDoAction ( ) { org.ovirt.engine.core.bll.validator.HostNetworkQosValidator validator = getQosValidator ( getQos ( ) ) ; return ( ( super . canDoAction ( ) ) && ( validate ( validator.requiredValuesPresent ( ) ) ) ) && ( validate ( validator.valuesConsistent ( ) ) ) ; }

Target:
protected boolean validate ( ) { org.ovirt.engine.core.bll.validator.HostNetworkQosValidator validator = getQosValidator ( getQos ( ) ) ; return ( ( super . validate ( ) ) && ( validate ( validator.requiredValuesPresent ( ) ) ) ) && ( validate ( validator.valuesConsistent ( ) ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i ) { if ( ( i.getNetworkName ( ) ) != null ) { return i.getNetworkName ( ) . equals ( getParameters ( ) . getNetwork ( ) . getname ( ) ) ; } return false ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i ) { if ( ( i.getNetworkName ( ) ) != null ) { return i.getNetworkName ( ) . equals ( getParameters ( ) . getNetwork ( ) . getName ( ) ) ; } return false ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 , false , false , false ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 1 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 , false , false , false ) ; verifyModel ( resource.get ( ) , 1 ) ; }
Source:
public void testMarkHostDevicesUsedByVmId ( ) { dao.markHostDevicesUsedByVmId ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_VM_ID ) ; org.ovirt.engine.core.common.businessentities.HostDevice hostDevice = dao.getHostDeviceByHostIdAndDeviceName ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_HOST_ID , org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_DEVICE_NAME ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_VM_ID , hostDevice.getVmId ( ) ) ; }

Target:
public void testMarkHostDevicesUsedByVmId ( ) { dao.markHostDevicesUsedByVmId ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_VM_ID , org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_HOST_ID ) ; org.ovirt.engine.core.common.businessentities.HostDevice hostDevice = dao.getHostDeviceByHostIdAndDeviceName ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_HOST_ID , org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_DEVICE_NAME ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_VM_ID , hostDevice.getVmId ( ) ) ; }
Source:
public org.ovirt.vdsmfake.AppConfig.ArchitectureType getArchitectureType ( ) { return architectureType ; }

Target:
public org.ovirt.vdsmfake.AppConfig.ArchitectureType getArchitectureType ( ) { return org.ovirt.vdsmfake.AppConfig.ArchitectureType.valueOf ( architectureType ) ; }
Source:
public void testGetAllAttachableDisksByPoolWithNoPermissionsFilterDisabled ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Disk > result = dao.getAllAttachableDisksByPoolId ( null , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; org.ovirt.engine.core.dao.DiskDaoTest.assertFullGetAllAttachableDisksByPoolId ( result ) ; }

Target:
public void testGetAllAttachableDisksByPoolWithNoPermissionsFilterDisabled ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Disk > result = dao.getAllAttachableDisksByPoolId ( null , null , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; org.ovirt.engine.core.dao.DiskDaoTest.assertFullGetAllAttachableDisksByPoolId ( result ) ; }
Source:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getCommand ( cmdId ) . endAction ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }

Target:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { endAction ( cmdId , true ) ; }
Source:
static com.google.gwt.event.shared.EventBus getEventBus ( ) { return org.ovirt.engine.ui.userportal.gin.ClientGinjectorProvider.instance ( ) . getEventBus ( ) ; }

Target:
static com.google.gwt.event.shared.EventBus getEventBus ( ) { return org.ovirt.engine.ui.userportal.gin.ClientGinjectorProvider.getEventBus ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.permissions getPermissions ( java.lang.String id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.permissions.class , VdcQueryType.GetPermissionById , new org.ovirt.engine.core.common.queries.MultilevelAdministrationByPermissionIdParameters ( new org.ovirt.engine.core.compat.Guid ( id ) ) , id ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.permissions getPermissions ( java.lang.String id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.permissions.class , VdcQueryType.GetPermissionById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( new org.ovirt.engine.core.compat.Guid ( id ) ) , id ) ; }
Source:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; updateAlerts ( ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; }
Source:
public void validateCanDoAction ( ) { setupForStorageTests ( ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }

Target:
public void validate ( ) { setupForStorageTests ( ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }
Source:
public void checkCinderStorageDomainContainDisks ( ) { setCinderStorageDomainStatus ( StorageDomainStatus.Inactive ) ; storagePoolExists ( ) ; cinderStorageDomainContainsDisks ( ) ; masterDomainIsUp ( ) ; canDetachDomain ( ) ; org.junit.Assert.assertFalse ( cmd.canDetachDomain ( false , false ) ) ; }

Target:
public void checkCinderStorageDomainContainDisks ( ) { setCinderStorageDomainStatus ( StorageDomainStatus.Inactive ) ; storagePoolExists ( ) ; cinderStorageDomainContainsDisks ( ) ; masterDomainIsUp ( ) ; canDetachDomain ( ) ; org.junit.Assert.assertFalse ( cmd.canDetachDomain ( false ) ) ; }
Source:
public org.ovirt.engine.core.common.vdscommands.VDSReturnValue get ( ) { try { return get ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.vdsTimeout ) , java.util.concurrent.TimeUnit.SECONDS ) ; } catch ( java.util.concurrent.TimeoutException e ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.FutureVDSCommand.getVDSReturnValue ( ) ; } }

Target:
public org.ovirt.engine.core.common.vdscommands.VDSReturnValue get ( ) { try { return get ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.vdsTimeout ) , java.util.concurrent.TimeUnit.SECONDS ) ; } catch ( java.util.concurrent.TimeoutException e ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.FutureVDSCommand.getVDSReturnValue ( ) ; } }
Source:
public java.lang.Object getQueryableId ( ) { return null ; }

Target:
public java.lang.Object getQueryableId ( ) { return id ; }
Source:
public static org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils getInstance ( ) { if ( ( org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils.vmPropertiesUtils ) == null ) { org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils.vmPropertiesUtils = new org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils ( ) ; org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils.vmPropertiesUtils.init ( ) ; } return org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils.vmPropertiesUtils ; }

Target:
public static org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils getInstance ( ) { return org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils.vmPropertiesUtils ; }
Source:
public void discardAfterDeleteSupportedByDcVersion ( ) { domain.setDiscardAfterDelete ( true ) ; org.ovirt.engine.core.bll.validator.storage.StorageDomainValidatorTest.mcr.mockConfigValue ( ConfigValues.DiscardAfterDeleteSupported , Version.v4_1 , true ) ; org.junit.Assert.assertThat ( validator.isDiscardAfterDeleteSupportedByDcVersion ( Version.v4_1 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void discardAfterDeleteSupportedByDcVersion ( ) { domain.setDiscardAfterDelete ( true ) ; org.junit.Assert.assertThat ( validator.isDiscardAfterDeleteSupportedByDcVersion ( Version.v4_1 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private void setupMock ( ) throws java.lang.Exception { org.mockito.Mockito.doReturn ( jobDaoMock ) . when ( command ) . getJobDao ( ) ; org.mockito.Mockito.when ( jobDaoMock.get ( org.ovirt.engine.core.bll.ClearExternalJobCommandTest.jobId ) ) . thenReturn ( makeTestJob ( org.ovirt.engine.core.bll.ClearExternalJobCommandTest.jobId ) ) ; }

Target:
public void setupMock ( ) throws java.lang.Exception { org.mockito.Mockito.doReturn ( jobDaoMock ) . when ( command ) . getJobDao ( ) ; org.mockito.Mockito.when ( jobDaoMock.get ( org.ovirt.engine.core.bll.ClearExternalJobCommandTest.jobId ) ) . thenReturn ( makeTestJob ( org.ovirt.engine.core.bll.ClearExternalJobCommandTest.jobId ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getDestinationStorageDomainId ( ) { return ( mNewCreatedDiskImage.getStorageIds ( ) ) != null ? mNewCreatedDiskImage.getStorageIds ( ) . get ( 0 ) . getValue ( ) : org.ovirt.engine.core.compat.Guid.Empty ; }

Target:
protected org.ovirt.engine.core.compat.Guid getDestinationStorageDomainId ( ) { return ( mNewCreatedDiskImage.getStorageIds ( ) ) != null ? mNewCreatedDiskImage.getStorageIds ( ) . get ( 0 ) : org.ovirt.engine.core.compat.Guid.Empty ; }
Source:
private void initTabAvailabilityListeners ( final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel vm ) { highAvailabilityTab.setVisible ( false ) ; isStatelessEditor.setVisible ( true ) ; numOfMonitorsEditor.setVisible ( true ) ; allowConsoleReconnectEditor.setVisible ( true ) ; expander.setVisible ( true ) ; }

Target:
private void initTabAvailabilityListeners ( ) { highAvailabilityTab.setVisible ( false ) ; isStatelessEditor.setVisible ( true ) ; numOfMonitorsEditor.setVisible ( true ) ; }
Source:
protected java.lang.Number getRawValue ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface object ) { return object.getStatistics ( ) . getTransmittedBytes ( ) ; }

Target:
protected java.lang.Number getRawValue ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface object ) { return object != null ? object.getStatistics ( ) . getTransmittedBytes ( ) : null ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getWatchdogs ( ) { return getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( org.ovirt.engine.core.bll.AbstractVmWatchdogCommand.getParameters ( ) . getId ( ) , VmDeviceGeneralType.WATCHDOG ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getWatchdogs ( ) { return org.ovirt.engine.core.bll.AbstractVmWatchdogCommand.getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( org.ovirt.engine.core.bll.AbstractVmWatchdogCommand.getParameters ( ) . getId ( ) , VmDeviceGeneralType.WATCHDOG ) ; }
Source:
public static < T , W extends org.ovirt.engine.ui.common.widget.AbstractValidatedWidgetWithLabel < T , ? > > org.ovirt.engine.ui.common.widget.editor.WidgetWithLabelEditor < T , W > of ( com.google.gwt.editor.client.LeafValueEditor < T > subEditor , W widgetWithLabel ) { return new org.ovirt.engine.ui.common.widget.editor.WidgetWithLabelEditor < T , W > ( subEditor , widgetWithLabel ) ; }

Target:
public static < T , W extends org.ovirt.engine.ui.common.widget.AbstractValidatedWidgetWithLabel < T , ? > > org.ovirt.engine.ui.common.widget.editor.WidgetWithLabelEditor < T , W > of ( com.google.gwt.editor.client.LeafValueEditor < T > subEditor , W widgetWithLabel ) { return new org.ovirt.engine.ui.common.widget.editor.WidgetWithLabelEditor ( subEditor , widgetWithLabel ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getParameters ( org.ovirt.engine.api.model.Disk incoming , org.ovirt.engine.api.model.Disk entity ) { return new org.ovirt.engine.core.common.action.UpdateVmDiskParameters ( vmId , entity.getId ( ) , map ( incoming , entity ) ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getParameters ( org.ovirt.engine.api.model.Disk incoming , org.ovirt.engine.api.model.Disk entity ) { return new org.ovirt.engine.core.common.action.UpdateVmDiskParameters ( vmId , map ( incoming , entity ) ) ; }
Source:
public int getVlanId ( ) { java.lang.Integer vlanId = getEntity ( ) . getvlan_id ( ) ; return vlanId == null ? - 1 : vlanId ; }

Target:
public int getVlanId ( ) { java.lang.Integer vlanId = getEntity ( ) . getVlanId ( ) ; return vlanId == null ? - 1 : vlanId ; }
Source:
protected org.ovirt.engine.ui.webadmin.ApplicationResources getApplicationResources ( ) { return org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.instance ( ) . getApplicationResources ( ) ; }

Target:
protected org.ovirt.engine.ui.webadmin.ApplicationResources getApplicationResources ( ) { return org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getApplicationResources ( ) ; }
Source:
protected org.ovirt.engine.api.model.Template getFromDataDomain ( ) { return performGet ( VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( guid ) ) ; }

Target:
private org.ovirt.engine.api.model.Template getFromDataDomain ( ) { return performGet ( VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( guid ) ) ; }
Source:
public org.ovirt.engine.api.resource.NetworkResource getNetworkResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendNetworkResource ( id , this ) ) ; }

Target:
public org.ovirt.engine.api.resource.NetworkResource getNetworkResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendNetworkResource ( id ) ) ; }
Source:
public void run ( ) { try { returnValue = org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( actionType , actionParameters ) ; } catch ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.bll.RegisterVdsQuery.log.error ( "RegisterVdsQuery::WorkMethod [within thread]: An exception has been thrown." , ex ) ; } finally { latch.countDown ( ) ; } }

Target:
public void run ( ) { try { returnValue = org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( actionType , actionParameters ) ; } catch ( java.lang.RuntimeException ex ) { log.error ( "RegisterVdsQuery::WorkMethod [within thread]: An exception has been thrown." , ex ) ; } finally { latch.countDown ( ) ; } }
Source:
public org.ovirt.engine.core.bll.ValidationResult imageProvidedForOvirtNode ( java.lang.String image ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) . when ( ( ( ( getHost ( ) . getVdsType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode ) ) && ( org.apache.commons.lang.StringUtils.isBlank ( image ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult imageProvidedForOvirtNode ( java.lang.String image ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) . when ( ( ( ( host.getVdsType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode ) ) && ( org.apache.commons.lang.StringUtils.isBlank ( image ) ) ) ) ; }
Source:
protected org.ovirt.engine.api.model.Network getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNetworksResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.api.model.Network.class ) , false , false , index ) ; }

Target:
protected org.ovirt.engine.api.model.Network getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNetworksResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.api.model.Network.class ) , false , false , false , index ) ; }
Source:
public void add ( ) { runAddAndVerify ( org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) , false , org.mockito.Mockito.times ( 0 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.OS_ID , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VERSION_3_2 ) ; }

Target:
public void add ( ) { runAddAndVerify ( org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) , false , org.mockito.Mockito.times ( 0 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.OS_ID ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatic result = dao.getByName ( existingEntity.getStorageName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingEntity.getId ( ) , result.getId ( ) ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatic result = dao.getByName ( existingEntity.getStorageName ( ) ) ; org.junit.Assert.assertEquals ( existingEntity , result ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getCollection ( ) { return getBackendCollection ( VdcQueryType.GetVdsInterfacesByVdsId , new org.ovirt.engine.core.common.queries.GetVdsByVdsIdParameters ( asGuid ( hostId ) ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getCollection ( ) { return getBackendCollection ( VdcQueryType.GetVdsInterfacesByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( hostId ) ) ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getSelectedItems ( ) { return GetSelectedItems ( false ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getSelectedItems ( ) { return getSelectedItems ( false ) ; }
Source:
public void discardIsFalseWhenDiscardAfterDeleteIsTrueAndDomainDoesNotSupportDiscard ( ) { assertDiscardValue ( true , false , false ) ; assertDiscardValue ( true , null , false ) ; }

Target:
public void discardIsFalseWhenDiscardAfterDeleteIsTrueAndDomainDoesNotSupportDiscard ( ) { assertDiscardValue ( true , false , false , false ) ; assertDiscardValue ( true , null , false , false ) ; }
Source:
private org.ovirt.engine.core.common.action.AddDiskParameters createParameters ( ) { org.ovirt.engine.core.common.businessentities.DiskImageBase image = new org.ovirt.engine.core.common.businessentities.DiskImageBase ( ) ; image.setDiskInterface ( DiskInterface.IDE ) ; org.ovirt.engine.core.common.action.AddDiskParameters parameters = new org.ovirt.engine.core.common.action.AddDiskParameters ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , image ) ; return parameters ; }

Target:
private static org.ovirt.engine.core.common.action.AddDiskParameters createParameters ( ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setDiskInterface ( DiskInterface.IDE ) ; org.ovirt.engine.core.common.action.AddDiskParameters parameters = new org.ovirt.engine.core.common.action.AddDiskParameters ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , image ) ; return parameters ; }
Source:
public org.ovirt.engine.api.model.Host get ( ) { if ( isForce ( ) ) { performAction ( VdcActionType.RefreshHost , new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) ) ; } org.ovirt.engine.api.model.Host host = getVdsByVdsId ( ) ; deprecatedAddLinksToAgents ( host ) ; return host ; }

Target:
public org.ovirt.engine.api.model.Host get ( ) { org.ovirt.engine.api.model.Host host = getVdsByVdsId ( ) ; deprecatedAddLinksToAgents ( host ) ; return host ; }
Source:
private void initGeneralForm ( ) { generalForm = new org.ovirt.engine.ui.common.widget.uicommon.vm.VmSnapshotInfoGeneral ( constants , messages ) ; }

Target:
private void initGeneralForm ( ) { generalForm = new org.ovirt.engine.ui.common.widget.uicommon.vm.VmSnapshotInfoGeneral ( ) ; }
Source:
private void fillPasswordsMap ( ) { passwordPerDomain = org.ovirt.engine.core.common.config.Config.< org.ovirt.engine.core.dal.dbbroker.generic.DomainsPasswordMap > GetValue ( ConfigValues.AdUserPassword ) ; }

Target:
private void fillPasswordsMap ( ) { passwordPerDomain = org.ovirt.engine.core.common.config.Config.< org.ovirt.engine.core.dal.dbbroker.generic.DomainsPasswordMap > getValue ( ConfigValues.AdUserPassword ) ; }
Source:
public void cleanup ( ) { driver.cleanup ( ) ; }

Target:
public void cleanup ( ) { }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object result ) { setGuestAgentData ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > ) ( result ) ) ) ; org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceListModel.super . SyncSearch ( VdcQueryType.GetVmInterfacesByVmId , new org.ovirt.engine.core.common.queries.GetVmByVmIdParameters ( vm.getId ( ) ) ) ; }

Target:
public void OnSuccess ( java.lang.Object model , java.lang.Object result ) { setGuestAgentData ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > ) ( result ) ) ) ; org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceListModel.super . SyncSearch ( VdcQueryType.GetVmInterfacesByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vm.getId ( ) ) ) ; }
Source:
public void setUp ( ) { disk1 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; disk2 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; disk3 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; org.mockito.Mockito.when ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) ) . thenReturn ( storageDomainDaoMock ) ; }

Target:
public void setUp ( ) { disk1 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; disk2 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; disk3 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; }
Source:
public void testJsonNullDiskDescription ( ) throws java.io.IOException { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( null ) ; org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.assertDiskDescriptionMap ( disk ) ; }

Target:
public void testJsonNullDiskDescription ( ) throws java.io.IOException { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( null ) ; assertDiskDescriptionMap ( disk ) ; }
Source:
public org.ovirt.engine.core.dao.VdsDAO getVdsDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDAO ( ) ; }

Target:
public org.ovirt.engine.core.dao.VdsDAO getVdsDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) ; }
Source:
public void testGetMessagesBundleLocale ( ) { java.util.ResourceBundle bundle = testTheme.getMessagesBundle ( java.util.Locale.FRENCH ) ; org.junit.Assert.assertNotNull ( "There should be a bundle" , bundle ) ; org.junit.Assert.assertEquals ( "Login header(fr)" , bundle.getString ( "obrand.common.login_header_label" ) ) ; }

Target:
public void testGetMessagesBundleLocale ( ) { java.util.List < java.util.ResourceBundle > bundle = testTheme.getMessagesBundle ( java.util.Locale.FRENCH ) ; org.junit.Assert.assertNotNull ( "There should be a bundle" , bundle ) ; org.junit.Assert.assertEquals ( "Login header(fr)" , bundle.get ( 0 ) . getString ( "obrand.common.login_header_label" ) ) ; }
Source:
public boolean isOvfTemplate ( java.lang.String ovfstring ) throws org.ovirt.engine.core.utils.ovf.OvfReaderException { return ovfManager.IsOvfTemplate ( ovfstring ) ; }

Target:
public boolean isOvfTemplate ( java.lang.String ovfstring ) throws org.ovirt.engine.core.utils.ovf.OvfReaderException { return ovfManager.isOvfTemplate ( ovfstring ) ; }
Source:
protected org.ovirt.engine.core.bll.HotPlugDiskToVmCommand < org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters > createCommand ( ) { return new org.ovirt.engine.core.bll.HotPlugDiskToVmCommand < org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters > ( createParameters ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.HotPlugDiskToVmCommand < org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters > createCommand ( ) { return new org.ovirt.engine.core.bll.HotPlugDiskToVmCommand ( createParameters ( ) ) ; }
Source:
public void testVmFailNoDisks ( ) { org.ovirt.engine.core.bll.validator.RunVmValidatorTest.validateResult ( runVmValidator.validateBootSequence ( new org.ovirt.engine.core.common.businessentities.VM ( ) , null , new java.util.ArrayList < > ( ) , null ) , false , EngineMessage.VM_CANNOT_RUN_FROM_DISK_WITHOUT_DISK ) ; }

Target:
public void testVmFailNoDisks ( ) { org.ovirt.engine.core.bll.validator.RunVmValidatorTest.validateResult ( runVmValidator.validateBootSequence ( new org.ovirt.engine.core.common.businessentities.VM ( ) , new java.util.ArrayList < > ( ) , null ) , false , EngineMessage.VM_CANNOT_RUN_FROM_DISK_WITHOUT_DISK ) ; }
Source:
public int getMaxPciDevices ( int osId , org.ovirt.engine.core.compat.Version Version ) ;

Target:
public int getMaxPciDevices ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
private static java.util.List < org.ovirt.engine.core.aaa.DirectoryGroup > queryGroups ( org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , final org.ovirt.engine.api.extensions.ExtMap filter ) { return org.ovirt.engine.core.aaa.AuthzUtils.populateGroups ( extension , Authz.InvokeCommands.QUERY_OPEN , new org.ovirt.engine.api.extensions.ExtMap ( ) . mput ( Authz.InvokeKeys.QUERY_ENTITY , Authz.QueryEntity.GROUP ) . mput ( Authz.InvokeKeys.QUERY_FILTER , filter ) ) ; }

Target:
private static java.util.List < org.ovirt.engine.core.aaa.DirectoryGroup > queryGroups ( org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , final org.ovirt.engine.api.extensions.ExtMap filter ) { return org.ovirt.engine.core.aaa.AuthzUtils.populateGroups ( extension , new org.ovirt.engine.api.extensions.ExtMap ( ) . mput ( Authz.InvokeKeys.QUERY_ENTITY , Authz.QueryEntity.GROUP ) . mput ( Authz.InvokeKeys.QUERY_FILTER , filter ) ) ; }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator build ( ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , params , existingInterfaces , existingAttachments , networkBusinessEntityMap , managementNetworkUtil , networkClusterDaoMock , networkAttachmentDaoMock , networkDaoMock , vdsDaoMock , new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorHelper ( ) , vmDao ) ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator build ( ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , params , existingInterfaces , existingAttachments , networkBusinessEntityMap , managementNetworkUtil , networkClusterDaoMock , networkDaoMock , vdsDaoMock , new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorHelper ( ) , vmDao ) ; }
Source:
public void canDetachMaintenanceDomain ( ) { setStorageDomainStatus ( StorageDomainStatus.Maintenance ) ; storagePoolExists ( ) ; masterDomainIsUp ( ) ; canDetachDomain ( ) ; org.junit.Assert.assertTrue ( cmd.canDetachDomain ( false , false ) ) ; }

Target:
public void canDetachMaintenanceDomain ( ) { setStorageDomainStatus ( StorageDomainStatus.Maintenance ) ; storagePoolExists ( ) ; masterDomainIsUp ( ) ; canDetachDomain ( ) ; org.junit.Assert.assertTrue ( cmd.canDetachDomain ( false ) ) ; }
Source:
private void commitNetworkChanges ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.util.List < org.ovirt.engine.ui.uicommonweb.models.hosts.network.LogicalNetworkModel > networks ) { org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel bondModel = nicMap.get ( iface.getName ( ) ) ; org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.attachNetworks ( bondModel , new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.hosts.network.LogicalNetworkModel > ( networks ) , hostSetupNetworksParametersData ) ; }

Target:
private void commitNetworkChanges ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.util.List < org.ovirt.engine.ui.uicommonweb.models.hosts.network.LogicalNetworkModel > networks ) { org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel bondModel = nicMap.get ( iface.getName ( ) ) ; org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.attachNetworks ( bondModel , new java.util.ArrayList ( networks ) , hostSetupNetworksParametersData ) ; }
Source:
protected boolean runConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type ) { return RunConnectionStorageToDomain ( storageDomain , vdsId , type , null , Guid.Empty ) ; }

Target:
protected boolean runConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type ) { return runConnectionStorageToDomain ( storageDomain , vdsId , type , null , Guid.Empty ) ; }
Source:
private static java.lang.Integer getLowDiskSpaceThreshold ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.FreeSpaceCriticalLowInGB ) ; }

Target:
private static java.lang.Integer getLowDiskSpaceThreshold ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.FreeSpaceCriticalLowInGB ) ; }
Source:
public boolean hasTasks ( ) { return ! ( getReturnValue ( ) . getTaskIdList ( ) . isEmpty ( ) ) ; }

Target:
private boolean hasTasks ( ) { return ! ( getReturnValue ( ) . getTaskIdList ( ) . isEmpty ( ) ) ; }
Source:
protected 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 createTask ( taskId , asyncTaskCreationInfo , parentCommand , null , entityType , entityIds ) ; }

Target:
protected 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 ) { return createTask ( taskId , asyncTaskCreationInfo , parentCommand , null , new java.util.HashMap < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.VdcObjectType > ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VolumeFormat getvolume_format ( ) { return getImage ( ) . getVolumeFormat ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VolumeFormat getVolumeFormat ( ) { return getImage ( ) . getVolumeFormat ( ) ; }
Source:
public void testSave ( ) { dao.save ( newPool ) ; org.ovirt.engine.core.common.businessentities.storage_pool result = dao.getByName ( newPool.getname ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newPool , result ) ; }

Target:
public void testSave ( ) { dao.save ( newPool ) ; org.ovirt.engine.core.common.businessentities.StoragePool result = dao.getByName ( newPool.getname ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newPool , result ) ; }
Source:
private boolean isAtLeastOneVmIsNotDown ( java.util.List < org.ovirt.engine.core.common.businessentities.VM > vmsDiskPluggedTo ) { for ( org.ovirt.engine.core.common.businessentities.VM vm : vmsDiskPluggedTo ) { if ( ( vm.getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) { return true ; } } return false ; }

Target:
protected boolean isAtLeastOneVmIsNotDown ( java.util.List < org.ovirt.engine.core.common.businessentities.VM > vmsDiskPluggedTo ) { for ( org.ovirt.engine.core.common.businessentities.VM vm : vmsDiskPluggedTo ) { if ( ( vm.getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) { return true ; } } return false ; }