auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; assertEquals ( ( ( ( NAMES [ index ] ) + "@" ) + ( DOMAIN ) ) , model.getUserName ( ) ) ; assertNotNull ( model.getDomain ( ) ) ; assertEquals ( new org.ovirt.engine.core.compat.Guid ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN.getBytes ( java.nio.charset.Charset.forName ( "UTF-8" ) ) , true ) . toString ( ) , model.getDomain ( ) . getId ( ) ) ; assertTrue ( model.isSetGroups ( ) ) ; assertEquals ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResourceTest.PARSED_GROUPS.length , model.getGroups ( ) . getGroups ( ) . size ( ) ) ; java.util.HashSet < java.lang.String > groupNames = new java.util.HashSet < > ( ) ; for ( org.ovirt.engine.api.model.Group group : model.getGroups ( ) . getGroups ( ) ) { groupNames.add ( group.getName ( ) ) ; } assertEquals ( new java.util.HashSet < java.lang.String > ( java.util.Arrays.asList ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResourceTest.PARSED_GROUPS ) ) , groupNames ) ; verifyLinks ( model ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; assertEquals ( ( ( ( NAMES [ index ] ) + "@" ) + ( DOMAIN ) ) , model.getUserName ( ) ) ; assertNotNull ( model.getDomain ( ) ) ; assertEquals ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN ) , model.getDomain ( ) . getId ( ) ) ; assertTrue ( model.isSetGroups ( ) ) ; assertEquals ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResourceTest.PARSED_GROUPS.length , model.getGroups ( ) . getGroups ( ) . size ( ) ) ; java.util.HashSet < java.lang.String > groupNames = new java.util.HashSet < > ( ) ; for ( org.ovirt.engine.api.model.Group group : model.getGroups ( ) . getGroups ( ) ) { groupNames.add ( group.getName ( ) ) ; } assertEquals ( new java.util.HashSet < java.lang.String > ( java.util.Arrays.asList ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResourceTest.PARSED_GROUPS ) ) , groupNames ) ; verifyLinks ( model ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { if ( ( getVds ( ) . getClusterCompatibilityVersion ( ) . compareTo ( Version.v3_3 ) ) >= 0 ) { status = getBroker ( ) . setMOMPolicyParameters ( initDeviceStructure ( ) ) ; proceedProxyReturnValue ( ) ; } }

Target:
protected void executeVdsBrokerCommand ( ) { status = getBroker ( ) . setMOMPolicyParameters ( initDeviceStructure ( ) ) ; proceedProxyReturnValue ( ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.getByName ( existingVdsGroup.getname ( ) ) ; assertCorrectVDSGroup ( result ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.getByName ( existingVdsGroup.getName ( ) ) ; assertCorrectVDSGroup ( result ) ; }
Source:
private java.lang.String buildHashMapKey ( java.util.Map.Entry < org.ovirt.engine.core.compat.Guid , java.lang.String > entry ) { return ( entry.getKey ( ) . toString ( ) ) + ( entry.getValue ( ) ) ; }

Target:
private java.lang.String buildHashMapKey ( java.util.Map.Entry < java.lang.String , java.lang.String > entry ) { return ( entry.getKey ( ) ) + ( entry.getValue ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { final org.ovirt.engine.core.common.businessentities.network.Network defaultManagementNetwork = ( ( org.ovirt.engine.core.common.businessentities.network.Network ) ( returnValue ) ) ; defaultManagementNetworkCache.put ( dataCenterId , defaultManagementNetwork ) ; setSelectedDefaultManagementNetwork ( clusterModel , defaultManagementNetwork ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.network.Network defaultManagementNetwork ) { defaultManagementNetworkCache.put ( dataCenterId , defaultManagementNetwork ) ; setSelectedDefaultManagementNetwork ( defaultManagementNetwork ) ; }
Source:
protected void RemoveVmStatic ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmStaticDAO ( ) . remove ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; }

Target:
protected void RemoveVmStatic ( ) { org.ovirt.engine.core.bll.VmCommand.getVmStaticDAO ( ) . remove ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VdsNetworkInterface enslaveOrReleaseNIC ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface iface , java.lang.String bondName ) { return createVdsInterface ( iface.getId ( ) , iface.getName ( ) , false , bondName , null , null , true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface enslaveOrReleaseNIC ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.lang.String bondName ) { return createVdsInterface ( iface.getId ( ) , iface.getName ( ) , false , bondName , null , null , true ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.ArchitectureType getArchitectureFromItem ( java.lang.Object item ) { org.ovirt.engine.core.common.businessentities.VM vm = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( item ) ) ; return vm.getClusterArch ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.ArchitectureType getArchitectureFromItem ( org.ovirt.engine.core.common.businessentities.VM vm ) { return vm.getClusterArch ( ) ; }
Source:
void vdsNonOperational ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.NonOperationalReason type , boolean logCommand , boolean saveToDb , org.ovirt.engine.core.compat.Guid domainId , java.util.Map < java.lang.String , java.lang.String > customLogValues ) ;

Target:
void vdsNonOperational ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.NonOperationalReason type , boolean logCommand , org.ovirt.engine.core.compat.Guid domainId , java.util.Map < java.lang.String , java.lang.String > customLogValues ) ;
Source:
public void sufficientDiskSpace ( ) { final int pctOfSpaceRequired = 0 ; final org.ovirt.engine.core.bll.ImportVmTemplateCommand c = setupDiskSpaceTest ( 0 , pctOfSpaceRequired ) ; org.junit.Assert.assertTrue ( c.canDoAction ( ) ) ; }

Target:
public void sufficientDiskSpace ( ) { final org.ovirt.engine.core.bll.ImportVmTemplateCommand c = setupDiskSpaceTest ( 0 ) ; org.junit.Assert.assertTrue ( c.canDoAction ( ) ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { context.storageList = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( returnValue ) ) ; SetDefaultNames8 ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { context.storageList = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( returnValue ) ) ; SetDefaultNames8 ( ) ; }
Source:
public void testValidateCommand ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.AddQuotaCommand addQuotaCommand = createCommand ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( addQuotaCommand ) ; }

Target:
public void testValidateCommand ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }
Source:
protected boolean canDoAction ( ) { return true ; }

Target:
protected boolean validate ( ) { return true ; }
Source:
private void changeStatus ( org.ovirt.engine.core.common.vdscommands.DestroyVmVDSCommandParameters parameters , org.ovirt.engine.core.common.businessentities.VmDynamic curVm ) { if ( org.ovirt.engine.core.vdsbroker.DestroyVmVDSCommand.getParameters ( ) . getVdsId ( ) . equals ( curVm.getRunOnVds ( ) ) ) { resourceManager.internalSetVmStatus ( curVm , VMStatus.PoweringDown ) ; } }

Target:
private void changeStatus ( org.ovirt.engine.core.common.businessentities.VmDynamic curVm ) { if ( org.ovirt.engine.core.vdsbroker.DestroyVmVDSCommand.getParameters ( ) . getVdsId ( ) . equals ( curVm.getRunOnVds ( ) ) ) { resourceManager.internalSetVmStatus ( curVm , VMStatus.PoweringDown ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.StorageDomain getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.StorageDomain ) ( super . getEntity ( ) ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomain getEntity ( ) { return super . getEntity ( ) ; }
Source:
java.lang.String getCustomDeviceProperties ( org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.CustomDeviceProperties , version.getValue ( ) ) ; }

Target:
java.lang.String getCustomDeviceProperties ( org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.CustomDeviceProperties , version.getValue ( ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.storage_domains a ) { return ( a.getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Master ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain a ) { return ( a.getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Master ) ; }
Source:
public void initTest ( ) { initEntitiesIds ( ) ; initCommand ( ) ; initialSetup ( ) ; }

Target:
public void initTest ( ) { initEntitiesIds ( ) ; initialSetup ( ) ; initCommand ( ) ; }
Source:
protected boolean canDoAction ( ) { addCustomValue ( "NewUserName" , org.ovirt.engine.core.bll.aaa.AddGroupCommand.getParameters ( ) . getGroupToAdd ( ) . getName ( ) ) ; return true ; }

Target:
protected boolean validate ( ) { addCustomValue ( "NewUserName" , org.ovirt.engine.core.bll.aaa.AddGroupCommand.getParameters ( ) . getGroupToAdd ( ) . getName ( ) ) ; return true ; }
Source:
public int compare ( org.ovirt.engine.core.aaa.AuthenticationProfile o1 , org.ovirt.engine.core.aaa.AuthenticationProfile o2 ) { return java.lang.Integer.valueOf ( o1.getNegotiationPriority ( ) ) . compareTo ( o2.getNegotiationPriority ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.aaa.AuthenticationProfile o1 , org.ovirt.engine.core.aaa.AuthenticationProfile o2 ) { return java.lang.Integer.compare ( o1.getNegotiationPriority ( ) , o2.getNegotiationPriority ( ) ) ; }
Source:
public java.util.Set < java.lang.String > getConsumedEvents ( ) { java.util.Set < java.lang.String > set = new java.util.HashSet < java.lang.String > ( ) ; set.add ( BrowserEvents.CLICK ) ; set.addAll ( super . getConsumedEvents ( ) ) ; 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.add ( BrowserEvents.CLICK ) ; return set ; }
Source:
public void canAddCloneVmFromSnapshotSnapshotDoesNotExist ( ) { initializeMock ( ) ; cmd.getVm ( ) . setName ( "vm1" ) ; mockUninterestingMethods ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_VM_SNAPSHOT_DOES_NOT_EXIST ) ; }

Target:
public void canAddCloneVmFromSnapshotSnapshotDoesNotExist ( ) { cmd.getVm ( ) . setName ( "vm1" ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_VM_SNAPSHOT_DOES_NOT_EXIST ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.action.SimpleActionPanel < org.ovirt.engine.core.common.businessentities.Bookmark > createActionPanel ( org.ovirt.engine.ui.webadmin.uicommon.model.BookmarkModelProvider modelProvider ) { return new org.ovirt.engine.ui.common.widget.action.SimpleActionPanel < org.ovirt.engine.core.common.businessentities.Bookmark > ( modelProvider , modelProvider.getSelectionModel ( ) , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getEventBus ( ) ) ; }

Target:
protected org.ovirt.engine.ui.common.widget.action.SimpleActionPanel < org.ovirt.engine.core.common.businessentities.Bookmark > createActionPanel ( org.ovirt.engine.ui.webadmin.uicommon.model.BookmarkModelProvider modelProvider ) { return new org.ovirt.engine.ui.common.widget.action.SimpleActionPanel ( modelProvider , modelProvider.getSelectionModel ( ) , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getEventBus ( ) ) ; }
Source:
public org.ovirt.engine.api.model.Nic update ( org.ovirt.engine.api.model.Nic nic ) { validateEnums ( org.ovirt.engine.api.model.Nic.class , nic ) ; return performUpdate ( nic , new org.ovirt.engine.api.restapi.resource.BackendVmNicResource.NicResolver ( ) , VdcActionType.UpdateVmInterface , new org.ovirt.engine.api.restapi.resource.BackendVmNicResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Nic update ( org.ovirt.engine.api.model.Nic nic ) { return performUpdate ( nic , new org.ovirt.engine.api.restapi.resource.BackendVmNicResource.NicResolver ( ) , VdcActionType.UpdateVmInterface , new org.ovirt.engine.api.restapi.resource.BackendVmNicResource.UpdateParametersProvider ( ) ) ; }
Source:
protected boolean validateUniqueVmName ( ) { return org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVm ( ) . getName ( ) ) ? failCanDoAction ( VdcBllMessages.VM_CANNOT_IMPORT_VM_NAME_EXISTS ) : true ; }

Target:
protected boolean validateUniqueVmName ( ) { return org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVm ( ) . getName ( ) , org.ovirt.engine.core.bll.ImportVmCommandBase.getStoragePoolId ( ) ) ? failCanDoAction ( VdcBllMessages.VM_CANNOT_IMPORT_VM_NAME_EXISTS ) : true ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.MoveHost moveHost = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.MoveHost ) ( target ) ) ; java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > hosts = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ; moveHost.PostGetHostList ( hosts ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.MoveHost moveHost = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.MoveHost ) ( target ) ) ; java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > hosts = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ; moveHost.PostGetHostList ( hosts ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { org.ovirt.engine.ui.uicommonweb.models.CommonModel commonModel = ( ( org.ovirt.engine.ui.uicommonweb.models.CommonModel ) ( model ) ) ; commonModel.setLoggedInUser ( null ) ; commonModel.getSignedOutEvent ( ) . raise ( commonModel , EventArgs.Empty ) ; }

Target:
public void OnSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { }
Source:
public java.lang.String ExportVm ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > images ) { org.ovirt.engine.core.utils.ovf.OvfWriter ovf = new org.ovirt.engine.core.utils.ovf.OvfVmWriter ( vm , images ) ; BuildOvf ( ovf ) ; return ovf.getStringRepresentation ( ) ; }

Target:
public java.lang.String ExportVm ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > images , org.ovirt.engine.core.compat.Version version ) { org.ovirt.engine.core.utils.ovf.OvfWriter ovf = new org.ovirt.engine.core.utils.ovf.OvfVmWriter ( vm , images , version ) ; BuildOvf ( ovf ) ; return ovf.getStringRepresentation ( ) ; }
Source:
public org.ovirt.engine.api.v3.servers.V3VmDiskServer getDiskResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return new org.ovirt.engine.api.v3.servers.V3VmDiskServer ( vmId , id , getDelegate ( ) . getDiskResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.v3.servers.V3VmDiskServer getDiskResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return new org.ovirt.engine.api.v3.servers.V3VmDiskServer ( id , getDelegate ( ) . getDiskResource ( id ) ) ; }
Source:
public void setIsExecutionAllowed ( boolean value ) { if ( ( isExecutionAllowed ) != value ) { isExecutionAllowed = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "IsExecutionAllowed" ) ) ; if ( getIsExecutionAllowed ( ) ) { getExecuteProhibitionReasons ( ) . clear ( ) ; } } }

Target:
public void setIsExecutionAllowed ( boolean value ) { if ( ( isExecutionAllowed ) != value ) { isExecutionAllowed = value ; if ( value ) { getExecuteProhibitionReasons ( ) . clear ( ) ; } OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "IsExecutionAllowed" ) ) ; } }
Source:
public org.ovirt.engine.api.resource.VmNicResource getNicResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVmNicResource ( parentId , id , this , updateType , getUpdateParametersProvider ( ) , getRequiredUpdateFields ( ) , subCollections ) ) ; }

Target:
public org.ovirt.engine.api.resource.VmNicResource getNicResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVmNicResource ( id , vmId ) ) ; }
Source:
public static < R extends org.ovirt.engine.api.model.BaseResource > R addLinks ( javax.ws.rs.core.UriInfo uriInfo , R model , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParentType ) { return org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( uriInfo , model , suggestedParentType , true ) ; }

Target:
public static < R extends org.ovirt.engine.api.model.BaseResource > R addLinks ( R model ) { return org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( model , null ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.storage_domains dom ) { return ( ( dom.getstatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) || ( ( dom.getstatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Locked ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain dom ) { return ( ( dom.getstatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) || ( ( dom.getstatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Locked ) ) ; }
Source:
public void initialize ( ) { super . initialize ( ) ; setHash ( ( ( getHashName ( ) ) + ( new java.util.Date ( ) ) ) ) ; behavior.setHash ( getHash ( ) ) ; initDataCenter ( ) ; }

Target:
public void initialize ( ) { super . initialize ( ) ; setHash ( ( ( getHashName ( ) ) + ( new java.util.Date ( ) ) ) ) ; behavior.setHash ( getHash ( ) ) ; behavior.initialize ( ) ; initDataCenter ( ) ; }
Source:
public void setMTUOverrideSupported ( boolean mtuOverrideSupported ) { this . mtuOverrideSupported = mtuOverrideSupported ; updateMtuSelectorsChangeability ( ) ; }

Target:
public void setMTUOverrideSupported ( ) { this . mtuOverrideSupported = true ; updateMtuSelectorsChangeability ( ) ; }
Source:
public void testNullKeyVal ( ) { 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.NULL_KEY_VAL ) ; org.junit.Assert.assertEquals ( map.size ( ) , 0 ) ; }

Target:
public void testNullKeyVal ( ) { 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.NULL_KEY_VAL ) ; org.junit.Assert.assertEquals ( 0 , map.size ( ) ) ; }
Source:
public javax.ws.rs.core.Response allocateVm ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.AttachUserToVmFromPoolAndRun , new org.ovirt.engine.core.common.action.VmPoolUserParameters ( guid , getCurrent ( ) . getUser ( ) , false ) , action , new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.VmQueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }

Target:
public javax.ws.rs.core.Response allocateVm ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.AttachUserToVmFromPoolAndRun , new org.ovirt.engine.core.common.action.VmPoolUserParameters ( guid , getCurrent ( ) . getUser ( ) . getId ( ) , false ) , action , new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.VmQueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }
Source:
public org.ovirt.engine.api.resource.openstack.OpenStackSubnetResource getOpenStackSubnet ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackSubnetResource ( providerId , networkId , id ) ) ; }

Target:
public org.ovirt.engine.api.resource.openstack.OpenStackSubnetResource getOpenStackSubnet ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackSubnetResource ( providerId , networkId , id , this ) ) ; }
Source:
public void testCobvertGBToBytes ( ) { long gigabytes = 3L ; long bytes = org.ovirt.engine.core.common.utils.SizeConverter.convert ( gigabytes , SizeConverter.SizeUnit.GiB , SizeConverter.SizeUnit.BYTES ) . longValue ( ) ; org.junit.Assert.assertEquals ( bytes , 3221225472L ) ; }

Target:
public void testCobvertGBToBytes ( ) { long gigabytes = 3L ; long bytes = org.ovirt.engine.core.common.utils.SizeConverter.convert ( gigabytes , SizeConverter.SizeUnit.GiB , SizeConverter.SizeUnit.BYTES ) . longValue ( ) ; org.junit.Assert.assertEquals ( 3221225472L , bytes ) ; }
Source:
protected org.ovirt.engine.api.model.Disk getUpdate ( ) { org.ovirt.engine.api.model.Disk update = new org.ovirt.engine.api.model.Disk ( ) ; update.setWipeAfterDelete ( false ) ; update.setReadOnly ( false ) ; return update ; }

Target:
protected org.ovirt.engine.api.model.Disk getUpdate ( ) { org.ovirt.engine.api.model.Disk update = new org.ovirt.engine.api.model.Disk ( ) ; update.setWipeAfterDelete ( false ) ; update.setReadOnly ( true ) ; return update ; }
Source:
public void setCurrentRefreshRate ( int newRefreshRate ) { saveRefreshRate ( newRefreshRate ) ; getModelTimer ( ) . setRefreshRate ( readRefreshRate ( ) ) ; updateTimer ( ) ; }

Target:
public void setCurrentRefreshRate ( int newRefreshRate ) { getModelTimer ( ) . setRefreshRate ( newRefreshRate ) ; saveRefreshRate ( newRefreshRate ) ; }
Source:
protected void setUpTestServlet ( ) throws java.security.NoSuchAlgorithmException { super . setUpTestServlet ( ) ; org.mockito.Mockito.doReturn ( new java.util.ArrayList < org.ovirt.engine.ui.frontend.server.gwt.plugin.PluginData > ( ) ) . when ( testServlet ) . getPluginData ( ) ; testServlet.reportBaseUrl = "" ; testServlet.reportRedirectUrl = "" ; testServlet.reportRightClickRedirectUrl = "" ; }

Target:
protected void setUpTestServlet ( ) throws java.security.NoSuchAlgorithmException { super . setUpTestServlet ( ) ; org.mockito.Mockito.doReturn ( new java.util.ArrayList < org.ovirt.engine.ui.frontend.server.gwt.plugin.PluginData > ( ) ) . when ( testServlet ) . getPluginData ( ) ; }
Source:
public void canDetachMaintenanceDomain ( ) { setStorageDomainStatus ( StorageDomainStatus.Inactive ) ; storagePoolExists ( ) ; masterDomainIsUp ( ) ; isNotLocalData ( ) ; canDetachDomain ( ) ; org.junit.Assert.assertTrue ( cmd.canDetachDomain ( false , false , false ) ) ; }

Target:
public void canDetachMaintenanceDomain ( ) { setStorageDomainStatus ( StorageDomainStatus.Inactive ) ; storagePoolExists ( ) ; masterDomainIsUp ( ) ; canDetachDomain ( ) ; org.junit.Assert.assertTrue ( cmd.canDetachDomain ( false , false ) ) ; }
Source:
public void remove ( ) { if ( ( getWindow ( ) ) != null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.profiles.RemoveDiskProfileModel model = new org.ovirt.engine.ui.uicommonweb.models.profiles.RemoveDiskProfileModel ( this , getSelectedItems ( ) , false ) ; setWindow ( model ) ; }

Target:
public void remove ( ) { if ( ( getWindow ( ) ) != null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.profiles.RemoveDiskProfileModel model = new org.ovirt.engine.ui.uicommonweb.models.profiles.RemoveDiskProfileModel ( this , getSelectedItems ( ) ) ; setWindow ( model ) ; }
Source:
protected org.ovirt.engine.api.model.Vm getFromExportDomain ( ) { org.ovirt.engine.api.restapi.resource.VM entity = getEntity ( ) ; return addLinks ( populate ( map ( entity , null ) , entity ) , null , new java.lang.String [ 0 ] ) ; }

Target:
private org.ovirt.engine.api.model.Vm getFromExportDomain ( ) { org.ovirt.engine.api.restapi.resource.VM entity = getEntity ( ) ; return addLinks ( populate ( map ( entity , null ) , entity ) , null , new java.lang.String [ 0 ] ) ; }
Source:
public static void getGlusterVolumeOptionInfoList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetGlusterVolumeOptionsInfo , new org.ovirt.engine.core.common.queries.gluster.GlusterParameters ( clusterId ) , aQuery ) ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }
Source:
public void discardIsTrueWhenDiscardAfterDeleteIsTrueAndDomainSupportsDiscard ( ) { assertDiscardValue ( true , true , true ) ; }

Target:
public void discardIsTrueWhenDiscardAfterDeleteIsTrueAndDomainSupportsDiscard ( ) { assertDiscardValue ( true , true , true , false ) ; }
Source:
private boolean isBlankTemplate ( java.lang.Object selectedItem ) { return ( ( selectedItem != null ) && ( selectedItem instanceof org.ovirt.engine.core.common.businessentities.VmTemplate ) ) && ( org.ovirt.engine.core.compat.Guid.OpEquality ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( selectedItem ) ) . getId ( ) , NGuid.Empty ) ) ; }

Target:
private boolean isBlankTemplate ( java.lang.Object selectedItem ) { return ( ( selectedItem != null ) && ( selectedItem instanceof org.ovirt.engine.core.common.businessentities.VmTemplate ) ) && ( NGuid.Empty.equals ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( selectedItem ) ) . getId ( ) ) ) ; }
Source:
private boolean isGlusterSupportEnabled ( ) { return ( org.ovirt.engine.core.bll.AddVdsCommand.getVdsGroup ( ) . supportsGlusterService ( ) ) && ( org.ovirt.engine.core.bll.AddVdsCommand.getParameters ( ) . isGlusterPeerProbeNeeded ( ) ) ; }

Target:
private boolean isGlusterSupportEnabled ( ) { return ( ( ( org.ovirt.engine.core.bll.AddVdsCommand.getVdsGroup ( ) ) != null ) && ( org.ovirt.engine.core.bll.AddVdsCommand.getVdsGroup ( ) . supportsGlusterService ( ) ) ) && ( org.ovirt.engine.core.bll.AddVdsCommand.getParameters ( ) . isGlusterPeerProbeNeeded ( ) ) ; }
Source:
public static boolean isLinuxOsType ( int osId ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.linuxOsIds.contains ( osId ) ; }

Target:
public static boolean isLinuxOsType ( java.lang.Integer osId ) { if ( osId == null ) { return false ; } return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.linuxOsIds.contains ( osId ) ; }
Source:
private void setNonOperational ( org.ovirt.engine.core.common.businessentities.VDS host , org.ovirt.engine.core.common.businessentities.NonOperationalReason reason , java.util.Map < java.lang.String , java.lang.String > customLogValues ) { resourceManager.getEventListener ( ) . vdsNonOperational ( host.getId ( ) , reason , true , Guid.Empty , customLogValues ) ; }

Target:
private void setNonOperational ( org.ovirt.engine.core.common.businessentities.VDS host , org.ovirt.engine.core.common.businessentities.NonOperationalReason reason , java.util.Map < java.lang.String , java.lang.String > customLogValues ) { resourceManager.get ( ) . getEventListener ( ) . vdsNonOperational ( host.getId ( ) , reason , true , Guid.Empty , customLogValues ) ; }
Source:
public java.lang.Void runInTransaction ( ) { addInterfaceToDb ( getParameters ( ) . getInterface ( ) ) ; addInterfaceDeviceToDb ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { addInterfaceToDb ( getInterface ( ) ) ; addInterfaceDeviceToDb ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomain electNewMaster ( boolean duringReconstruct ) { return electNewMaster ( duringReconstruct , false , false ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain electNewMaster ( ) { return electNewMaster ( false , false , false ) ; }
Source:
protected boolean canPerformRollbackUsingCommand ( org.ovirt.engine.core.common.action.VdcActionType commandType , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { return ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskImageDAO ( ) . get ( org.ovirt.engine.core.bll.MoveOrCopyImageGroupCommand.getParameters ( ) . getDestinationImageId ( ) ) ) != null ; }

Target:
protected boolean canPerformRollbackUsingCommand ( org.ovirt.engine.core.common.action.VdcActionType commandType , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { return ( org.ovirt.engine.core.bll.MoveOrCopyImageGroupCommand.getDiskImageDAO ( ) . get ( org.ovirt.engine.core.bll.MoveOrCopyImageGroupCommand.getParameters ( ) . getDestinationImageId ( ) ) ) != null ; }
Source:
public void oSType_SelectedItemChanged ( ) { int osType = getModel ( ) . getOSType ( ) . getSelectedItem ( ) ; updateVirtioScsiEnabled ( vm.getId ( ) , osType ) ; }

Target:
public void oSType_SelectedItemChanged ( ) { java.lang.Integer osType = getModel ( ) . getOSType ( ) . getSelectedItem ( ) ; if ( osType != null ) { updateVirtioScsiEnabled ( vm.getId ( ) , osType ) ; } }
Source:
public void testMapOriginTypeOvirt ( ) { java.lang.String s = org.ovirt.engine.api.restapi.types.VmBaseMapper.map ( OriginType.OVIRT , null ) ; org.junit.Assert.assertEquals ( s , "ovirt" ) ; org.ovirt.engine.core.common.businessentities.OriginType s2 = org.ovirt.engine.api.restapi.types.VmMapper.map ( s , OriginType.OVIRT ) ; org.junit.Assert.assertEquals ( s2 , OriginType.OVIRT ) ; }

Target:
public void testMapOriginTypeOvirt ( ) { java.lang.String s = org.ovirt.engine.api.restapi.types.VmBaseMapper.map ( OriginType.OVIRT , null ) ; org.junit.Assert.assertEquals ( "ovirt" , s ) ; org.ovirt.engine.core.common.businessentities.OriginType s2 = org.ovirt.engine.api.restapi.types.VmMapper.map ( s , OriginType.OVIRT ) ; org.junit.Assert.assertEquals ( OriginType.OVIRT , s2 ) ; }
Source:
protected boolean isVdsGroupUnique ( java.lang.String vdsGroupName ) { org.ovirt.engine.core.dao.VdsGroupDAO vdsGroupDao = org.ovirt.engine.core.bll.VdsGroupOperationCommandBase.getVdsGroupDAO ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > vdsGroups = vdsGroupDao.getByName ( vdsGroupName , false ) ; return ( vdsGroups == null ) || ( vdsGroups.isEmpty ( ) ) ; }

Target:
protected boolean isVdsGroupUnique ( java.lang.String vdsGroupName ) { org.ovirt.engine.core.dao.VdsGroupDAO vdsGroupDao = org.ovirt.engine.core.bll.VdsGroupOperationCommandBase.getVdsGroupDAO ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > vdsGroups = vdsGroupDao.getByName ( vdsGroupName , true ) ; return ( vdsGroups == null ) || ( vdsGroups.isEmpty ( ) ) ; }
Source:
private static void assertCorrectGetManagedInterfaceForVdsResult ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.getIsManagement ( ) ) ; }

Target:
private static void assertCorrectGetManagedInterfaceForVdsResult ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.getIsManagement ( ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { PostPrepareSanStorageForEdit ( sanStorageModel ) ; }

Target:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { PostPrepareSanStorageForEdit ( model , true ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getNetworkDAO ( ) . remove ( org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getParameters ( ) . getNetwork ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getNetworkDAO ( ) . remove ( org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getNetwork ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.setSucceeded ( true ) ; }
Source:
public boolean Validate ( ) { return true ; }

Target:
public boolean validate ( ) { return true ; }
Source:
public static synchronized boolean isExportDomain ( org.ovirt.engine.api.model.StorageDomain storageDomain ) { org.ovirt.engine.api.model.StorageDomainType type = org.ovirt.engine.api.model.StorageDomainType.fromValue ( storageDomain.getType ( ) ) ; return ( type != null ) && ( type == ( org.ovirt.engine.api.model.StorageDomainType.EXPORT ) ) ? true : false ; }

Target:
public static synchronized boolean isExportDomain ( org.ovirt.engine.api.model.StorageDomain storageDomain ) { org.ovirt.engine.api.model.StorageDomainType type = storageDomain.getType ( ) ; return ( type != null ) && ( type == ( org.ovirt.engine.api.model.StorageDomainType.EXPORT ) ) ? true : false ; }
Source:
protected java.lang.String extractNameFromEntity ( org.ovirt.engine.core.common.businessentities.VM entity ) { return entity.getVmName ( ) ; }

Target:
protected java.lang.String extractNameFromEntity ( org.ovirt.engine.core.common.businessentities.VM entity ) { return entity.getName ( ) ; }
Source:
public void checkRemoveNotExistingConnection ( ) { parameters.setStorageServerConnection ( NFSConnection ) ; org.mockito.Mockito.when ( storageServerConnectionDao.get ( NFSConnection.getId ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST ) ; }

Target:
public void checkRemoveNotExistingConnection ( ) { parameters.setStorageServerConnection ( NFSConnection ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST ) ; }
Source:
protected void performLogin ( T loginModel ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser loggedUser = loginModel.getLoggedUser ( ) ; beforeLogin ( ) ; frontend.initLoggedInUser ( loggedUser ) ; user.login ( loggedUser ) ; afterLogin ( ) ; performPlaceTransition ( ) ; }

Target:
protected void performLogin ( T loginModel ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser loggedUser = loginModel.getLoggedUser ( ) ; beforeLogin ( ) ; frontend.initLoggedInUser ( loggedUser ) ; user.login ( ) ; afterLogin ( ) ; performPlaceTransition ( ) ; }
Source:
private void initDcNetworkParams ( ) { for ( org.ovirt.engine.core.common.businessentities.network.Network network : allNetworks ) { netTodcParams.put ( network.getname ( ) , new org.ovirt.engine.ui.uicommonweb.models.hosts.DcNetworkParams ( network ) ) ; } }

Target:
private void initDcNetworkParams ( ) { for ( org.ovirt.engine.core.common.businessentities.network.Network network : allNetworks ) { netTodcParams.put ( network.getName ( ) , new org.ovirt.engine.ui.uicommonweb.models.hosts.DcNetworkParams ( network ) ) ; } }
Source:
public void validateFailsOnNonExistingEvent ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand ( new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( 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 = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand ( new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_1 ) , null ) ) ; prepareMocks ( command ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.AUDIT_LOG_CANNOT_REMOVE_AUDIT_LOG_NOT_EXIST ) ; }
Source:
public void checkRemoveNotExistingConnection ( ) { parameters.setStorageServerConnection ( NFSConnection ) ; org.mockito.Mockito.when ( storageServerConnectionDao.get ( NFSConnection.getid ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST ) ; }

Target:
public void checkRemoveNotExistingConnection ( ) { parameters.setStorageServerConnection ( NFSConnection ) ; org.mockito.Mockito.when ( storageServerConnectionDao.get ( NFSConnection.getId ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , networkName , true , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , networkName , true , null , null ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.api.model.CpuProfile cpuProfile = getCpuProfile ( id ) ; return performAction ( VdcActionType.RemoveCpuProfile , new org.ovirt.engine.core.common.action.CpuProfileParameters ( cpuProfile , cpuProfile.getId ( ) ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.api.model.CpuProfile cpuProfile = getCpuProfile ( id ) ; return performAction ( VdcActionType.RemoveCpuProfile , new org.ovirt.engine.core.common.action.CpuProfileParameters ( cpuProfile ) ) ; }
Source:
public void setEntity ( org.ovirt.engine.core.common.businessentities.storage_pool value ) { super . setEntity ( value ) ; }

Target:
public void setEntity ( org.ovirt.engine.core.common.businessentities.StoragePool value ) { super . setEntity ( value ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.frontend.FrontendFailureEventArgs failureArgs = ( ( org.ovirt.engine.ui.frontend.FrontendFailureEventArgs ) ( args ) ) ; errorPopupManager.show ( messages.uiCommonRunActionFailed ( org.ovirt.engine.ui.common.uicommon.ErrorMessageFormatter.formatMessages ( failureArgs.getMessages ( ) ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.frontend.FrontendFailureEventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.frontend.FrontendFailureEventArgs args ) { errorPopupManager.show ( messages.uiCommonRunActionFailed ( org.ovirt.engine.ui.common.uicommon.ErrorMessageFormatter.formatMessages ( args.getMessages ( ) ) ) ) ; }
Source:
private void assertCorrectGetVmDataResult ( org.ovirt.engine.core.common.businessentities.VM result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( result.getVmPoolId ( ) , org.ovirt.engine.core.dao.VmPoolDaoTest.EXISTING_VM_POOL_ID ) ; }

Target:
private void assertCorrectGetVmDataResult ( org.ovirt.engine.core.common.businessentities.VM result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmPoolDaoTest.EXISTING_VM_POOL_ID , result.getVmPoolId ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > ( ) ; } return source ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return java.lang.Integer.valueOf ( 0 ) ; } return source ; }
Source:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotSchedule getSchedule ( ) { return this . schedule ; }

Target:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotSchedule getSchedule ( ) { return schedule ; }
Source:
public java.lang.String getComment ( ) { if ( ( comment ) == null ) { comment = "" ; } return comment ; }

Target:
public org.ovirt.engine.core.compat.Guid getId ( ) { return id ; }
Source:
private boolean networkExists ( ) { return ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToVdsGroupCommand.getNetworkClusterDAO ( ) . get ( getNetworkCluster ( ) . getId ( ) ) ) != null ; }

Target:
private boolean networkExists ( ) { return ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToVdsGroupCommand.getNetworkClusterDAO ( ) . get ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToVdsGroupCommand.getNetworkCluster ( ) . getId ( ) ) ) != null ; }
Source:
public void testValidateUniqueId ( ) { validator = mockHostForUniqueId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) . toString ( ) ) ; org.junit.Assert.assertThat ( validator.validateUniqueId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateUniqueId ( ) { mockHostForUniqueId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) . toString ( ) ) ; org.junit.Assert.assertThat ( validator.validateUniqueId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpVersionExpectations ( ) ; setUpGetEntityExpectations ( 1 ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 0 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpVersionExpectations ( ) ; setUpGetEntityExpectations ( 1 ) ; verifyModel ( resource.get ( ) , 0 ) ; }
Source:
public boolean Validate ( ) { getRole ( ) . validateSelectedItem ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) } ) ; return getRole ( ) . getIsValid ( ) ; }

Target:
public boolean validate ( ) { getRole ( ) . validateSelectedItem ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) } ) ; return getRole ( ) . getIsValid ( ) ; }
Source:
public void setstatus ( org.ovirt.engine.core.common.businessentities.VMStatus value ) { if ( ( this . mVmDynamic.getstatus ( ) ) != value ) { this . mVmDynamic.setstatus ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "status" ) ) ; } }

Target:
public void setstatus ( org.ovirt.engine.core.common.businessentities.VMStatus value ) { if ( ( this . mVmDynamic.getstatus ( ) ) != value ) { this . mVmDynamic.setstatus ( value ) ; } }
Source:
public void endSuccessfully ( ) { endRemoveSnapshotSingleDisk ( ) ; enclosingCommand.taskEndSuccessfully ( ) ; if ( isLastTaskHandler ( ) ) { updateImagesStatus ( ImageStatus.OK ) ; } enclosingCommand.getReturnValue ( ) . setSucceeded ( true ) ; }

Target:
public void endSuccessfully ( ) { endRemoveSnapshotSingleDisk ( true ) ; enclosingCommand.taskEndSuccessfully ( ) ; if ( isLastTaskHandler ( ) ) { updateImagesStatus ( ImageStatus.OK ) ; } enclosingCommand.getReturnValue ( ) . setSucceeded ( true ) ; }
Source:
private java.lang.String addStorageServerConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections cnx , org.ovirt.engine.core.compat.Guid hostId ) { return performAction ( VdcActionType.AddStorageServerConnection , new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( cnx , hostId ) , java.lang.String.class ) ; }

Target:
private java.lang.String addStorageServerConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections cnx , org.ovirt.engine.core.compat.Guid hostId ) { return performAction ( VdcActionType.AddStorageServerConnection , new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( cnx , hostId , false ) , java.lang.String.class ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.NetworkView object ) { return object.getNetwork ( ) . getName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.NetworkView object ) { return object.getName ( ) ; }
Source:
private java.lang.String getkeyForCheck ( ) { return org.ovirt.engine.core.compat.StringHelper.EqOp ( getTimeoutObjectId ( ) , "" ) ? getKey ( ) : java.lang.String.format ( "%1$s_%2$s" , getKey ( ) , getTimeoutObjectId ( ) ) ; }

Target:
private java.lang.String getkeyForCheck ( ) { return "" . equals ( getTimeoutObjectId ( ) ) ? getKey ( ) : java.lang.String.format ( "%1$s_%2$s" , getKey ( ) , getTimeoutObjectId ( ) ) ; }
Source:
private boolean CanFindAnyVds ( java.util.ArrayList < java.lang.String > messages , boolean isMigrate ) { return CanFindVdsToRun ( messages , isMigrate , org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDAO ( ) . getAllOfTypes ( new org.ovirt.engine.core.common.businessentities.VDSType [ ] { org.ovirt.engine.core.common.businessentities.VDSType.VDS , org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode } ) ) ; }

Target:
private boolean CanFindAnyVds ( java.util.List < java.lang.String > messages , boolean isMigrate ) { return CanFindVdsToRun ( messages , isMigrate , org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDAO ( ) . getAllOfTypes ( new org.ovirt.engine.core.common.businessentities.VDSType [ ] { org.ovirt.engine.core.common.businessentities.VDSType.VDS , org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode } ) ) ; }
Source:
protected boolean uniqueInterfaceName ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > interfaces ) { return vmHandler.isNotDuplicateInterfaceName ( interfaces , getInterfaceName ( ) , org.ovirt.engine.core.bll.network.vm.AbstractVmInterfaceCommand.getReturnValue ( ) . getValidationMessages ( ) ) ; }

Target:
protected boolean uniqueInterfaceName ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > interfaces ) { return validate ( vmHandler.isNotDuplicateInterfaceName ( interfaces , getInterfaceName ( ) ) ) ; }
Source:
protected void setActionMessageParameters ( ) { switch ( getParameters ( ) . getAction ( ) ) { case START : addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__START ) ; break ; } addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_BRICK ) ; }

Target:
protected void setActionMessageParameters ( ) { switch ( getParameters ( ) . getAction ( ) ) { case START : addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__START ) ; break ; default : break ; } addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_BRICK ) ; }