auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testWriteFileToStream_IOException ( ) { java.io.File file = new java.io.File ( "/doesnotexist/iamprettysure" ) ; java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream ( ) ; try { org.ovirt.engine.core.utils.servlet.ServletUtils.writeFileToStream ( out , file ) ; org.junit.Assert.fail ( "Should not get here, file doesn't exist" ) ; } catch ( java.io.IOException ioe ) { } }

Target:
public void testWriteFileToStream_IOException ( ) throws java.io.IOException { java.io.File file = new java.io.File ( "/doesnotexist/iamprettysure" ) ; java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream ( ) ; org.ovirt.engine.core.utils.servlet.ServletUtils.writeFileToStream ( out , file ) ; }
Source:
public void setAutoStartup ( boolean value ) { vmStatic.setauto_startup ( value ) ; }

Target:
public void setAutoStartup ( boolean value ) { vmStatic.setAutoStartup ( value ) ; }
Source:
private void startGeoRepSession ( ) { performGeoRepAction ( "onStartGeoRepSession" , org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeGeoRepListModel.constants.geoReplicationStartTitle ( ) , HelpTag.volume_geo_rep_start_confirmation , "volume_geo_rep_start_confirmation" , org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeGeoRepListModel.constants.startGeoRep ( ) , VdcActionType.StartGlusterVolumeGeoRep , org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeGeoRepListModel.constants.startGeoRepProgressText ( ) ) ; }

Target:
private void startGeoRepSession ( ) { performGeoRepAction ( "onStartGeoRepSession" , org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeGeoRepListModel.constants.geoReplicationStartTitle ( ) , HelpTag.volume_geo_rep_start_confirmation , "volume_geo_rep_start_confirmation" , org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeGeoRepListModel.constants.startGeoRep ( ) , VdcActionType.StartGlusterVolumeGeoRep ) ; }
Source:
public static org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > failsWith ( org.ovirt.engine.core.common.errors.VdcBllMessages expectedError ) { return new org.ovirt.engine.core.bll.validator.ValidationResultMatchers.Fails ( expectedError ) ; }

Target:
public static org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > failsWith ( org.ovirt.engine.core.common.errors.EngineMessage expectedError ) { return new org.ovirt.engine.core.bll.validator.ValidationResultMatchers.Fails ( expectedError ) ; }
Source:
protected java.lang.String getProgressText ( org.ovirt.engine.core.common.businessentities.VDS object ) { int numOfActiveVMs = ( ( object.getvm_active ( ) ) != null ) ? object.getvm_active ( ) : 0 ; return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . numberOfVmsForHostsLoad ( object.getvm_active ( ) ) ; }

Target:
protected java.lang.String getProgressText ( org.ovirt.engine.core.common.businessentities.VDS object ) { int numOfActiveVMs = ( ( object.getvm_active ( ) ) != null ) ? object.getvm_active ( ) : 0 ; return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . numberOfVmsForHostsLoad ( numOfActiveVMs ) ; }
Source:
public void setName ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( name , value ) ) ) { name = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Name" ) ) ; } }

Target:
public void setName ( java.lang.String value ) { name = value ; }
Source:
private boolean statusChanged ( org.ovirt.engine.core.common.businessentities.VM dbVm , org.ovirt.engine.core.common.businessentities.VmDynamic vdsmVm ) { return ( dbVm == null ) || ( ( dbVm.getStatus ( ) ) != ( vdsmVm.getStatus ( ) ) ) ; }

Target:
private boolean statusChanged ( org.ovirt.engine.core.common.businessentities.VmDynamic dbVm , org.ovirt.engine.core.common.businessentities.VmDynamic vdsmVm ) { return ( dbVm == null ) || ( ( dbVm.getStatus ( ) ) != ( vdsmVm.getStatus ( ) ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return 100 ; } return ( ( java.lang.Integer ) ( source ) ) . intValue ( ) ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return 100 ; } return source ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { postMigrateGetUpHosts ( privateVmList , ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { postMigrateGetUpHosts ( privateVmList , ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ) ; }
Source:
protected void endVmCommand ( ) { getSnapshotDao ( ) . updateStatus ( org.ovirt.engine.core.bll.RestoreAllSnapshotsCommand.getParameters ( ) . getSnapshotId ( ) , SnapshotStatus.OK ) ; super . endVmCommand ( ) ; }

Target:
protected void endVmCommand ( ) { org.ovirt.engine.core.bll.RestoreAllSnapshotsCommand.getSnapshotDao ( ) . updateStatus ( org.ovirt.engine.core.bll.RestoreAllSnapshotsCommand.getParameters ( ) . getSnapshotId ( ) , SnapshotStatus.OK ) ; super . endVmCommand ( ) ; }
Source:
public void testGetAsyncTaskEntitiesById ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTask > tasks = dao.getTasksByEntity ( FixturesTool.ENTITY_WITH_TASKS_ID ) ; org.junit.Assert.assertNotNull ( tasks ) ; org.junit.Assert.assertEquals ( tasks.size ( ) , 1 ) ; }

Target:
public void testGetAsyncTaskEntitiesById ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTask > tasks = dao.getTasksByEntity ( FixturesTool.ENTITY_WITH_TASKS_ID ) ; org.junit.Assert.assertNotNull ( tasks ) ; org.junit.Assert.assertEquals ( 1 , tasks.size ( ) ) ; }
Source:
public void Rollback ( ) { super . Rollback ( ) ; try { org.ovirt.engine.core.bll.MacPoolManager.getInstance ( ) . freeMac ( org.ovirt.engine.core.bll.AddVmInterfaceCommand.getParameters ( ) . getInterface ( ) . getMacAddress ( ) ) ; } catch ( java.lang.Exception e ) { } }

Target:
public void Rollback ( ) { super . Rollback ( ) ; try { org.ovirt.engine.core.bll.MacPoolManager.getInstance ( ) . freeMac ( getMacAddress ( ) ) ; } catch ( java.lang.Exception e ) { } }
Source:
public static void ClearConfigCache ( ) { if ( ( org.ovirt.engine.ui.uicommonweb.DataProvider.CachedConfigValues ) != null ) { org.ovirt.engine.ui.uicommonweb.DataProvider.CachedConfigValues.clear ( ) ; } org.ovirt.engine.ui.uicommonweb.DataProvider.userActionGroups = null ; org.ovirt.engine.ui.uicommonweb.DataProvider.windowsOsTypes = null ; org.ovirt.engine.ui.uicommonweb.DataProvider.linuxOsTypes = null ; org.ovirt.engine.ui.uicommonweb.DataProvider.x64OsTypes = null ; org.ovirt.engine.ui.uicommonweb.DataProvider.hasAdminSystemPermission = null ; }

Target:
public static void ClearConfigCache ( ) { if ( ( org.ovirt.engine.ui.uicommonweb.DataProvider.CachedConfigValues ) != null ) { org.ovirt.engine.ui.uicommonweb.DataProvider.CachedConfigValues.clear ( ) ; } org.ovirt.engine.ui.uicommonweb.DataProvider.windowsOsTypes = null ; org.ovirt.engine.ui.uicommonweb.DataProvider.linuxOsTypes = null ; org.ovirt.engine.ui.uicommonweb.DataProvider.x64OsTypes = null ; org.ovirt.engine.ui.uicommonweb.DataProvider.hasAdminSystemPermission = null ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( org.ovirt.engine.core.common.businessentities.Cluster cluster , java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts , org.ovirt.engine.core.common.businessentities.VM vm , java.util.Map < java.lang.String , java.lang.String > parameters , org.ovirt.engine.core.common.scheduling.PerHostMessages messages ) { return org.ovirt.engine.core.bll.scheduling.policyunits.VmAffinityFilterPolicyUnit.getAcceptableHosts ( true , hosts , vm , messages , getPendingResourceManager ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( org.ovirt.engine.core.common.businessentities.Cluster cluster , java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts , org.ovirt.engine.core.common.businessentities.VM vm , java.util.Map < java.lang.String , java.lang.String > parameters , org.ovirt.engine.core.common.scheduling.PerHostMessages messages ) { return getAcceptableHosts ( true , hosts , vm , messages ) ; }
Source:
public java.lang.String render ( java.lang.Integer object ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getOsName ( object ) ; }

Target:
public java.lang.String render ( java.lang.Integer object ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getOsName ( object ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getRemoveVmInterfaceParams ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface vnic ) { return new org.ovirt.engine.core.common.action.RemoveVmInterfaceParameters ( vnic.getVmId ( ) . getValue ( ) , vnic.getId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getRemoveVmInterfaceParams ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface vnic ) { return new org.ovirt.engine.core.common.action.RemoveVmInterfaceParameters ( vnic.getVmId ( ) , vnic.getId ( ) ) ; }
Source:
protected java.util.concurrent.Callable < org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult > createTask ( final org.ovirt.engine.core.bll.pm.FenceActionExecutor executor , final org.ovirt.engine.core.common.businessentities.pm.FenceActionType fenceAction ) { return new java.util.concurrent.Callable < org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult > ( ) { @ java.lang.Override public org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult call ( ) { return executor.fence ( fenceAction ) ; } } ; }

Target:
protected java.util.concurrent.Callable < org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult > createTask ( final org.ovirt.engine.core.bll.pm.FenceActionExecutor executor , final org.ovirt.engine.core.common.businessentities.pm.FenceActionType fenceAction ) { return ( ) -> executor.fence ( fenceAction ) ; }
Source:
public void stringToVCpupinIntervalsList ( ) { org.ovirt.engine.api.model.VCpuPin pin = org.ovirt.engine.api.restapi.types.VmMapper.stringToVCpupin ( "1#1-4,6" ) ; assertEquals ( 1 , pin.getVcpu ( ) ) ; assertEquals ( "1-4,6" , pin.getCpuSet ( ) ) ; }

Target:
public void stringToVCpupinIntervalsList ( ) { org.ovirt.engine.api.model.VCpuPin pin = org.ovirt.engine.api.restapi.types.VmMapper.stringToVCpupin ( "1#1-4,6" ) ; assertEquals ( 1 , ( ( int ) ( pin.getVcpu ( ) ) ) ) ; assertEquals ( "1-4,6" , pin.getCpuSet ( ) ) ; }
Source:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBookmarkDao ( ) . getByName ( org.ovirt.engine.core.bll.AddBookmarkCommand.getBookmark ( ) . getbookmark_name ( ) ) ) != null ) { addErrorMessages ( EngineMessage.VAR__ACTION__ADD , EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; return false ; } return true ; }

Target:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBookmarkDao ( ) . getByName ( org.ovirt.engine.core.bll.AddBookmarkCommand.getBookmark ( ) . getName ( ) ) ) != null ) { addErrorMessages ( EngineMessage.VAR__ACTION__ADD , EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; return false ; } return true ; }
Source:
public void testConfigurationEntries ( ) throws java.lang.Exception { filter.clearFilterEntries ( ) ; filter.addFilterEntries ( java.util.Collections.singletonList ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilter.FilterEntry ( "message0" , false , "smtp" , "dbtest1@redhat.com" ) ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message0" ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message1" ) ) ; org.junit.Assert.assertTrue ( smtp.getEvents ( ) . contains ( "message0-->dbtest1@redhat.com" ) ) ; }

Target:
public void testConfigurationEntries ( ) throws java.lang.Exception { filter.clearFilterEntries ( ) ; filter.addFilterEntries ( java.util.Collections.singletonList ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilter.FilterEntry ( "message0" , null , false , "smtp" , "dbtest1@redhat.com" ) ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message0" ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message1" ) ) ; org.junit.Assert.assertTrue ( smtp.getEvents ( ) . contains ( "message0-->dbtest1@redhat.com" ) ) ; }
Source:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceModel iface ) { driver.edit ( iface ) ; hideMacWhenNotEnabled ( iface ) ; initCustomPropertySheet ( iface ) ; }

Target:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceModel iface ) { driver.edit ( iface ) ; hideMacWhenNotEnabled ( iface ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork ) ( model ) ) . getDisplayName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork model ) { return model.getDisplayName ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.compat.Guid > getChildCommandIds ( org.ovirt.engine.core.compat.Guid cmdId ) { return commandsRepository.getChildCommandIds ( cmdId ) ; }

Target:
private java.util.List < org.ovirt.engine.core.compat.Guid > getChildCommandIds ( org.ovirt.engine.core.compat.Guid cmdId ) { return new java.util.ArrayList ( commandsRepository.getChildCommandIds ( cmdId ) ) ; }
Source:
private void doStop ( ) { reset ( ) ; cancel ( ) ; com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , getRefreshRate ( ) ) ; }

Target:
private void doStop ( ) { reset ( ) ; cancel ( ) ; com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , getValue ( ) ) ; }
Source:
public static java.security.KeyStore getKeyStore ( ) { return org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils._getKeyStore ( org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.keystoreType , org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.keystoreFile , org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.keystorePassword.getPassword ( ) ) ; }

Target:
public static java.security.KeyStore getKeyStore ( ) { return org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.getKeyStore ( org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.keystoreType , org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.keystoreFile , org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.keystorePassword.getPassword ( ) ) ; }
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 , org.ovirt.engine.core.common.errors.VdcBllMessages message ) { return org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( group , message.name ( ) ) ; }

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 , org.ovirt.engine.core.common.errors.EngineMessage message ) { return org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( group , message.name ( ) ) ; }
Source:
public final boolean getBoolValue ( java.lang.String name , java.lang.String defaultValue ) { return ( ( java.lang.Boolean ) ( GetValue ( DataType.Bool , name , defaultValue ) ) ) . booleanValue ( ) ; }

Target:
public final boolean getBoolValue ( java.lang.String name , java.lang.String defaultValue ) { return ( ( java.lang.Boolean ) ( getValue ( DataType.Bool , name , defaultValue ) ) ) . booleanValue ( ) ; }
Source:
public void setstorage_domain_over_commit_percent ( int value ) { _storage_domain_over_commit_percent = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "storage_domain_over_commit_percent" ) ) ; }

Target:
public void setstorage_domain_over_commit_percent ( int value ) { _storage_domain_over_commit_percent = value ; }
Source:
public void vmId ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; b.setVmId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid i = b.getVmId ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , i ) ; }

Target:
public void vmId ( ) { b.setVmId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid i = b.getVmId ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , i ) ; }
Source:
public void validateNonExistingJobFails ( ) throws java.lang.Exception { setupMock ( ) ; org.mockito.Mockito.when ( jobDaoMock.get ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ) . thenReturn ( null ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.validate ( ) ) ) ) ; }

Target:
public void validateNonExistingJobFails ( ) throws java.lang.Exception { org.mockito.Mockito.when ( jobDaoMock.get ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ) . thenReturn ( null ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.validate ( ) ) ) ) ; }
Source:
public org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , java.lang.Integer > mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return new org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , java.lang.Integer > ( getGuid ( rs , "assigned_vm_numa_node_id" ) , rs.getInt ( "last_run_in_vds_numa_node_index" ) ) ; }

Target:
public org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , java.lang.Integer > mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return new org.ovirt.engine.core.common.utils.Pair ( getGuid ( rs , "assigned_vm_numa_node_id" ) , rs.getInt ( "last_run_in_vds_numa_node_index" ) ) ; }
Source:
public void testOneKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtils.string2Map ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtilsTest.ONE_KEY_VAL ) ; org.junit.Assert.assertEquals ( map.size ( ) , 1 ) ; }

Target:
public void testOneKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtils.string2Map ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtilsTest.ONE_KEY_VAL ) ; org.junit.Assert.assertEquals ( 1 , map.size ( ) ) ; }
Source:
public void getClusterId ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; b.setClusterId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid g = b.getClusterId ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g ) ; }

Target:
public void getClusterId ( ) { b.setClusterId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid g = b.getClusterId ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g ) ; }
Source:
public void tearDown ( ) { org.powermock.api.easymock.PowerMock.verifyAll ( ) ; }

Target:
public void tearDown ( ) { }
Source:
public void calculateNetworkImplementationDetailsNetworkDefaultMtuOutOfSync ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNetworkDevice ( ) ; calculateNetworkImplementationDetailsAndAssertSync ( iface , false , iface.getNetworkName ( ) , iface.isBridged ( ) , 0 , iface.getVlanId ( ) , createQos ( ) ) ; }

Target:
public void calculateNetworkImplementationDetailsNetworkDefaultMtuOutOfSync ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNetworkDevice ( ) ; calculateNetworkImplementationDetailsAndAssertSync ( iface , false , iface.isBridged ( ) , 0 , iface.getVlanId ( ) , createQos ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { getConnectivityTimeout ( ) . setEntity ( ( ( java.lang.Integer ) ( returnValue ) ) ) ; postOnSetupNetworks ( ) ; }

Target:
public void onSuccess ( java.lang.Integer returnValue ) { getConnectivityTimeout ( ) . setEntity ( returnValue ) ; postOnSetupNetworks ( ) ; }
Source:
protected boolean isUserAuthorizedToRunAction ( ) { if ( org.ovirt.engine.core.bll.aaa.LoginBaseCommand.log.isDebugEnabled ( ) ) { org.ovirt.engine.core.bll.aaa.LoginBaseCommand.log.debug ( "IsUserAutorizedToRunAction: login - no permission check" ) ; } return true ; }

Target:
protected boolean isUserAuthorizedToRunAction ( ) { org.ovirt.engine.core.bll.aaa.LoginBaseCommand.log.debug ( "IsUserAutorizedToRunAction: login - no permission check" ) ; return true ; }
Source:
public void canRunVmPassStatelessWhenVmNotHAwithNegativeStatelessParam ( ) { org.ovirt.engine.core.bll.RunVmCommandTest.canRunStatelessVmTest ( false , false , java.lang.Boolean.TRUE , true ) ; }

Target:
public void canRunVmPassStatelessWhenVmNotHAwithNegativeStatelessParam ( ) { canRunStatelessVmTest ( false , false , java.lang.Boolean.TRUE , true ) ; }
Source:
public java.util.Set < java.lang.String > getConsumedEvents ( ) { java.util.HashSet < java.lang.String > set = new java.util.HashSet ( super . getConsumedEvents ( ) ) ; set.addAll ( ElementTooltipUtils.HANDLED_CELL_EVENTS ) ; return set ; }

Target:
public java.util.Set < java.lang.String > getConsumedEvents ( ) { java.util.Set < java.lang.String > set = new java.util.HashSet ( super . getConsumedEvents ( ) ) ; set.addAll ( ElementTooltipUtils.HANDLED_CELL_EVENTS ) ; return set ; }
Source:
private java.lang.String getValueObject ( final java.lang.String value ) { org.codehaus.jackson.node.ObjectNode node = mapper.createObjectNode ( ) ; node.put ( "value" , value ) ; return node.toString ( ) ; }

Target:
protected java.lang.String getValueObject ( final java.lang.String value ) { org.codehaus.jackson.node.ObjectNode node = mapper.createObjectNode ( ) ; node.put ( "value" , value ) ; return node.toString ( ) ; }
Source:
public void setup ( ) { map = new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap ( ) ; cmd.init ( ) ; org.mockito.Mockito.doReturn ( storagePoolDao ) . when ( cmd ) . getStoragePoolDao ( ) ; org.mockito.Mockito.doReturn ( eventQueue ) . when ( cmd ) . getEventQueue ( ) ; }

Target:
public void setup ( ) { map = new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap ( ) ; cmd.init ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Disk > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Disk > ( ) ; }
Source:
protected void updateButton ( ) { super . updateButton ( ) ; tooltip.setText ( buildTooltipText ( ) ) ; tooltip.reconfigure ( ) ; }

Target:
protected void updateButton ( ) { super . updateButton ( ) ; tooltip.setText ( buildTooltipText ( ) ) ; }
Source:
public void passthroughProfileValidProperties ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , null , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passthroughProfileValidProperties ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , null , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( object ) ) . getVdsName ( ) ; }

Target:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( object ) ) . getName ( ) ; }
Source:
public void testFindExternalMacAddressesVnicsNull ( ) { final java.util.Set < java.lang.String > actual = underTest.findExternalMacAddresses ( vm , org.ovirt.engine.core.bll.network.vm.ExternalVmMacsFinderTest.COMMAND_CONTEXT ) ; org.junit.Assert.assertThat ( actual , org.hamcrest.Matchers.empty ( ) ) ; }

Target:
public void testFindExternalMacAddressesVnicsNull ( ) { final java.util.Set < java.lang.String > actual = underTest.findExternalMacAddresses ( vm ) ; org.junit.Assert.assertThat ( actual , org.hamcrest.Matchers.empty ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.qos.StorageQos , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.qos.DataCenterStorageQosListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.dataCenterStorageQosSubTabLabel ( ) , 10 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.qos.StorageQos , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.qos.DataCenterStorageQosListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.dataCenterStorageQosSubTabLabel ( ) , 0 , modelProvider ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { UpdateVolumeDetails ( ) ; updateAlerts ( ) ; updateConsoleAddressPartiallyOverridden ( getEntity ( ) ) ; updateProperties ( ) ; } UpdateActionAvailability ( ) ; }

Target:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { UpdateVolumeDetails ( ) ; updateAlerts ( ) ; updateConsoleAddressPartiallyOverridden ( getEntity ( ) ) ; updateProperties ( ) ; } }
Source:
public static org.ovirt.engine.core.common.businessentities.VmStatistics buildVMStatisticsData ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct xmlRpcStruct ) { org.ovirt.engine.core.common.businessentities.VmStatistics vmStatistics = new org.ovirt.engine.core.common.businessentities.VmStatistics ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVMStatisticsData ( vmStatistics , xmlRpcStruct ) ; return vmStatistics ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VmStatistics buildVMStatisticsData ( java.util.Map < java.lang.String , java.lang.Object > xmlRpcStruct ) { org.ovirt.engine.core.common.businessentities.VmStatistics vmStatistics = new org.ovirt.engine.core.common.businessentities.VmStatistics ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVMStatisticsData ( vmStatistics , xmlRpcStruct ) ; return vmStatistics ; }
Source:
public org.ovirt.engine.api.model.Capabilities get ( ) ;

Target:
public org.ovirt.engine.api.model.Capabilities list ( ) ;
Source:
public java.lang.String mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { java.lang.String content = rs.getString ( 1 ) ; return content ; }

Target:
public java.lang.String mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return rs.getString ( 1 ) ; }
Source:
public void renameXenImage ( ) { java.lang.String alias = org.ovirt.engine.core.bll.exportimport.ImportVmFromExternalProviderCommand.renameDiskAlias ( OriginType.XEN , "/home/vdsm/Fedora22.img" ) ; org.junit.Assert.assertEquals ( alias , "Fedora22" ) ; }

Target:
public void renameXenImage ( ) { java.lang.String alias = org.ovirt.engine.core.bll.exportimport.ImportVmFromExternalProviderCommand.renameDiskAlias ( OriginType.XEN , "/home/vdsm/Fedora22.img" ) ; org.junit.Assert.assertEquals ( "Fedora22" , alias ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateInfoPanel ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateInfoPanel ( ) ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query ) throws java.lang.Exception { assert query.equals ( "" ) ; setUpGetEntityExpectations ( true ) ; control.replay ( ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query ) throws java.lang.Exception { assertEquals ( "" , query ) ; setUpGetEntityExpectations ( true ) ; control.replay ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < java.lang.String > pmTypes = ( ( java.util.ArrayList < java.lang.String > ) ( returnValue ) ) ; updatePmTypeList ( pmTypes ) ; }

Target:
public void onSuccess ( java.util.List < java.lang.String > pmTypes ) { updatePmTypeList ( pmTypes ) ; }
Source:
public void setHeader ( com.google.gwt.user.client.ui.Widget widget ) { widget.addStyleName ( style.headerTitleFloat ( ) ) ; headerTitlePanel.insert ( widget , 0 ) ; }

Target:
public void setHeader ( com.google.gwt.user.client.ui.Widget widget ) { headerTitlePanel.insert ( widget , 0 ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml vmNameCellItem ( java.lang.String name ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml vmNameCellItem ( java.lang.String id , java.lang.String name ) ;
Source:
public static org.ovirt.engine.core.compat.Guid getGuid ( java.sql.ResultSet resultSet , java.lang.String columnName ) throws java.sql.SQLException { return org.ovirt.engine.core.dao.BaseDAODbFacade.getGuid ( resultSet , columnName , null ) ; }

Target:
protected static org.ovirt.engine.core.compat.Guid getGuid ( java.sql.ResultSet resultSet , java.lang.String columnName ) throws java.sql.SQLException { return org.ovirt.engine.core.dao.BaseDAODbFacade.getGuid ( resultSet , columnName , null ) ; }
Source:
public void testGetVirtOnly ( ) { doTestGet ( ApplicationMode.VirtOnly , org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.URI_BASE ) ; }

Target:
public void testGetVirtOnly ( ) { doTestGet ( ApplicationMode.VirtOnly ) ; }
Source:
public void testValidateGatewayWhenGatewayIsNotSpecified ( ) { doTestValidateGateway ( "" , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateGatewayWhenGatewayIsNotSpecified ( ) { doTestValidateGateway ( "" , false , true , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private void mockVds ( ) { mockVdsBroker ( ) ; mockIsValidVdsCommand ( ) ; mockGetImageDomainsListVdsCommand ( 100 , 100 ) ; }

Target:
private void mockVds ( ) { mockIsValidVdsCommand ( ) ; mockGetImageDomainsListVdsCommand ( 100 , 100 ) ; }
Source:
public java.util.SortedSet < java.lang.String > convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { java.util.SortedSet < java.lang.String > sortedSet = new java.util.TreeSet ( new org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator ( ) ) ; sortedSet.addAll ( ( ( java.util.Collection < java.lang.String > ) ( returnValue ) ) ) ; return sortedSet ; }

Target:
public java.util.SortedSet < java.lang.String > convert ( java.lang.Object returnValue ) { java.util.SortedSet < java.lang.String > sortedSet = new java.util.TreeSet ( new org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator ( ) ) ; sortedSet.addAll ( ( ( java.util.Collection < java.lang.String > ) ( returnValue ) ) ) ; return sortedSet ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockFirstStorageDomain ( int availabeDiskSize ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; storageDomain.setAvailableDiskSize ( availabeDiskSize ) ; storageDomain.setStatus ( StorageDomainStatus.Active ) ; storageDomain.setId ( firstStorageDomainId ) ; storageDomain.setStorageDomainType ( StorageDomainType.Data ) ; return storageDomain ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockFirstStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; storageDomain.setStatus ( StorageDomainStatus.Active ) ; storageDomain.setId ( firstStorageDomainId ) ; storageDomain.setStorageDomainType ( StorageDomainType.Data ) ; return storageDomain ; }
Source:
protected boolean isSystemSuperUser ( ) { org.ovirt.engine.core.common.businessentities.permissions superUserPermission = org.ovirt.engine.core.bll.PermissionsCommandBase.getPermissionDAO ( ) . getForRoleAndAdElementAndObjectWithGroupCheck ( PredefinedRoles.SUPER_USER.getId ( ) , org.ovirt.engine.core.bll.PermissionsCommandBase.getCurrentUser ( ) . getUserId ( ) , MultiLevelAdministrationHandler.SYSTEM_OBJECT_ID ) ; return superUserPermission != null ; }

Target:
protected boolean isSystemSuperUser ( ) { org.ovirt.engine.core.common.businessentities.permissions superUserPermission = org.ovirt.engine.core.bll.PermissionsCommandBase.getPermissionDAO ( ) . getForRoleAndAdElementAndObjectWithGroupCheck ( PredefinedRoles.SUPER_USER.getId ( ) , org.ovirt.engine.core.bll.PermissionsCommandBase.getCurrentUser ( ) . getId ( ) , MultiLevelAdministrationHandler.SYSTEM_OBJECT_ID ) ; return superUserPermission != null ; }
Source:
public void discardFieldsAreParsed ( ) { testDiscardFieldsParsing ( Version.v4_1 , 1024L , true ) ; }

Target:
public void discardFieldsAreParsed ( ) { testDiscardFieldsParsing ( Version.v4_1 , 1024L , false ) ; }
Source:
public void setExpectedEngineErrors ( java.util.Set < org.ovirt.engine.core.common.errors.EngineError > errors ) { expectedEngineErrors = java.util.Optional.ofNullable ( errors ) ; }

Target:
public void setExpectedEngineErrors ( java.util.Set < org.ovirt.engine.core.common.errors.EngineError > errors ) { expectedEngineErrors = errors ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 1000 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 1 ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.DbUser > getAll ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetAllFromUsers" , new org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserRowMapper ( ) , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.DbUser > getAll ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetAllFromUsers" , org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserRowMapper.instance , parameterSource ) ; }
Source:
public boolean Validate ( ) { getDescription ( ) . validateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.SpecialAsciiI18NOrNoneValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.LengthValidation ( org.ovirt.engine.core.common.businessentities.BusinessEntitiesDefinitions.GENERAL_MAX_SIZE ) } ) ; return getDescription ( ) . getIsValid ( ) ; }

Target:
public boolean validate ( ) { getDescription ( ) . validateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.SpecialAsciiI18NOrNoneValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.LengthValidation ( org.ovirt.engine.core.common.businessentities.BusinessEntitiesDefinitions.GENERAL_MAX_SIZE ) } ) ; return getDescription ( ) . getIsValid ( ) ; }
Source:
private org.ovirt.engine.core.bll.exportimport.ImportVmTemplateCommand createImportVmTemplateCommandSpy ( final org.ovirt.engine.core.common.action.ImportVmTemplateParameters parameters ) { org.ovirt.engine.core.bll.exportimport.ImportVmTemplateCommand spy = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.exportimport.ImportVmTemplateCommand ( parameters , org.ovirt.engine.core.bll.context.CommandContext.createContext ( parameters.getSessionId ( ) ) ) { @ java.lang.Override public org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { return null ; } } ) ; return spy ; }

Target:
private org.ovirt.engine.core.bll.exportimport.ImportVmTemplateCommand createImportVmTemplateCommandSpy ( final org.ovirt.engine.core.common.action.ImportVmTemplateParameters parameters ) { return org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.exportimport.ImportVmTemplateCommand ( parameters , org.ovirt.engine.core.bll.context.CommandContext.createContext ( parameters.getSessionId ( ) ) ) ) ; }
Source:
public void testQueryWithoutFilter ( ) throws java.lang.Exception { resource.setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( false ) ; control.replay ( ) ; resource.get ( ) ; }

Target:
public void testQueryWithoutFilter ( ) throws java.lang.Exception { resource.setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( false ) ; resource.get ( ) ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.StoragePool , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { setIsUsbEnabled ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { setIsUsbEnabled ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }
Source:
protected org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator createValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator ( interfaceDao , networkDao , networkCluster , oldNetworkCluster , version ) ; }

Target:
protected org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator createValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator ( interfaceDao , networkDao , networkCluster , oldNetworkCluster ) ; }
Source:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup.getCompatibilityVersion ( ) ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) , UsbPolicy.DISABLED ) ; }
Source:
public java.util.Collection < org.ovirt.engine.core.compat.Guid > getGroupIds ( ) { if ( ( groupIds ) == null ) { groupIds = java.util.Collections.emptyList ( ) ; } return java.util.Collections.unmodifiableCollection ( groupIds ) ; }

Target:
public java.util.Collection < org.ovirt.engine.core.compat.Guid > getGroupIds ( ) { if ( ( groupIds ) == null ) { groupIds = java.util.Collections.emptyList ( ) ; } return new java.util.ArrayList < org.ovirt.engine.core.compat.Guid > ( groupIds ) ; }
Source:
private org.ovirt.engine.core.bll.gluster.RefreshGlusterVolumeDetailsCommand createTestCommand ( org.ovirt.engine.core.compat.Guid volumeId ) { return new org.ovirt.engine.core.bll.gluster.RefreshGlusterVolumeDetailsCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeParameters ( volumeId ) ) ; }

Target:
private org.ovirt.engine.core.bll.gluster.RefreshGlusterVolumeDetailsCommand createTestCommand ( org.ovirt.engine.core.compat.Guid volumeId ) { return new org.ovirt.engine.core.bll.gluster.RefreshGlusterVolumeDetailsCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeParameters ( volumeId ) , null ) ; }
Source:
protected org.ovirt.engine.core.dao.DiskDao getDiskDao ( ) { return org.ovirt.engine.core.bll.VmCommand.getDbFacade ( ) . getDiskDao ( ) ; }

Target:
public org.ovirt.engine.core.dao.DiskDao getDiskDao ( ) { return org.ovirt.engine.core.bll.VmCommand.getDbFacade ( ) . getDiskDao ( ) ; }
Source:
public org.ovirt.engine.api.model.Users list ( ) { if ( isFiltered ( ) ) { return mapDbUserCollection ( getBackendCollection ( VdcQueryType.GetAllDbUsers , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; } else { return mapDbUserCollection ( getBackendCollection ( SearchType.DBUser , getSearchPattern ( ) ) ) ; } }

Target:
public org.ovirt.engine.api.model.Users list ( ) { if ( isFiltered ( ) ) { return mapDbUserCollection ( getBackendCollection ( VdcQueryType.GetAllDbUsers , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , SearchType.DBUser ) ) ; } else { return mapDbUserCollection ( getBackendCollection ( SearchType.DBUser , getSearchPattern ( ) ) ) ; } }
Source:
public java.lang.String getHostFingerprint ( ) throws java.io.IOException { return getHostFingerprint ( "SHA-256" ) ; }

Target:
public java.lang.String getHostFingerprint ( ) throws java.lang.Exception { return getHostFingerprint ( null ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.Provider < ? > > searchProviders ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getProviderDao ( ) , true , null ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.Provider < ? > > searchProviders ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getProviderDao ( ) , true ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntityPhase ( org.ovirt.engine.core.common.businessentities.storage.ImageTransferPhase phase ) { org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updates = new org.ovirt.engine.core.common.businessentities.storage.ImageTransfer ( org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getCommandId ( ) ) ; updates.setPhase ( phase ) ; return updateEntity ( updates ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntityPhase ( org.ovirt.engine.core.common.businessentities.storage.ImageTransferPhase phase ) { org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updates = new org.ovirt.engine.core.common.businessentities.storage.ImageTransfer ( org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getCommandId ( ) ) ; updates.setPhase ( phase ) ; return updateEntity ( updates ) ; }
Source:
protected void init ( ) { resource.setBackend ( backend ) ; resource.setMappingLocator ( mapperLocator ) ; sessionHelper.setSessionId ( sessionId ) ; resource.setSessionHelper ( sessionHelper ) ; resource.setMessageBundle ( messageBundle ) ; resource.setHttpHeaders ( httpHeaders ) ; }

Target:
protected void init ( ) { resource.setBackend ( backend ) ; resource.setMappingLocator ( mapperLocator ) ; resource.setMessageBundle ( messageBundle ) ; resource.setHttpHeaders ( httpHeaders ) ; }
Source:
public static org.ovirt.engine.core.bll.ValidationResult.ValidationResultBuilder failWith ( org.ovirt.engine.core.common.errors.VdcBllMessages expectedError , java.lang.String ... replacements ) { return new org.ovirt.engine.core.bll.ValidationResult.ValidationResultBuilder ( expectedError , replacements ) ; }

Target:
public static org.ovirt.engine.core.bll.ValidationResult.ValidationResultBuilder failWith ( org.ovirt.engine.core.common.errors.EngineMessage expectedError , java.lang.String ... replacements ) { return new org.ovirt.engine.core.bll.ValidationResult.ValidationResultBuilder ( expectedError , replacements ) ; }
Source:
public void validateFailsOnNonExistingEvent ( ) { command.getParameters ( ) . setAuditLogId ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_1 ) ; prepareMocks ( command ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.AUDIT_LOG_CANNOT_REMOVE_AUDIT_LOG_NOT_EXIST ) ; }

Target:
public void validateFailsOnNonExistingEvent ( ) { command.getParameters ( ) . setAuditLogId ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_1 ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.AUDIT_LOG_CANNOT_REMOVE_AUDIT_LOG_NOT_EXIST ) ; }
Source:
protected void setVmTemplate ( final org.ovirt.engine.core.common.businessentities.VmTemplate value ) { vmTemplate = value ; }

Target:
public void setVmTemplate ( final org.ovirt.engine.core.common.businessentities.VmTemplate value ) { vmTemplate = value ; }
Source:
protected void init ( ) { struct.add ( "vmId" , org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.getParameters ( ) . getVmId ( ) . toString ( ) ) ; struct.add ( "nic" , initNicStructure ( ) ) ; }

Target:
protected void init ( ) { struct.add ( "vmId" , org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.getParameters ( ) . getVm ( ) . getId ( ) . toString ( ) ) ; struct.add ( "nic" , initNicStructure ( ) ) ; }
Source:
public void setstorage_pool_id ( org.ovirt.engine.core.compat.NGuid value ) { this . id.setStoragePoolId ( value ) ; }

Target:
public void setstorage_pool_id ( org.ovirt.engine.core.compat.Guid value ) { this . id.setStoragePoolId ( value ) ; }
Source:
public void setcpu_per_socket ( int value ) { this . mVmStatic.setcpu_per_socket ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "cpu_per_socket" ) ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "num_of_cpus" ) ) ; }

Target:
public void setcpu_per_socket ( int value ) { this . mVmStatic.setcpu_per_socket ( value ) ; }