auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void initCommand ( ) { org.mockito.Mockito.doReturn ( executor ) . when ( command ) . createHostFenceActionExecutor ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VDS.class ) , org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.FencingPolicy.class ) ) ; command.setClusterId ( org.ovirt.engine.core.bll.pm.StartVdsCommandTest.FENCECD_HOST_CLUSTER_ID ) ; }

Target:
private void initCommand ( ) { org.mockito.Mockito.doReturn ( executor ) . when ( command ) . createHostFenceActionExecutor ( org.mockito.Matchers.any ( ) , org.mockito.Matchers.any ( ) ) ; command.setClusterId ( org.ovirt.engine.core.bll.pm.StartVdsCommandTest.FENCECD_HOST_CLUSTER_ID ) ; }
Source:
private static java.lang.String getDeviceType ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct device ) { return ( ( java.lang.String ) ( device.getItem ( VdsProperties.Device ) ) ) ; }

Target:
private static java.lang.String getDeviceType ( java.util.Map device ) { return ( ( java.lang.String ) ( device.get ( VdsProperties.Device ) ) ) ; }
Source:
public void getOneSnapshotsByMemory ( ) { org.junit.Assert.assertEquals ( dao.getNumOfSnapshotsByMemory ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_MEMORY_VOLUME ) , 1 ) ; }

Target:
public void getOneSnapshotsByMemory ( ) { org.junit.Assert.assertEquals ( 1 , dao.getNumOfSnapshotsByMemory ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_MEMORY_VOLUME ) ) ; }
Source:
private boolean liveActionRequired ( ) { return ( ( oldIface.isPlugged ( ) ) && ( getInterface ( ) . isPlugged ( ) ) ) && ( ( org.ovirt.engine.core.bll.network.vm.UpdateVmInterfaceCommand.getVm ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) ; }

Target:
private boolean liveActionRequired ( ) { return ( ( oldIface.isPlugged ( ) ) && ( org.ovirt.engine.core.bll.network.vm.UpdateVmInterfaceCommand.getInterface ( ) . isPlugged ( ) ) ) && ( ( org.ovirt.engine.core.bll.network.vm.UpdateVmInterfaceCommand.getVm ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) ; }
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 , false , 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 ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false ) ; }
Source:
public void setDedicatedVmForVds ( org.ovirt.engine.core.compat.NGuid value ) { vmStatic.setDedicatedVmForVds ( value ) ; }

Target:
public void setDedicatedVmForVds ( org.ovirt.engine.core.compat.Guid value ) { vmStatic.setDedicatedVmForVds ( value ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > getAllWithQuery ( java.lang.String query ) { return new org.springframework.jdbc.core.simple.SimpleJdbcTemplate ( jdbcTemplate ) . query ( query , org.ovirt.engine.core.dao.VdsGroupDAODbFacadeImpl.VdsGroupRowMapper.instance ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > getAllWithQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.VdsGroupDAODbFacadeImpl.VdsGroupRowMapper.instance ) ; }
Source:
public void testMapConfigurationType ( ) { org.ovirt.engine.api.model.ConfigurationType configurationTypeBll = org.ovirt.engine.api.restapi.types.VmMapper.map ( ConfigurationType.OVF , null ) ; assertEquals ( configurationTypeBll , org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.ConfigurationType ) ; org.ovirt.engine.api.model.ConfigurationType configurationTypeApi = org.ovirt.engine.api.restapi.types.VmMapper.map ( org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.ConfigurationType , null ) ; assertEquals ( configurationTypeApi , ConfigurationType.OVF ) ; }

Target:
public void testMapConfigurationType ( ) { org.ovirt.engine.api.model.ConfigurationType configurationTypeBll = org.ovirt.engine.api.restapi.types.VmMapper.map ( ConfigurationType.OVF , null ) ; assertEquals ( org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.ConfigurationType , configurationTypeBll ) ; org.ovirt.engine.api.model.ConfigurationType configurationTypeApi = org.ovirt.engine.api.restapi.types.VmMapper.map ( org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.ConfigurationType , null ) ; assertEquals ( ConfigurationType.OVF , configurationTypeApi ) ; }
Source:
public void testValidateStoragePoolNoStoragePoolId ( ) { org.junit.Assert.assertFalse ( command.validateStoragePool ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.assertValidationMessages ( "" , command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ; }

Target:
public void testValidateStoragePoolNoStoragePoolId ( ) { org.junit.Assert.assertFalse ( command.validate ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.assertValidationMessages ( "" , command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain a ) { return ( a.getId ( ) . equals ( getStorageDomain ( ) . getId ( ) ) ) && ( ( a.getstatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain a ) { return ( a.getId ( ) . equals ( getStorageDomain ( ) . getId ( ) ) ) && ( ( a.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network network ) { return network.getname ( ) . equals ( getParameters ( ) . getNetwork ( ) . getname ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return network.getname ( ) . equals ( getParameters ( ) . getNetwork ( ) . getname ( ) ) ; }
Source:
void bindInfrastructure ( ) { bindCommonInfrastructure ( org.ovirt.engine.ui.userportal.place.UserPortalPlaceManager.class ) ; bind ( org.ovirt.engine.ui.userportal.auth.LoggedInExtendedPlaceGatekeeper.class ) . in ( com.google.inject.Singleton.class ) ; bind ( org.ovirt.engine.ui.userportal.system.ApplicationInit.class ) . asEagerSingleton ( ) ; bind ( org.ovirt.engine.ui.userportal.auth.CurrentUserRole.class ) . in ( com.google.inject.Singleton.class ) ; }

Target:
void bindInfrastructure ( ) { bindCommonInfrastructure ( org.ovirt.engine.ui.userportal.place.UserPortalPlaceManager.class ) ; bind ( org.ovirt.engine.ui.userportal.auth.LoggedInExtendedPlaceGatekeeper.class ) . in ( com.google.inject.Singleton.class ) ; bind ( org.ovirt.engine.ui.userportal.auth.CurrentUserRole.class ) . in ( com.google.inject.Singleton.class ) ; }
Source:
protected javax.ws.rs.core.UriInfo setUpUriInfoExpectations ( ) { javax.ws.rs.core.UriInfo uriInfo = setUpBasicUriExpectations ( ) ; org.easymock.EasyMock.expect ( uriInfo.getPath ( ) ) . andReturn ( "" ) . anyTimes ( ) ; return uriInfo ; }

Target:
protected javax.ws.rs.core.UriInfo setUpUriInfoExpectations ( ) { javax.ws.rs.core.UriInfo uriInfo = setUpBasicUriExpectations ( ) ; org.mockito.Mockito.when ( uriInfo.getPath ( ) ) . thenReturn ( "" ) ; return uriInfo ; }
Source:
public void postDisconnect ( ) { if ( ( this . nioEngine ) != null ) { this . nioEngine.clearBuff ( ) ; } outbox.clear ( ) ; this . nioEngine = null ; }

Target:
public void postDisconnect ( ) { if ( ( this . nioEngine ) != null ) { this . nioEngine.clearBuff ( ) ; } this . nioEngine = null ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > getAllWithQuery ( java.lang.String query ) { return new org.springframework.jdbc.core.simple.SimpleJdbcTemplate ( jdbcTemplate ) . query ( query , org.ovirt.engine.core.dao.VmTemplateDAODbFacadeImpl.VMTemplateRowMapper.instance ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > getAllWithQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.VmTemplateDAODbFacadeImpl.VMTemplateRowMapper.instance ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( false ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 0 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( false ) ; verifyModel ( resource.get ( ) , 0 ) ; }
Source:
protected org.ovirt.engine.core.dao.StoragePoolIsoMapDAO getStoragePoolIsoMapDao ( ) { return org.ovirt.engine.core.bll.AbstractDiskVmCommand.getDbFacade ( ) . getStoragePoolIsoMapDAO ( ) ; }

Target:
protected org.ovirt.engine.core.dao.StoragePoolIsoMapDAO getStoragePoolIsoMapDao ( ) { return org.ovirt.engine.core.bll.AbstractDiskVmCommand.getDbFacade ( ) . getStoragePoolIsoMapDao ( ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData object ) { return new org.ovirt.engine.ui.webadmin.widget.table.column.VmTypeColumn ( ) . getValue ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) ) ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData object ) { return new org.ovirt.engine.ui.webadmin.widget.table.column.VmTypeColumn ( ) . getValue ( object.getVm ( ) ) ; }
Source:
public void clearSession ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.clean ( ) ; org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( "session" ) ; org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSession ( ) ; }

Target:
public void clearSession ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.clean ( ) ; }
Source:
public boolean isAllowSnapshot ( ) { return ( ! ( isShareable ( ) ) ) && ( ! ( java.lang.Boolean.TRUE.equals ( getReadOnly ( ) ) ) ) ; }

Target:
public boolean isAllowSnapshot ( ) { return ! ( isShareable ( ) ) ; }
Source:
protected void updateAllInBatch ( java.lang.String procedureName , java.util.Collection < T > paramValues , org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < T > mapper ) { org.ovirt.engine.core.dao.MassOperationsGenericDaoDbFacade.getCallsHandler ( ) . executeStoredProcAsBatch ( ( procedureName == null ? org.ovirt.engine.core.dao.MassOperationsGenericDaoDbFacade.getProcedureNameForUpdate ( ) : procedureName ) , paramValues , mapper ) ; }

Target:
public void updateAllInBatch ( java.lang.String procedureName , java.util.Collection < T > paramValues , org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < T > mapper ) { org.ovirt.engine.core.dao.MassOperationsGenericDaoDbFacade.getCallsHandler ( ) . executeStoredProcAsBatch ( ( procedureName == null ? org.ovirt.engine.core.dao.MassOperationsGenericDaoDbFacade.getProcedureNameForUpdate ( ) : procedureName ) , paramValues , mapper ) ; }
Source:
private void totalCPUCores_EntityChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { removeCPUListeners ( ) ; behavior.totalCpuCoresChanged ( ) ; setNumaChanged ( true ) ; addCPUListeners ( ) ; }

Target:
private void totalCPUCores_EntityChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { removeCPUListeners ( ) ; behavior.totalCpuCoresChanged ( ) ; addCPUListeners ( ) ; }
Source:
public void onSuccess ( java.lang.Object model1 , java.lang.Object result1 ) { org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.PrivateAsyncCallback < T > privateAsyncCallback1 = ( ( org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.PrivateAsyncCallback < T > ) ( model1 ) ) ; privateAsyncCallback1.ApplySearchPageSize ( ( ( java.lang.Integer ) ( result1 ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model1 , java.lang.Object result1 ) { ApplySearchPageSize ( ( ( java.lang.Integer ) ( result1 ) ) ) ; }
Source:
public boolean isTaskStatus ( org.ovirt.engine.core.common.businessentities.gluster.GlusterTaskSupport supportObj , org.ovirt.engine.core.common.job.JobExecutionStatus status ) { if ( ( ( supportObj.getAsyncTask ( ) ) != null ) && ( ( supportObj.getAsyncTask ( ) . getStatus ( ) ) == status ) ) { return true ; } return false ; }

Target:
public boolean isTaskStatus ( org.ovirt.engine.core.common.businessentities.gluster.GlusterTaskSupport supportObj , org.ovirt.engine.core.common.job.JobExecutionStatus status ) { return ( ( supportObj.getAsyncTask ( ) ) != null ) && ( ( supportObj.getAsyncTask ( ) . getStatus ( ) ) == status ) ; }
Source:
public void getVmTemplateWithId ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; b.setVmTemplate ( null ) ; b.setVmTemplateId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.VmTemplate t = b.getVmTemplate ( ) ; org.junit.Assert.assertNotNull ( t ) ; }

Target:
public void getVmTemplateWithId ( ) { b.setVmTemplate ( null ) ; b.setVmTemplateId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.VmTemplate t = b.getVmTemplate ( ) ; org.junit.Assert.assertNotNull ( t ) ; }
Source:
public void testGetOsNames ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( OsRepositoryImpl.INSTANCE.getOsNames ( ) . get ( 777 ) . equals ( "RHEL 7" ) ) ; }

Target:
public void testGetOsNames ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( "RHEL 7" , OsRepositoryImpl.INSTANCE.getOsNames ( ) . get ( 777 ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity getById ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity glusterHook = getCallsHandler ( ) . executeRead ( "GetGlusterHookById" , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoDbFacadeImpl.glusterHookRowMapper , createGlusterHookIdParams ( id ) ) ; if ( glusterHook != null ) { getGlusterServerHook ( glusterHook , null ) ; } return glusterHook ; }

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity getById ( org.ovirt.engine.core.compat.Guid id ) { return getById ( id , false ) ; }
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 ) { return runMultipleActionsImpl ( actionType , parameters , true ) ; }

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 ) { return runMultipleActionsImpl ( actionType , parameters , true , false ) ; }
Source:
private boolean performVmRelatedChecks ( ) { org.ovirt.engine.core.bll.validator.VmValidator vmValidator = createVmValidator ( ) ; return ( validate ( vmValidator.vmNotRunningStateless ( ) ) ) && ( org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand.validate ( ( ! ( isVmNotInPreview ( ) ) ) ) ) ; }

Target:
private boolean performVmRelatedChecks ( ) { org.ovirt.engine.core.bll.validator.VmValidator vmValidator = createVmValidator ( ) ; return ( validate ( vmValidator.vmNotRunningStateless ( ) ) ) && ( isVmNotInPreview ( ) ) ; }
Source:
public java.util.Set < java.lang.String > getAllNetworkLabelsForDataCenter ( org.ovirt.engine.core.compat.Guid id ) { return new java.util.HashSet ( getCallsHandler ( ) . executeReadList ( "GetAllNetworkLabelsByDataCenterId" , new org.springframework.jdbc.core.SingleColumnRowMapper < java.lang.String > ( ) , createIdParameterMapper ( id ) ) ) ; }

Target:
public java.util.Set < java.lang.String > getAllNetworkLabelsForDataCenter ( org.ovirt.engine.core.compat.Guid id ) { return new java.util.HashSet ( getCallsHandler ( ) . executeReadList ( "GetAllNetworkLabelsByDataCenterId" , new org.springframework.jdbc.core.SingleColumnRowMapper ( ) , createIdParameterMapper ( id ) ) ) ; }
Source:
static org.ovirt.engine.api.model.Vm getModelClearingPayloads ( int index ) { org.ovirt.engine.api.model.Vm model = org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.getModel ( 0 ) ; model.setPayloads ( new org.ovirt.engine.api.model.Payloads ( ) ) ; return model ; }

Target:
static org.ovirt.engine.api.model.Vm getModelClearingPayloads ( ) { org.ovirt.engine.api.model.Vm model = org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.getModel ( 0 ) ; model.setPayloads ( new org.ovirt.engine.api.model.Payloads ( ) ) ; return model ; }
Source:
private org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBondWithNoNetworks ( ) { org.ovirt.engine.api.restapi.resource.IscsiBond iscsiBond = new org.ovirt.engine.api.restapi.resource.IscsiBond ( ) ; iscsiBond.setId ( org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworkResourceTest.ISCSI_BOND_ID ) ; return iscsiBond ; }

Target:
private org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBondWithNoNetworks ( ) { org.ovirt.engine.core.common.businessentities.IscsiBond iscsiBond = new org.ovirt.engine.core.common.businessentities.IscsiBond ( ) ; iscsiBond.setId ( org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworkResourceTest.ISCSI_BOND_ID ) ; return iscsiBond ; }
Source:
private void initConditions ( ) { org.mockito.Mockito.when ( dbFacade.getInterfaceDao ( ) ) . thenReturn ( interfaceDao ) ; org.mockito.Mockito.when ( interfaceDao.getAllInterfacesForVds ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( java.util.Collections.emptyList ( ) ) ; }

Target:
private void initConditions ( ) { org.mockito.Mockito.when ( dbFacade.getInterfaceDao ( ) ) . thenReturn ( interfaceDao ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; config = new org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils ( true ) ; org.ovirt.engine.core.common.config.Config.setConfigUtils ( config ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; config = new org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils ( ) ; org.ovirt.engine.core.common.config.Config.setConfigUtils ( config ) ; }
Source:
public void testGetByOperatingSystemIdExisting ( ) { final org.ovirt.engine.core.common.businessentities.VmIconDefault vmIconDefault = prepareDao ( ) . getByOperatingSystemId ( org.ovirt.engine.core.dao.VmIconDefaultDaoTest.OTHER_OS_VM_ICON_DEFAULT.getOsId ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmIconDefaultDaoTest.OTHER_OS_VM_ICON_DEFAULT , vmIconDefault ) ; }

Target:
public void testGetByOperatingSystemIdExisting ( ) { final org.ovirt.engine.core.common.businessentities.VmIconDefault vmIconDefault = dao.getByOperatingSystemId ( org.ovirt.engine.core.dao.VmIconDefaultDaoTest.OTHER_OS_VM_ICON_DEFAULT.getOsId ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmIconDefaultDaoTest.OTHER_OS_VM_ICON_DEFAULT , vmIconDefault ) ; }
Source:
public java.lang.Void runInTransaction ( ) { if ( RemoveVmTemplateImages ( ) ) { if ( ! hasImanges ) { RemoveTemplateFromDb ( ) ; } setSucceeded ( true ) ; } return null ; }

Target:
public java.lang.Void runInTransaction ( ) { if ( RemoveVmTemplateImages ( ) ) { setSucceeded ( true ) ; } return null ; }
Source:
private static void validateInvalidResult ( org.ovirt.engine.core.bll.ValidationResult validationResult , org.ovirt.engine.core.common.errors.VdcBllMessages message ) { org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateResult ( validationResult , false , message ) ; }

Target:
private static void validateInvalidResult ( org.ovirt.engine.core.bll.ValidationResult validationResult , org.ovirt.engine.core.common.errors.EngineMessage message ) { org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateResult ( validationResult , false , message ) ; }
Source:
public void testEvalPositive ( ) { mockExternalNetworkPredicate.setTestResult ( false ) ; org.junit.Assert.assertTrue ( underTest.test ( mockNetwork ) ) ; }

Target:
public void testEvalPositive ( ) { org.mockito.Mockito.doReturn ( false ) . when ( mockExternalNetworkPredicate ) . test ( mockNetwork ) ; org.junit.Assert.assertTrue ( underTest.test ( mockNetwork ) ) ; }
Source:
public void testGetStorageDomainWithNoStatus ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getStorageDomain ( FixturesTool.STORAGE_POOL_NFS_INACTIVE_ISO , StorageDomainType.ISO , null ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.STORAGE_DOMAIN_NFS_INACTIVE_ISO , result.getId ( ) ) ; }

Target:
public void testGetStorageDomainWithNoStatus ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getStorageDomain ( FixturesTool.STORAGE_POOL_NFS_INACTIVE_ISO , StorageDomainType.ISO , null ) ; org.junit.Assert.assertEquals ( FixturesTool.STORAGE_DOMAIN_NFS_INACTIVE_ISO , result.getId ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , networkName , true , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , networkName , true , null , false , null ) ; }
Source:
protected boolean validate ( ) { return canPauseVm ( org.ovirt.engine.core.bll.PauseVmCommand.getParameters ( ) . getVmId ( ) , org.ovirt.engine.core.bll.PauseVmCommand.getReturnValue ( ) . getValidationMessages ( ) ) ; }

Target:
protected boolean validate ( ) { return canPauseVm ( org.ovirt.engine.core.bll.PauseVmCommand.getParameters ( ) . getVmId ( ) ) ; }
Source:
public static boolean canCopyHostDevices ( org.ovirt.engine.core.compat.Guid srcId , org.ovirt.engine.core.common.businessentities.VmBase dstVm ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.canCopyHostDevices ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getVmBase ( srcId ) , dstVm ) ; }

Target:
public boolean canCopyHostDevices ( org.ovirt.engine.core.compat.Guid srcId , org.ovirt.engine.core.common.businessentities.VmBase dstVm ) { return canCopyHostDevices ( getVmBase ( srcId ) , dstVm ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageDomainStatus getRawValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { return object.getstatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomainStatus getRawValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { return object.getStatus ( ) ; }
Source:
public void currentUserNull ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final org.ovirt.engine.core.common.businessentities.aaa.DbUser u = null ; b.setCurrentUser ( u ) ; final org.ovirt.engine.core.common.businessentities.aaa.DbUser cu = b.getCurrentUser ( ) ; org.junit.Assert.assertEquals ( u , cu ) ; }

Target:
public void currentUserNull ( ) { final org.ovirt.engine.core.common.businessentities.aaa.DbUser u = null ; b.setCurrentUser ( u ) ; final org.ovirt.engine.core.common.businessentities.aaa.DbUser cu = b.getCurrentUser ( ) ; org.junit.Assert.assertEquals ( u , cu ) ; }
Source:
public void cleanup ( ) { driver.cleanup ( ) ; }

Target:
public void cleanup ( ) { driver.cleanup ( ) ; super . cleanup ( ) ; }
Source:
public static void toStringBuilder ( java.util.Map [ ] xmlRpc , java.lang.StringBuilder builder ) { if ( xmlRpc == null ) { return ; } for ( java.util.Map entry : xmlRpc ) { org.ovirt.engine.core.vdsbroker.ObjectDescriptor.toStringBuilder ( entry , builder ) ; } }

Target:
public static void toStringBuilder ( java.util.Map [ ] map , java.lang.StringBuilder builder ) { if ( map == null ) { return ; } for ( java.util.Map entry : map ) { org.ovirt.engine.core.vdsbroker.ObjectDescriptor.toStringBuilder ( entry , builder ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.storage_pool getStoragePool ( ) { return new org.ovirt.engine.core.common.businessentities.storage_pool ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StoragePool getStoragePool ( ) { return new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; }
Source:
public void clusterAlreadyInLocalFs ( ) { createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.cpuExists ( ) ; org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.cpuManufacturersMatch ( ) ; org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.clusterVersionIsSupported ( ) ; allQueriesEmpty ( ) ; storagePoolAlreadyHasCluster ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_ADD_MORE_THEN_ONE_HOST_TO_LOCAL_STORAGE ) ; }

Target:
public void clusterAlreadyInLocalFs ( ) { createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; allQueriesEmpty ( ) ; storagePoolAlreadyHasCluster ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_ADD_MORE_THEN_ONE_HOST_TO_LOCAL_STORAGE ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDevice addCdDevice ( org.ovirt.engine.core.compat.Guid vmId , java.lang.String cdPath ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.DISK , VmDeviceType.CDROM , org.ovirt.engine.core.bll.utils.VmDeviceUtils.getCdDeviceSpecParams ( "" , cdPath ) , true , true ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmDevice addCdDevice ( org.ovirt.engine.core.compat.Guid vmId , java.lang.String cdPath ) { return addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.DISK , VmDeviceType.CDROM , getCdDeviceSpecParams ( "" , cdPath ) , true , true ) ; }
Source:
public void storagePoolUpEvent ( org.ovirt.engine.core.common.businessentities.storage_pool storagePool , boolean isNewSpm ) { if ( isNewSpm ) { org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . StopStoragePoolTasks ( storagePool ) ; } { org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . AddStoragePoolExistingTasks ( storagePool ) ; } }

Target:
public void storagePoolUpEvent ( org.ovirt.engine.core.common.businessentities.storage_pool storagePool , boolean isNewSpm ) { if ( isNewSpm ) { org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . StopStoragePoolTasks ( storagePool ) ; } else { org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . AddStoragePoolExistingTasks ( storagePool ) ; } }
Source:
public java.util.concurrent.TimeUnit getTimeUnit ( ) { return timeUnit ; }

Target:
public java.util.concurrent.TimeUnit getTimeUnit ( ) { return this . timeUnit ; }
Source:
public int getSshPort ( ) { return this . sshPort ; }

Target:
public int getSshPort ( ) { return sshPort ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > getLogicalUnits ( ) { return getBackendCollection ( VdcQueryType.GetDeviceList , new org.ovirt.engine.core.common.queries.GetDeviceListQueryParameters ( asGuid ( hostId ) , org.ovirt.engine.core.common.businessentities.storage.StorageType.UNKNOWN ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > getLogicalUnits ( ) { return getBackendCollection ( VdcQueryType.GetDeviceList , new org.ovirt.engine.core.common.queries.GetDeviceListQueryParameters ( asGuid ( hostId ) , org.ovirt.engine.core.common.businessentities.storage.StorageType.UNKNOWN , true , null ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) . getNumOfCpus ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData object ) { return java.lang.String.valueOf ( object.getVm ( ) . getNumOfCpus ( ) ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { context.dataCenterList = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage_pool > ) ( returnValue ) ) ; SetDefaultNames5 ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { context.dataCenterList = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage_pool > ) ( returnValue ) ) ; SetDefaultNames5 ( ) ; }
Source:
public boolean isTrue ( ) { return getModel ( ) . getEntity ( ) . supportsGlusterService ( ) ; }

Target:
public boolean isTrue ( ) { return ( ( getModel ( ) . getEntity ( ) ) != null ) && ( getModel ( ) . getEntity ( ) . supportsGlusterService ( ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getStoragePoolId ( ) { return ( getParentEntity ( ) ) != null ? getParentEntity ( ) . getStoragePoolId ( ) : null ; }

Target:
protected org.ovirt.engine.core.compat.Guid getStoragePoolId ( ) { return ( getEntity ( ) ) != null ? getEntity ( ) . getStoragePoolId ( ) : null ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { editedVm = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( result ) ) ; vmInitLoaded ( editedVm ) ; }

Target:
public void onSuccess ( java.lang.Object result ) { editedVm = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( result ) ) ; vmInitLoaded ( editedVm ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.VM object ) { if ( getDetailModel ( ) . isDiskPluggedToVm ( object ) ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.webadmin.section.main.view.tab.disk.SubTabDiskVmView.constants.active ( ) ) ; } return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.webadmin.section.main.view.tab.disk.SubTabDiskVmView.constants.inactive ( ) ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.core.common.businessentities.VM object ) { if ( getDetailModel ( ) . isDiskPluggedToVm ( object ) ) { return org.ovirt.engine.ui.webadmin.section.main.view.tab.disk.SubTabDiskVmView.constants.active ( ) ; } return org.ovirt.engine.ui.webadmin.section.main.view.tab.disk.SubTabDiskVmView.constants.inactive ( ) ; }
Source:
public static org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > makeLockingPair ( org.ovirt.engine.core.common.locks.LockingGroup group , java.lang.String message ) { return new org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > ( group.name ( ) , message ) ; }

Target:
public static org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > makeLockingPair ( org.ovirt.engine.core.common.locks.LockingGroup group , java.lang.String message ) { return new org.ovirt.engine.core.common.utils.Pair ( group.name ( ) , message ) ; }
Source:
public void importVms ( org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback ) { startProgress ( null ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runMultipleAction ( VdcActionType.ImportVm , buildImportVmParameters ( ) , callback , this ) ; }

Target:
public void importVms ( org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback ) { startProgress ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runMultipleAction ( VdcActionType.ImportVm , buildImportVmParameters ( ) , callback , this ) ; }
Source:
protected void onFadeInComplete ( ) { setStylePrimaryName ( this . foregroundStyle ) ; this . setStylePrimaryName ( this . backgroundStyle ) ; }

Target:
protected void onFadeInComplete ( ) { setStylePrimaryName ( foregroundStyle ) ; this . setStylePrimaryName ( backgroundStyle ) ; }
Source:
public boolean isQcowFormat ( ) { return getImage ( ) . getVolumeFormat ( ) . equals ( VolumeFormat.COW ) ; }

Target:
public boolean isQcowFormat ( ) { return ( VolumeFormat.COW ) == ( getImage ( ) . getVolumeFormat ( ) ) ; }
Source:
protected org.ovirt.engine.core.bll.storage.IStorageHelper getStorageHelper ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain ) { return org.ovirt.engine.core.bll.storage.StorageHelperDirector.getInstance ( ) . getItem ( storageDomain.getstorage_type ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.storage.IStorageHelper getStorageHelper ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return org.ovirt.engine.core.bll.storage.StorageHelperDirector.getInstance ( ) . getItem ( storageDomain.getstorage_type ( ) ) ; }
Source:
public void testQuery ( ) { java.util.List < org.ovirt.engine.api.model.Statistic > statistics = query.getStatistics ( getDisk ( ) ) ; org.junit.Assert.assertEquals ( statistics.size ( ) , 5 ) ; for ( org.ovirt.engine.api.model.Statistic statistic : statistics ) { verifyStatistic ( statistic ) ; } }

Target:
public void testQuery ( ) { java.util.List < org.ovirt.engine.api.model.Statistic > statistics = query.getStatistics ( getDisk ( ) ) ; org.junit.Assert.assertEquals ( 5 , statistics.size ( ) ) ; for ( org.ovirt.engine.api.model.Statistic statistic : statistics ) { verifyStatistic ( statistic ) ; } }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( getNameServers ( ) ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( getId ( ) , getNameServers ( ) ) ; }
Source:
public void setName ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > name ) { this . name = name ; }

Target:
private void setName ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > name ) { this . name = name ; }
Source:
protected abstract boolean isMemoryStateRemovable ( java.lang.String memoryVolume ) ;

Target:
protected boolean isMemoryStateRemovable ( java.lang.String memoryVolume ) { return ! ( memoryVolume.isEmpty ( ) ) ; }
Source:
protected void endWithFailure ( ) { super . endWithFailure ( ) ; org.ovirt.engine.core.bll.job.ExecutionHandler.setAsyncJob ( org.ovirt.engine.core.bll.lsm.LiveMigrateDiskCommand.getExecutionContext ( ) , false ) ; }

Target:
protected void endWithFailure ( ) { super . endWithFailure ( ) ; }
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 ( ) { return getVdsByVdsId ( ) ; }
Source:
private void domainsInMaintenanceCheck ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains ) { for ( org.ovirt.engine.core.common.businessentities.StorageDomain domainInDb : storageDomains ) { if ( ( domainInDb.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.PreparingForMaintenance ) ) { queueDomainMaintenanceCheck ( domainInDb ) ; } } }

Target:
private void domainsInMaintenanceCheck ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains , org.ovirt.engine.core.common.businessentities.StoragePool pool ) { for ( org.ovirt.engine.core.common.businessentities.StorageDomain domainInDb : storageDomains ) { if ( ( domainInDb.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.PreparingForMaintenance ) ) { queueDomainMaintenanceCheck ( domainInDb , pool ) ; } } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAll ( ) { org.apache.commons.httpclient.HttpMethod method = new org.apache.commons.httpclient.methods.GetMethod ( ( ( hostProvider.getUrl ( ) ) + ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.ALL_HOSTS_QUERY ) ) ) ; return runHostListMethod ( method ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAll ( ) { org.apache.commons.httpclient.HttpMethod method = new org.apache.commons.httpclient.methods.GetMethod ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.ALL_HOSTS_QUERY ) ; return runHostListMethod ( method ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.storage_pool getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.storage_pool ) ( ( super . getEntity ( ) ) instanceof org.ovirt.engine.core.common.businessentities.storage_pool ? super . getEntity ( ) : null ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StoragePool getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( ( super . getEntity ( ) ) instanceof org.ovirt.engine.core.common.businessentities.StoragePool ? super . getEntity ( ) : null ) ) ; }
Source:
protected void endWithFailure ( ) { removeNetwork ( ) ; removeImages ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDao ( ) . remove ( getVmTemplateId ( ) ) ; rollbackQuota ( ) ; setSucceeded ( true ) ; }

Target:
protected void endWithFailure ( ) { removeNetwork ( ) ; removeImages ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDao ( ) . remove ( getVmTemplateId ( ) ) ; setSucceeded ( true ) ; }
Source:
public static java.lang.String toUpperCase ( java.lang.String candidate ) { return ( java.lang.Character.toUpperCase ( candidate.charAt ( 0 ) ) ) + ( candidate.substring ( 1 ) ) ; }

Target:
public static java.lang.String toUpperCase ( java.lang.String candidate ) { if ( ( candidate.length ( ) ) >= 1 ) return ( java.lang.Character.toUpperCase ( candidate.charAt ( 0 ) ) ) + ( candidate.substring ( 1 ) ) ; return candidate ; }
Source:
public < T > void mockConfigValue ( org.ovirt.engine.core.common.config.ConfigValues value , java.lang.String version , T returnValue ) { org.mockito.Mockito.when ( org.ovirt.engine.core.common.config.Config.getConfigUtils ( ) . GetValue ( value , version ) ) . thenReturn ( returnValue ) ; }

Target:
private static < T > void mockConfigValue ( org.ovirt.engine.core.common.config.ConfigValues value , java.lang.String version , T returnValue ) { org.mockito.Mockito.when ( org.ovirt.engine.core.common.config.Config.getConfigUtils ( ) . GetValue ( value , version ) ) . thenReturn ( returnValue ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getClusterId ( ) { return getParentEntity ( ) . getId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getClusterId ( ) { return getEntity ( ) . getId ( ) ; }
Source:
public void create ( ) { org.ovirt.engine.core.bll.Backend.checkDBConnectivity ( ) ; initialize ( ) ; }

Target:
public void create ( ) { checkDBConnectivity ( ) ; initialize ( ) ; }
Source:
protected void addCustomizationDialog ( java.util.List < java.util.concurrent.Callable < java.lang.Boolean > > dialog ) { _customizationDialog.addAll ( dialog ) ; }

Target:
public void addCustomizationDialog ( java.util.List < java.util.concurrent.Callable < java.lang.Boolean > > dialog ) { _customizationDialog.addAll ( dialog ) ; }
Source:
public void addWithExistingMacAddressSucceed ( ) { org.ovirt.engine.core.common.businessentities.network.VmNic iface = org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) ; runAddAndVerify ( iface , true , org.mockito.Mockito.times ( 1 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.OS_ID , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VERSION_3_2 ) ; }

Target:
public void addWithExistingMacAddressSucceed ( ) { org.ovirt.engine.core.common.businessentities.network.VmNic iface = org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) ; runAddAndVerify ( iface , true , org.mockito.Mockito.times ( 1 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.OS_ID ) ; }
Source:
public void testBeanValidations ( ) { org.junit.Assert.assertTrue ( createCommand ( initializeMock ( 1 , 1 ) ) . validateInputs ( ) ) ; }

Target:
public void testBeanValidations ( ) { org.junit.Assert.assertTrue ( createCommand ( initializeMock ( 1 ) ) . validateInputs ( ) ) ; }
Source:
public void getClusterNameDefault ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; final java.lang.String n = b.getClusterName ( ) ; org.junit.Assert.assertEquals ( "" , n ) ; }

Target:
public void getClusterNameDefault ( ) { final java.lang.String n = b.getClusterName ( ) ; org.junit.Assert.assertEquals ( "" , n ) ; }
Source:
public void setstorage_domain_id ( org.ovirt.engine.core.compat.Guid value ) { this . id.setStorageDomainId ( value ) ; }

Target:
public void setStorageDomainId ( org.ovirt.engine.core.compat.Guid value ) { this . id.setStorageDomainId ( value ) ; }
Source:
protected boolean canDoAction ( ) { org.ovirt.engine.core.common.businessentities.storage.StorageServerConnectionExtension newConnExt = org.ovirt.engine.core.bll.storage.connection.AddStorageServerConnectionExtensionCommand.getParameters ( ) . getStorageServerConnectionExtension ( ) ; return validate ( org.ovirt.engine.core.bll.storage.connection.AddStorageServerConnectionExtensionCommand.getConnectionExtensionValidator ( ) . isConnectionDoesNotExistForHostAndTarget ( newConnExt ) ) ; }

Target:
protected boolean validate ( ) { org.ovirt.engine.core.common.businessentities.storage.StorageServerConnectionExtension newConnExt = org.ovirt.engine.core.bll.storage.connection.AddStorageServerConnectionExtensionCommand.getParameters ( ) . getStorageServerConnectionExtension ( ) ; return validate ( org.ovirt.engine.core.bll.storage.connection.AddStorageServerConnectionExtensionCommand.getConnectionExtensionValidator ( ) . isConnectionDoesNotExistForHostAndTarget ( newConnExt ) ) ; }
Source:
private void logFailureMessage ( java.lang.String messagePrefix , java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.log.errorFormat ( "{0} Error: {1}, vds = {2} : {3}" , messagePrefix , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) , _vds.getId ( ) , _vds.getVdsName ( ) ) ; }

Target:
private void logFailureMessage ( java.lang.String messagePrefix , java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.log.errorFormat ( "{0} Error: {1}, vds = {2} : {3}" , messagePrefix , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) , _vds.getId ( ) , _vds.getName ( ) ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getAddVmsSucceded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_ADD_VM_POOL_WITH_VMS : org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_ADD_VM_POOL_WITH_VMS_ADD_VDS_FAILED : org.ovirt.engine.core.common.AuditLogType.USER_ADD_VM_POOL_WITH_VMS_FAILED ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { if ( org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getAddVmsSucceded ( ) ) { return org.ovirt.engine.core.common.AuditLogType.USER_ADD_VM_POOL_WITH_VMS ; } return org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_ADD_VM_POOL_WITH_VMS_ADD_VDS_FAILED : org.ovirt.engine.core.common.AuditLogType.USER_ADD_VM_POOL_WITH_VMS_FAILED ; }
Source:
public void testSave ( ) { dao.save ( newGroup ) ; org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.getByName ( newGroup.getname ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newGroup , result ) ; }

Target:
public void testSave ( ) { dao.save ( newGroup ) ; org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.getByName ( newGroup.getName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newGroup , result ) ; }
Source:
public void testGetMasterStorageDomainIdForPool ( ) { org.ovirt.engine.core.compat.Guid result = dao.getMasterStorageDomainIdForPool ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( new org.ovirt.engine.core.compat.Guid ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_DOMAIN_ID ) , result ) ; }

Target:
public void testGetMasterStorageDomainIdForPool ( ) { org.ovirt.engine.core.compat.Guid result = dao.getMasterStorageDomainIdForPool ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_DOMAIN_ID , result ) ; }
Source:
public void run ( ) { SleepOnReboot ( ) ; }

Target:
public void run ( ) { SleepOnReboot ( status ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > object ) { return object.getSecond ( ) . getVmName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > object ) { return object.getSecond ( ) . getName ( ) ; }
Source:
public void reportCompleted ( ) { try { super . reportCompleted ( ) ; } finally { decreasePendingVms ( getVdsDestinationId ( ) ) ; org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }

Target:
public void reportCompleted ( ) { try { super . reportCompleted ( ) ; } finally { if ( ( getVdsDestinationId ( ) ) != null ) { decreasePendingVms ( getVdsDestinationId ( ) ) ; } org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }
Source:
public void setQuota ( org.ovirt.engine.ui.uicommonweb.models.ListModel value ) { quota = value ; }

Target:
public void setQuota ( org.ovirt.engine.ui.uicommonweb.models.ListModel quota ) { this . quota = quota ; }
Source:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { new org.ovirt.engine.api.restapi.resource.BackendBookmarkResource ( "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendBookmarkResource ( "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetSystemPermissions , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; }