auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testGetForStoragePool ( ) { org.ovirt.engine.core.common.businessentities.storage_domains result = dao.getForStoragePool ( existingDomain.getId ( ) , org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID ) ; assertGetResult ( result ) ; }

Target:
public void testGetForStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getForStoragePool ( existingDomain.getId ( ) , org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID ) ; assertGetResult ( result ) ; }
Source:
public void shouldHaveNotingToMigrate ( ) { org.mockito.Mockito.verify ( arem , org.mockito.Mockito.never ( ) ) . migrateVM ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ; }

Target:
public void shouldHaveNotingToMigrate ( ) { org.mockito.Mockito.verify ( arem , org.mockito.Mockito.never ( ) ) . migrateVM ( org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
public void initializeModel ( org.ovirt.engine.ui.uicommonweb.models.hosts.FenceProxyModel model ) { if ( ! ( model.isInitialized ( ) ) ) { initializeModelHandlers ( model ) ; model.setInitialized ( ) ; } }

Target:
public void initializeModel ( org.ovirt.engine.ui.uicommonweb.models.hosts.FenceProxyModel model ) { if ( ! ( model.isInitialized ( ) ) ) { model.setInitialized ( ) ; initializeModelHandlers ( model ) ; } }
Source:
public void setConsoleCurrentUserName ( java.lang.String value ) { this . vmDynamic.setConsole_current_user_name ( value ) ; }

Target:
public void setConsoleCurrentUserName ( java.lang.String value ) { this . vmDynamic.setConsoleCurrentUserName ( value ) ; }
Source:
public void vmNotDuringSnapshotReturnsInvalidResultWhenInSnapshot ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid vmId = new org.ovirt.engine.core.compat.Guid ( ) ; org.mockito.Mockito.when ( snapshotDao.exists ( vmId , SnapshotStatus.LOCKED ) ) . thenReturn ( true ) ; org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateInvalidResult ( validator.vmNotDuringSnapshot ( vmId ) , VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_DURING_SNAPSHOT ) ; }

Target:
public void vmNotDuringSnapshotReturnsInvalidResultWhenInSnapshot ( ) throws java.lang.Exception { org.mockito.Mockito.when ( snapshotDao.exists ( vmId , SnapshotStatus.LOCKED ) ) . thenReturn ( true ) ; org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateInvalidResult ( validator.vmNotDuringSnapshot ( vmId ) , VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_DURING_SNAPSHOT ) ; }
Source:
private void addInlineNics ( org.ovirt.engine.api.model.Vm vm ) { org.ovirt.engine.api.restapi.resource.BackendVmNicsResource nicsResource = inject ( new org.ovirt.engine.api.restapi.resource.BackendVmNicsResource ( asGuid ( vm.getId ( ) ) ) ) ; org.ovirt.engine.api.model.Nics nics = nicsResource.list ( ) ; vm.setNics ( nics ) ; }

Target:
private void addInlineNics ( org.ovirt.engine.api.model.Vm vm ) { org.ovirt.engine.core.compat.Guid vmId = asGuid ( vm.getId ( ) ) ; org.ovirt.engine.api.restapi.resource.BackendVmNicsResource nicsResource = inject ( new org.ovirt.engine.api.restapi.resource.BackendVmNicsResource ( vmId ) ) ; org.ovirt.engine.api.model.Nics nics = nicsResource.list ( ) ; vm.setNics ( nics ) ; }
Source:
protected java.util.Map < org.ovirt.engine.core.common.businessentities.GraphicsType , org.ovirt.engine.core.common.businessentities.GraphicsInfo > extractGraphicsInofs ( org.ovirt.engine.api.restapi.resource.VM vm ) { return vm.getGraphicsInfos ( ) ; }

Target:
protected java.util.Map < org.ovirt.engine.core.common.businessentities.GraphicsType , org.ovirt.engine.core.common.businessentities.GraphicsInfo > extractGraphicsInofs ( org.ovirt.engine.core.common.businessentities.VM vm ) { return vm.getGraphicsInfos ( ) ; }
Source:
public void setStoragePoolId ( org.ovirt.engine.core.compat.Guid storagePool ) { this . storagePoolId = storagePool ; }

Target:
public void setStoragePoolId ( org.ovirt.engine.core.compat.Guid storagePoolId ) { this . storagePoolId = storagePoolId ; }
Source:
public void addWithExistingMacAddressSucceed ( ) { runAddAndVerify ( org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.OS_ID , false ) ; }

Target:
public void addWithExistingMacAddressSucceed ( ) { runAddAndVerify ( org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) , false ) ; }
Source:
protected void findGroups ( java.lang.String searchString , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.Search , new org.ovirt.engine.core.common.queries.SearchParameters ( ( ( ( "ADGROUP@" + ( getDomain ( ) . getSelectedItem ( ) ) ) + ": " ) + searchString ) , org.ovirt.engine.core.common.interfaces.SearchType.AdGroup ) , query ) ; }

Target:
protected void findGroups ( java.lang.String searchString , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.Search , new org.ovirt.engine.core.common.queries.SearchParameters ( ( ( ( "ADGROUP@" + ( getDomain ( ) . getSelectedItem ( ) ) ) + ": " ) + searchString ) , org.ovirt.engine.core.common.interfaces.SearchType.AdGroup ) , query ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getVmId ( ) { if ( getParameters ( ) . isImportAsNewEntity ( ) ) { return getParameters ( ) . getVm ( ) . getId ( ) ; } return super . getVmId ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VM getVm ( ) { if ( getParameters ( ) . isImportAsNewEntity ( ) ) { return getParameters ( ) . getVm ( ) ; } return super . getVm ( ) ; }
Source:
public java.lang.String getSearchString ( ) { if ( ( searchString ) == null ) { return null ; } return ( searchString ) + ( ( pagingSearchString ) == null ? "" : pagingSearchString ) ; }

Target:
public java.lang.String getSearchString ( ) { return searchString ; }
Source:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getParameters ( ) . getVmStaticData ( ) , getEffectiveCompatibilityVersion ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getParameters ( ) . getVmStaticData ( ) ) ) ; }
Source:
protected boolean canDoAction ( ) { return ( validate ( hostExists ( ) ) ) && ( ( org.ovirt.engine.core.bll.RefreshHostInfoCommandBase.isInternalExecution ( ) ) || ( validate ( hostStatusValid ( ) ) ) ) ; }

Target:
protected boolean validate ( ) { return ( validate ( hostExists ( ) ) ) && ( ( org.ovirt.engine.core.bll.RefreshHostInfoCommandBase.isInternalExecution ( ) ) || ( validate ( hostStatusValid ( ) ) ) ) ; }
Source:
public org.apache.http.HttpResponse execute ( org.apache.http.client.methods.HttpUriRequest request ) { try { return client.execute ( request ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public org.apache.http.HttpResponse execute ( org.apache.http.client.methods.HttpUriRequest request ) throws java.lang.Exception { return client.execute ( request ) ; }
Source:
public void setvds_group_compatibility_version ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( getvds_group_compatibility_version ( ) , value ) ) { this . vds_group_compatibility_versionField = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vds_group_compatibility_version" ) ) ; } }

Target:
public void setvds_group_compatibility_version ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( getvds_group_compatibility_version ( ) , value ) ) { this . vds_group_compatibility_versionField = value ; } }
Source:
public java.lang.String getUserPassword ( ) { java.lang.String password = org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . getLoginPassword ( ) ; return password != null ? password : "" ; }

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

Target:
private void initHandlers ( ) { org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.tagsHandler = tagsDirector ; serviceLoader.load ( org.ovirt.engine.core.bll.VmHandler.class ) ; serviceLoader.load ( org.ovirt.engine.core.bll.VdsHandler.class ) ; serviceLoader.load ( org.ovirt.engine.core.bll.VmTemplateHandler.class ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }
Source:
public void initializeCommand ( ) { org.ovirt.engine.core.common.action.IdParameters parameters = createParameters ( ) ; command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.aaa.RemoveGroupCommand < org.ovirt.engine.core.common.action.IdParameters > ( parameters ) ) ; }

Target:
public void initializeCommand ( ) { org.ovirt.engine.core.common.action.IdParameters parameters = createParameters ( ) ; command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.aaa.RemoveGroupCommand ( parameters ) ) ; }
Source:
public void settag_name ( java.lang.String value ) { this . id.tagName = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "tag_name" ) ) ; }

Target:
public void settag_name ( java.lang.String value ) { this . id.tagName = value ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network network ) { return network.getname ( ) . equals ( getParameters ( ) . getInterface ( ) . getNetworkName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network network ) { return network.getname ( ) . equals ( getNetworkName ( ) ) ; }
Source:
public void testSetup ( ) { mockQuotaDAO ( ) ; mockQuotaHelper ( ) ; }

Target:
public void testSetup ( ) { mockQuotaDAO ( ) ; }
Source:
public void setGroupIds ( java.util.Collection < org.ovirt.engine.core.compat.Guid > groupIds ) { this . groupIds = new java.util.HashSet < org.ovirt.engine.core.compat.Guid > ( groupIds ) ; }

Target:
public void setGroupIds ( java.util.Collection < org.ovirt.engine.core.compat.Guid > groupIds ) { this . groupIds = new java.util.HashSet ( groupIds ) ; }
Source:
protected boolean canEdit ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel ) ( model ) ) ; return ( clusterNetworkModel.isAttached ( ) ) && ( ! ( clusterNetworkModel.isExternal ( ) ) ) ; }

Target:
protected boolean canEdit ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return ( clusterNetworkModel.isAttached ( ) ) && ( ! ( clusterNetworkModel.isExternal ( ) ) ) ; }
Source:
private void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . unsubscribe ( ) ; cancelConfirmation ( ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }

Target:
private void cancel ( ) { cancelConfirmation ( ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }
Source:
private java.lang.Runnable pendingOperations ( ) throws java.io.IOException { if ( ( nioEngine ) == null ) { return null ; } return nioEngine.process ( ) ; }

Target:
private java.lang.Runnable pendingOperations ( ) throws java.io.IOException { if ( ( this . nioEngine ) == null ) { return null ; } return nioEngine.process ( ) ; }
Source:
protected org.ovirt.engine.core.aaa.DirectoryGroup getEntity ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryGroup ( new org.ovirt.engine.core.aaa.DirectoryStub ( DOMAIN ) , EXTERNAL_IDS [ index ] , NAMES [ index ] ) ; }

Target:
protected org.ovirt.engine.core.aaa.DirectoryGroup getEntity ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryGroup ( DOMAIN , EXTERNAL_IDS [ index ] , NAMES [ index ] ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getClusterId ( ) { return getParentEntity ( ) . getVdsGroupId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getClusterId ( ) { return getEntity ( ) . getVdsGroupId ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ) ( source ) ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ( ) ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < > ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ) ( source ) ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ( ) ; }
Source:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = org.ovirt.engine.api.restapi.resource.AbstractBackendNetworkAttachmentsResourceTest.setUpUriExpectations ( null ) ; setUpNetworkAttachmentsQueryExpectations ( null ) ; control.replay ( ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = org.ovirt.engine.api.restapi.resource.AbstractBackendNetworkAttachmentsResourceTest.setUpUriExpectations ( null ) ; setUpNetworkAttachmentsQueryExpectations ( null ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
public void testGetManagedInterfaceForVdsFilteringDisabledForUnpriviligedUser ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface result = dao.getManagedInterfaceForVds ( org.ovirt.engine.core.dao.InterfaceDAOTest.VDS_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; org.ovirt.engine.core.dao.InterfaceDAOTest.assertCorrectGetManagedInterfaceForVdsResult ( result ) ; }

Target:
public void testGetManagedInterfaceForVdsFilteringDisabledForUnpriviligedUser ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface result = dao.getManagedInterfaceForVds ( org.ovirt.engine.core.dao.InterfaceDAOTest.VDS_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; org.ovirt.engine.core.dao.InterfaceDAOTest.assertCorrectGetManagedInterfaceForVdsResult ( result ) ; }
Source:
public void getAllForForConnection ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections conn = dao.get ( existingConnection.geIid ( ) ) ; conn.setId ( "copy" ) ; dao.save ( conn ) ; assertGetAllForConnectionResult ( java.util.Arrays.asList ( existingConnection , conn ) , existingConnection ) ; }

Target:
public void getAllForForConnection ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections conn = dao.get ( existingConnection.getId ( ) ) ; conn.setId ( "copy" ) ; dao.save ( conn ) ; assertGetAllForConnectionResult ( java.util.Arrays.asList ( existingConnection , conn ) , existingConnection ) ; }
Source:
void read ( java.nio.ByteBuffer buff ) throws java.io.IOException { if ( ( nioEngine ) != null ) { nioEngine.read ( buff ) ; } else { channel.read ( buff ) ; } }

Target:
int read ( java.nio.ByteBuffer buff ) throws java.io.IOException { if ( ( this . nioEngine ) != null ) { return this . nioEngine.read ( buff ) ; } else { return channel.read ( buff ) ; } }
Source:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( VdcQueryType.GetVmTemplatesDisks , new org.ovirt.engine.core.common.queries.GetVmTemplatesDisksParameters ( getEntityStronglyTyped ( ) . getId ( ) ) ) ; }

Target:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( VdcQueryType.GetVmTemplatesDisks , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntityStronglyTyped ( ) . getId ( ) ) ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel storageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel ) ( target ) ) ; java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDS > hosts = ( ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ; storageModel.PostUpdateHost ( hosts ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel storageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel ) ( target ) ) ; java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDS > hosts = ( ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ; storageModel.PostUpdateHost ( hosts ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.lang.String suggestedDiskAlias = ( ( java.lang.String ) ( returnValue ) ) ; org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel diskModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( model ) ) ; diskModel.getAlias ( ) . setEntity ( suggestedDiskAlias ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.lang.String suggestedDiskAlias = ( ( java.lang.String ) ( returnValue ) ) ; org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel diskModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( model ) ) ; diskModel.getAlias ( ) . setEntity ( suggestedDiskAlias ) ; }
Source:
public void testAddWithClonePermissionsClone ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Vm model = createModel ( null ) ; model.setPermissions ( new org.ovirt.engine.api.model.Permissions ( ) ) ; model.getPermissions ( ) . setClone ( true ) ; doTestAddWithClonePermissions ( model , true ) ; }

Target:
public void testAddWithClonePermissionsClone ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Vm model = createModel ( null ) ; doTestAddWithClonePermissions ( model , true ) ; }
Source:
public T getParameters ( ) { return _parameters ; }

Target:
protected T getParameters ( ) { return _parameters ; }
Source:
public java.lang.Object getQueryableId ( ) { return getbookmark_id ( ) ; }

Target:
public java.lang.Object getQueryableId ( ) { return getId ( ) ; }
Source:
public org.ovirt.engine.api.resource.NetworksResource getNetworksResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworksResource ( guid ) ) ; }

Target:
public org.ovirt.engine.api.resource.NetworksResource getNetworksResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworksResource ( id ) ) ; }
Source:
public void initTable ( final org.ovirt.engine.ui.common.CommonApplicationConstants constants ) { org.ovirt.engine.ui.common.widget.uicommon.vm.VmSnapshotListModelTable.getTable ( ) . enableColumnResizing ( ) ; org.ovirt.engine.ui.common.widget.uicommon.vm.VmSnapshotListModelTable.getTable ( ) . setMultiSelectionDisabled ( true ) ; initActionButtons ( constants ) ; addModelListeners ( ) ; }

Target:
public void initTable ( ) { org.ovirt.engine.ui.common.widget.uicommon.vm.VmSnapshotListModelTable.getTable ( ) . enableColumnResizing ( ) ; org.ovirt.engine.ui.common.widget.uicommon.vm.VmSnapshotListModelTable.getTable ( ) . setMultiSelectionDisabled ( true ) ; initActionButtons ( ) ; addModelListeners ( ) ; }
Source:
public org.ovirt.engine.core.notifier.utils.sender.EventSenderResult send ( org.ovirt.engine.core.common.businessentities.EventAuditLogSubscriber eventData , java.lang.String methodAddress ) ;

Target:
public org.ovirt.engine.core.notifier.utils.sender.EventSenderResult send ( org.ovirt.engine.core.common.businessentities.EventAuditLogSubscriber eventData ) ;
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NewNetworkModel object ) { driver.edit ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NewNetworkModel object ) { super . edit ( object ) ; driver.edit ( object ) ; }
Source:
protected < T > java.util.Set < org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > > getExtraConfigDescriptors ( ) { return java.util.Collections.emptySet ( ) ; }

Target:
protected java.util.Set < org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < java.lang.Object > > getExtraConfigDescriptors ( ) { return java.util.Collections.emptySet ( ) ; }
Source:
private org.ovirt.engine.sdk.web.ConnectionsPoolBuilder username ( java.lang.String username ) { this . username = username ; return this ; }

Target:
public org.ovirt.engine.sdk.web.ConnectionsPoolBuilder username ( java.lang.String username ) { this . username = username ; return this ; }
Source:
private void initTabAvailabilityListeners ( ) { highAvailabilityTab.setVisible ( false ) ; isStatelessEditor.setVisible ( true ) ; numOfMonitorsEditor.setVisible ( true ) ; }

Target:
private void initTabAvailabilityListeners ( ) { highAvailabilityTab.setVisible ( true ) ; isStatelessEditor.setVisible ( true ) ; numOfMonitorsEditor.setVisible ( true ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult isUp ( ) { if ( ( ( storagePool ) == null ) || ( ( storagePool.getstatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.StoragePoolStatus.Up ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult isUp ( ) { if ( ( ( storagePool ) == null ) || ( ( storagePool.getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.StoragePoolStatus.Up ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void testGetAllForQuotaId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permission > result = dao.getConsumedPermissionsForQuotaId ( FixturesTool.QUOTA_GENERAL ) ; org.junit.Assert.assertEquals ( result.get ( 0 ) . getAdElementId ( ) , FixturesTool.USER_EXISTING_ID ) ; }

Target:
public void testGetAllForQuotaId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permission > result = dao.getConsumedPermissionsForQuotaId ( FixturesTool.QUOTA_GENERAL ) ; org.junit.Assert.assertEquals ( FixturesTool.USER_EXISTING_ID , result.get ( 0 ) . getAdElementId ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { return java.util.Collections.singletonList ( new org.ovirt.engine.core.bll.utils.PermissionSubject ( getParameters ( ) . getQuotaId ( ) , org.ovirt.engine.core.common.VdcObjectType.Quota , getActionType ( ) . getActionGroup ( ) ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { return java.util.Collections.singletonList ( new org.ovirt.engine.core.bll.utils.PermissionSubject ( getParameters ( ) . getId ( ) , org.ovirt.engine.core.common.VdcObjectType.Quota , getActionType ( ) . getActionGroup ( ) ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; setUpDaoMocks ( ) ; org.mockito.Mockito.doReturn ( "config" ) . when ( getQuery ( ) ) . generateOvfConfig ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; org.mockito.Mockito.doReturn ( "config" ) . when ( getQuery ( ) ) . generateOvfConfig ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ; }
Source:
public java.lang.Void call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( ( ( org.ovirt.ovirt_host_deploy.constants.OpenStackEnv.NEUTRON_CONFIG_PREFIX ) + "DEFAULT/rpc_backend" ) , "quantum.openstack.common.rpc.impl_qpid" ) ; return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( ( ( org.ovirt.ovirt_host_deploy.constants.OpenStackEnv.NEUTRON_CONFIG_PREFIX ) + "DEFAULT/rpc_backend" ) , "quantum.openstack.common.rpc.impl_qpid" ) ; return true ; }
Source:
private void domainListNotEmpty ( ) { org.mockito.Mockito.when ( sdList.size ( ) ) . thenReturn ( 1 ) ; }

Target:
private void domainListNotEmpty ( ) { org.mockito.Mockito.when ( sdList.isEmpty ( ) ) . thenReturn ( false ) ; org.mockito.Mockito.when ( sdList.size ( ) ) . thenReturn ( 1 ) ; }