auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.api.resource.WatchdogsResource getWatchdogsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateWatchdogsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetWatchdog , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ) ; }

Target:
public org.ovirt.engine.api.resource.TemplateWatchdogsResource getWatchdogsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateWatchdogsResource ( guid ) ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result2 ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel2 = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result2.getState ( ) ) ) ; localModel2.StopProgress ( ) ; Cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result2 ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel2 = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result2.getState ( ) ) ) ; localModel2.StopProgress ( ) ; Cancel ( ) ; }
Source:
public void setvds_group_compatibility_version ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( getvds_group_compatibility_version ( ) , value ) ) { this . vds_group_compatibility_versionField = value ; } }

Target:
public java.lang.String getVmtTimeZone ( ) { return vmtTimeZone ; }
Source:
public void setChangeProhibitionReason ( java.lang.String value ) { privateChangeProhibitionReason = value ; }

Target:
public void setChangeProhibitionReason ( java.lang.String value ) { if ( ( privateChangeProhibitionReason ) != value ) { privateChangeProhibitionReason = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ChangeProhibitionReason" ) ) ; } }
Source:
protected boolean isSoundDeviceEnabled ( ) { java.lang.Boolean soundDeviceEnabled = org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . isSoundDeviceEnabled ( ) ; return soundDeviceEnabled != null ? soundDeviceEnabled : org.ovirt.engine.core.bll.utils.VmDeviceUtils.isSoundDeviceEnabled ( getVmId ( ) ) ; }

Target:
protected boolean isSoundDeviceEnabled ( ) { java.lang.Boolean soundDeviceEnabled = org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . isSoundDeviceEnabled ( ) ; return soundDeviceEnabled != null ? soundDeviceEnabled : org.ovirt.engine.core.bll.utils.VmDeviceUtils.hasSoundDevice ( getVmId ( ) ) ; }
Source:
protected abstract boolean shouldRemoveMemorySnapshotVolumes ( java.lang.String memoryVolume ) ;

Target:
protected abstract boolean isMemoryStateRemovable ( java.lang.String memoryVolume ) ;
Source:
protected org.ovirt.engine.core.common.action.VdcActionType getVdcAction ( ) { return org.ovirt.engine.core.common.action.VdcActionType.AddHostNetworkQos ; }

Target:
protected org.ovirt.engine.core.common.action.ActionType getVdcAction ( ) { return org.ovirt.engine.core.common.action.ActionType.AddHostNetworkQos ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml progressBar ( int progress , java.lang.String text , java.lang.String color ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml progressBar ( int progress , java.lang.String text , java.lang.String color , java.lang.String style ) ;
Source:
private void addNoUpServerMessage ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { addCanDoActionMessage ( java.lang.String.format ( "$clusterName %1$s" , cluster.getName ( ) ) ) ; addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NO_UP_SERVER_FOUND ) ; }

Target:
private void addNoUpServerMessage ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { addCanDoActionMessageVariable ( "clusterName" , cluster.getName ( ) ) ; addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NO_UP_SERVER_FOUND ) ; }
Source:
public void Search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( ( "Vms: host.name=" + ( getEntity ( ) . getName ( ) ) ) ) ; super . Search ( ) ; } }

Target:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; Search ( ) ; }
Source:
protected boolean doesStorageDomainHaveSpaceForRequest ( long size ) { return validate ( new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getStorageDomain ( ) ) . isDomainHasSpaceForRequest ( size ) ) ; }

Target:
protected void endSuccessfully ( ) { endCommandActions ( ) ; }
Source:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( Scope.Execution ) ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { org.ovirt.engine.core.common.action.LockProperties.Scope scope = ( org.ovirt.engine.core.bll.storage.DeactivateStorageDomainCommand.getParameters ( ) . isSkipLock ( ) ) ? org.ovirt.engine.core.common.action.LockProperties.Scope.None : org.ovirt.engine.core.common.action.LockProperties.Scope.Execution ; return lockProperties.withScope ( scope ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getAdUserId ( ) { return getPoolUserSimpleParameters ( ) . getUserId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getAdUserId ( ) { return org.ovirt.engine.core.bll.VmPoolSimpleUserCommandBase.getParameters ( ) . getUserId ( ) ; }
Source:
private void verifyHostExistenceToHandle404StatusCode ( ) { org.ovirt.engine.core.compat.Guid hostId = getHostId ( ) ; getEntity ( org.ovirt.engine.core.common.businessentities.VDS.class , VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( hostId ) , hostId.toString ( ) , true ) ; }

Target:
private void verifyHostExistenceToHandle404StatusCode ( ) { org.ovirt.engine.core.compat.Guid hostId = getHostId ( ) ; getEntity ( org.ovirt.engine.core.common.businessentities.VDS.class , QueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( hostId ) , hostId.toString ( ) , true ) ; }
Source:
public void getClusterDefault ( ) { final org.ovirt.engine.core.common.businessentities.Cluster g = b.getCluster ( ) ; org.junit.Assert.assertNull ( g ) ; }

Target:
public void getClusterDefault ( ) { final org.ovirt.engine.core.common.businessentities.Cluster g = b.getCluster ( ) ; org.junit.jupiter.api.Assertions.assertNull ( g ) ; }
Source:
protected void handleEscapeKey ( ) { beforeCommandExecuted ( model.getCancelCommand ( ) ) ; modelCommandInvoker.invokeCancelCommand ( ) ; }

Target:
protected void handleEscapeKey ( ) { org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget.getView ( ) . flush ( ) ; beforeCommandExecuted ( model.getCancelCommand ( ) ) ; modelCommandInvoker.invokeCancelCommand ( ) ; }
Source:
public void setMacAddress ( java.lang.String macAddress ) { this . macAddress = macAddress ; }

Target:
public void setMacAddress ( java.lang.String macAddress ) { this . macAddress = ( macAddress == null ) ? null : macAddress.toLowerCase ( ) ; }
Source:
protected void expectRemoveDynamicFromDb ( ) { org.ovirt.engine.core.dao.StorageDomainDynamicDAO dao = org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.StorageDomainDynamicDAO.class ) ; org.mockito.Mockito.when ( db.getStorageDomainDynamicDAO ( ) ) . thenReturn ( dao ) ; }

Target:
protected void expectRemoveDynamicFromDb ( ) { org.ovirt.engine.core.dao.StorageDomainDynamicDAO dao = org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.StorageDomainDynamicDAO.class ) ; org.mockito.Mockito.when ( db.getStorageDomainDynamicDao ( ) ) . thenReturn ( dao ) ; }
Source:
public void filterAllDomains ( ) { verifyDomainForMemory ( java.util.Arrays.asList ( invalidStorageDomain1 , invalidStorageDomain2 , invalidStorageDomain3 ) , null ) ; }

Target:
public void filterAllDomainsExceptForTheThirdOne ( ) { filterAllStorageDomainsExceptOne ( java.util.Arrays.asList ( invalidStorageDomain1 , invalidStorageDomain2 , validStorageDomain1 ) , validStorageDomain1 ) ; }
Source:
private java.lang.String renderGigabyteSize ( long sizeInBytes ) { long sizeInGB = org.ovirt.engine.ui.uicommonweb.models.SizeConverter.convert ( sizeInBytes , SizeConverter.SizeUnit.BYTES , SizeUnit.GB ) . longValue ( ) ; return sizeInGB >= 1 ? sizeInGB + " GB" : "< 1 GB" ; }

Target:
private java.lang.String renderGigabyteSize ( long size ) { long sizeInGB = ( ( unit ) == ( org.ovirt.engine.ui.uicommonweb.models.SizeConverter.SizeUnit.GB ) ) ? size : org.ovirt.engine.ui.uicommonweb.models.SizeConverter.convert ( size , unit , SizeUnit.GB ) . longValue ( ) ; return sizeInGB >= 1 ? sizeInGB + " GB" : "< 1 GB" ; }
Source:
private void storageDomainIsInactive ( ) { org.ovirt.engine.core.common.businessentities.storage_domains domain = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; domain.setstatus ( StorageDomainStatus.InActive ) ; org.mockito.Mockito.when ( cmd.getStorageDomain ( ) ) . thenReturn ( domain ) ; }

Target:
public void checkStorageDomainNotEqualWithNonActiveStatus ( ) { setStorageDomainStatus ( StorageDomainStatus.Maintenance ) ; org.junit.Assert.assertTrue ( cmd.CheckStorageDomainStatusNotEqual ( StorageDomainStatus.Active ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.ImageStatus getimageStatus ( ) { return getImage ( ) . getStatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.ImageStatus getImageStatus ( ) { return getImage ( ) . getStatus ( ) ; }
Source:
public boolean equals ( java.lang.Object other ) { if ( ! ( other instanceof org.ovirt.engine.core.compat.Guid ) ) { return false ; } org.ovirt.engine.core.compat.Guid otherGuid = ( ( org.ovirt.engine.core.compat.Guid ) ( other ) ) ; return uuid.equals ( otherGuid.getUuid ( ) ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hashCode ( uuid ) ; }
Source:
public javax.ws.rs.core.Response export ( org.ovirt.engine.api.model.Action action ) { validateParameters ( action , "storageDomain.id|name" ) ; return doAction ( VdcActionType.ExportRepoImage , new org.ovirt.engine.core.common.action.ExportRepoImageParameters ( guid , getStorageDomainId ( action ) ) , action ) ; }

Target:
public javax.ws.rs.core.Response export ( org.ovirt.engine.api.model.Action action ) { validateParameters ( action , "storageDomain.id|name" ) ; return doAction ( ActionType.ExportRepoImage , new org.ovirt.engine.core.common.action.ExportRepoImageParameters ( guid , getStorageDomainId ( action ) ) , action ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { setChecked ( event.getValue ( ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { java.lang.String propName = ( ( org.ovirt.engine.core.compat.PropertyChangedEventArgs ) ( args ) ) . PropertyName ; if ( "IsSelected" . equals ( propName ) ) { setChecked ( model.getIsSelected ( ) ) ; } }
Source:
protected void initTableColumns ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { hostsTable.addEntityModelColumn ( new org.ovirt.engine.ui.common.widget.table.column.AbstractEntityModelTextColumn < java.lang.String > ( ) { @ java.lang.Override public java.lang.String getText ( java.lang.String hostAddress ) { return hostAddress ; } } , constants.detachGlusterHostsHostAddress ( ) ) ; }

Target:
protected void initTableColumns ( ) { hostsTable.addEntityModelColumn ( new org.ovirt.engine.ui.common.widget.table.column.AbstractEntityModelTextColumn < java.lang.String > ( ) { @ java.lang.Override public java.lang.String getText ( java.lang.String hostAddress ) { return hostAddress ; } } , org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.DetachGlusterHostsPopupView.constants.detachGlusterHostsHostAddress ( ) ) ; }
Source:
public void setUtcDiff ( java.lang.Integer value ) { this . vmDynamic.setutc_diff ( value ) ; }

Target:
public void setTunnelMigration ( java.lang.Boolean value ) { vmStatic.setTunnelMigration ( value ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn add_image_ticket ( java.lang.String ticketId , java.lang.String [ ] ops , long timeout , long size , java.lang.String url ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn add_image_ticket ( java.lang.String ticketId , java.lang.String [ ] ops , long timeout , long size , java.lang.String url , java.lang.String filename ) ;
Source:
public void Cancel ( ) { setConfirmWindow ( null ) ; setWindow ( null ) ; }

Target:
public void cancel ( ) { setConfirmWindow ( null ) ; setWindow ( null ) ; }
Source:
public void testNullAndNotIpv6 ( ) { org.junit.Assert.assertFalse ( new org.ovirt.engine.core.utils.network.predicate.IpAddressPredicate ( null ) . test ( org.ovirt.engine.core.utils.network.predicate.IpAddressPredicateTest.SOME_NON_IPV6_STRING ) ) ; }

Target:
public void testNullAndNotIpv6 ( ) { org.junit.jupiter.api.Assertions.assertFalse ( new org.ovirt.engine.core.utils.network.predicate.IpAddressPredicate ( null ) . test ( org.ovirt.engine.core.utils.network.predicate.IpAddressPredicateTest.SOME_NON_IPV6_STRING ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( java.lang.String taskKey ) { return org.ovirt.engine.core.compat.Guid.Empty ; }

Target:
public org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( java.lang.String taskKey ) { return super . persistAsyncTaskPlaceHolder ( getActionType ( ) , taskKey ) ; }
Source:
public void vmNotDuringSnapshotReturnsValidForNoSnapshotInProgress ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid vmId = new org.ovirt.engine.core.compat.Guid ( ) ; org.mockito.Mockito.when ( snapshotDao.exists ( vmId , SnapshotStatus.LOCKED ) ) . thenReturn ( false ) ; org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateValidResult ( validator.vmNotDuringSnapshot ( vmId ) ) ; }

Target:
public void vmNotDuringSnapshotReturnsInvalidResultWhenInSnapshot ( ) throws java.lang.Exception { org.mockito.Mockito.when ( snapshotDao.exists ( vmId , SnapshotStatus.LOCKED ) ) . thenReturn ( true ) ; org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateInvalidResult ( validator.vmNotDuringSnapshot ( vmId ) , VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_DURING_SNAPSHOT ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object object , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateErrorAndWarning ( model ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.VM > externalVmModel ) { return toCellString ( externalVmModel ) ; }
Source:
protected java.util.ArrayList < org.ovirt.engine.core.compat.Guid > getTaskIdList ( ) { return ( getParameters ( ) . getParentCommand ( ) ) != ( org.ovirt.engine.core.common.action.VdcActionType.Unknown ) ? getReturnValue ( ) . getInternalTaskIdList ( ) : getReturnValue ( ) . getTaskIdList ( ) ; }

Target:
private void addToReturnValueTaskPlaceHolderIdList ( org.ovirt.engine.core.compat.Guid taskId ) { if ( ! ( getReturnValue ( ) . getTaskPlaceHolderIdList ( ) . contains ( taskId ) ) ) { getReturnValue ( ) . getTaskPlaceHolderIdList ( ) . add ( taskId ) ; } }
Source:
public void macAddressIsNullForVmNicUpdate ( ) throws java.lang.Exception { assertNicValidation ( createNic ( null , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_NAME , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_TYPE ) , org.ovirt.engine.core.common.validation.group.UpdateVmNic.class , true , VmNetworkInterface.VALIDATION_MESSAGE_MAC_ADDRESS_NOT_NULL ) ; }

Target:
public void macAddressIsNullForVmNicUpdate ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.assertNicValidation ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.createNic ( null , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_NAME , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_TYPE ) , org.ovirt.engine.core.common.validation.group.UpdateVmNic.class , true , VmNetworkInterface.VALIDATION_MESSAGE_MAC_ADDRESS_NOT_NULL ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( org.ovirt.engine.core.common.businessentities.StorageDomain ) ( source ) ) : null ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageServerConnections convert ( java.lang.Object source ) { return source != null ? ( ( org.ovirt.engine.core.common.businessentities.StorageServerConnections ) ( source ) ) : null ; }
Source:
public void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerHtml , java.lang.String width ) { addColumnWithHtmlHeader ( column , headerHtml ) ; setColumnWidth ( column , width ) ; }

Target:
public void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.safehtml.shared.SafeHtml headerHtml , java.lang.String width ) { com.google.gwt.user.cellview.client.Header < ? > header = new org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader ( headerHtml ) ; addColumn ( column , header ) ; setColumnWidth ( column , width ) ; }
Source:
public java.lang.Long getGuestMemoryFree ( ) { return vmDynamic.getGuestMemoryFree ( ) ; }

Target:
public java.lang.Long getGuestMemoryFree ( ) { return vmStatistics.getGuestMemoryFree ( ) ; }
Source:
public void testRemoveNetworkAndReassignRolesMigration ( ) { networkCluster.setMigration ( true ) ; testRemoveNetworkAndReassignRoles ( ) ; org.mockito.Mockito.verify ( networkClusterDao ) . update ( org.mockito.ArgumentMatchers.same ( managementNetworkCluster ) ) ; org.junit.Assert.assertTrue ( managementNetworkCluster.isMigration ( ) ) ; }

Target:
public void testRemoveNetworkAndReassignRolesMigration ( ) { networkCluster.setMigration ( true ) ; testRemoveNetworkAndReassignRoles ( ) ; org.mockito.Mockito.verify ( networkClusterDao ) . update ( org.mockito.Matchers.same ( managementNetworkCluster ) ) ; org.junit.Assert.assertTrue ( managementNetworkCluster.isMigration ( ) ) ; }
Source:
private void setupForLun ( ) { lunDisk = org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createLunDisk ( ) ; lunValidator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( lunDisk ) ) ; org.mockito.Mockito.doReturn ( vmDao ) . when ( lunValidator ) . getVmDao ( ) ; }

Target:
private void setupForLun ( ) { lunDisk = org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createLunDisk ( ) ; lunValidator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( lunDisk , vmDeviceUtils ) ) ; org.mockito.Mockito.doReturn ( vmDao ) . when ( lunValidator ) . getVmDao ( ) ; }
Source:
protected void ExecuteQuery ( ) { org.ovirt.engine.core.common.businessentities.LdapGroup group = org.ovirt.engine.core.bll.adbroker.InternalBrokerUtils.getGroupByGroupGuid ( getGroupId ( ) ) ; setReturnValue ( group ) ; if ( group != null ) { setSucceeded ( true ) ; } else { setSucceeded ( false ) ; } }

Target:
protected void executeQuery ( ) { org.ovirt.engine.core.common.businessentities.LdapGroup group = org.ovirt.engine.core.bll.adbroker.InternalBrokerUtils.getGroupByGroupGuid ( getGroupId ( ) ) ; setReturnValue ( group ) ; if ( group != null ) { setSucceeded ( true ) ; } else { setSucceeded ( false ) ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = getDbFacade ( ) . getNetworkDao ( ) . get ( attachment.getNetworkId ( ) ) ; } return network ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = networkDao.get ( attachment.getNetworkId ( ) ) ; } return network ; }
Source:
public void setWANColorDepth ( org.ovirt.engine.ui.uicommonweb.models.vms.WanColorDepth colorDepth ) { this . wanColorDepth = colorDepth ; getWANColorDepthChangedEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }

Target:
public void setWANColorDepth ( org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth colorDepth ) { this . consoleOptions.setWanColorDepth ( colorDepth ) ; getWANColorDepthChangedEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }
Source:
public void morevalid ( ) { org.junit.Assert.assertEquals ( helper.validate ( null , "linux:3.0;windows:2.5" ) . isOk ( ) , true ) ; }

Target:
public void morevalid ( ) { org.junit.Assert.assertTrue ( helper.validate ( null , "linux:3.0;windows:2.5" ) . isOk ( ) ) ; }
Source:
public void testGetAllForStorageDomainWithInvalidDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStorageDomain ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForStorageDomainWithInvalidDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStorageDomain ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap getStoragePoolIsoMap ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId mapId = new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( storageDomain.getId ( ) , org.ovirt.engine.core.bll.storage.UpdateStorageServerConnectionCommand.getParameters ( ) . getStoragePoolId ( ) ) ; return getStoragePoolIsoMapDao ( ) . get ( mapId ) ; }

Target:
protected java.util.Collection < org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap > getStoragePoolIsoMap ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return getStoragePoolIsoMapDao ( ) . getAllForStorage ( storageDomain.getId ( ) ) ; }
Source:
private boolean hasVMs ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > vms = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDAO ( ) . getAllRunningForVds ( org.ovirt.engine.core.bll.ClearNonResponsiveVdsVmsCommand.getVdsId ( ) ) ; return ( vms.size ( ) ) > 0 ; }

Target:
private boolean hasVMs ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > vms = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDao ( ) . getAllRunningForVds ( org.ovirt.engine.core.bll.ClearNonResponsiveVdsVmsCommand.getVdsId ( ) ) ; return ( vms.size ( ) ) > 0 ; }
Source:
protected java.lang.Long getRawValue ( org.ovirt.engine.core.common.businessentities.RepoImage object ) { return object.getSize ( ) ; }

Target:
protected java.lang.Long getRawValue ( org.ovirt.engine.core.common.businessentities.storage.RepoImage object ) { return object.getSize ( ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml iconWithTextAndTitle ( com.google.gwt.safehtml.shared.SafeHtml icon , java.lang.String text , java.lang.String title ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml listItem ( java.lang.String item ) ;
Source:
public void testCanDoActionImageDoesNotExist ( ) { org.mockito.Mockito.when ( getProviderProxy ( ) . getImageAsDiskImage ( getRepoImageId ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }

Target:
public void testCanDoActionImageDoesNotExist ( ) { org.mockito.Mockito.when ( getProviderProxy ( ) . getImageAsDiskImage ( getRepoImageId ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }
Source:
public void checkIncompatibleIpAddressDetailsBootProtocolDhcp ( ) { checkIncompatibleIpAddressDetailsBootProtocol ( NetworkBootProtocol.DHCP ) ; }

Target:
public void checkIncompatibleIpAddressDetailsBootProtocolDhcp ( ) { checkIncompatibleIpAddressDetailsBootProtocol ( Ipv4BootProtocol.DHCP ) ; }
Source:
protected void endActionOnAllImageGroups ( ) { for ( org.ovirt.engine.core.common.action.VdcActionParametersBase p : getParameters ( ) . getImagesParameters ( ) ) { p.setTaskGroupSuccess ( getParameters ( ) . getTaskGroupSuccess ( ) ) ; getBackend ( ) . EndAction ( getImagesActionType ( ) , p ) ; } }

Target:
private java.lang.String getMemoryVolumeForNewActiveSnapshot ( ) { return getParameters ( ) . isImportAsNewEntity ( ) ? org.apache.commons.lang.StringUtils.EMPTY : getMemoryVolumeFromActiveSnapshotInExportDomain ( ) ; }
Source:
protected java.lang.String getLockMessage ( ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_BEING_MIGRATED.name ( ) ) ; builder.append ( java.lang.String.format ( "$VmName %1$s" , org.ovirt.engine.core.bll.MigrateVmCommand.getVmName ( ) ) ) ; return builder.toString ( ) ; }

Target:
protected java.lang.String getLockMessage ( ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( EngineMessage.ACTION_TYPE_FAILED_VM_IS_BEING_MIGRATED.name ( ) ) ; builder.append ( java.lang.String.format ( "$VmName %1$s" , org.ovirt.engine.core.bll.MigrateVmCommand.getVmName ( ) ) ) ; return builder.toString ( ) ; }
Source:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; setUpQueryExpectations ( "" ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
public void testQuery ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( org.ovirt.engine.api.restapi.resource.QUERY ) ; setUpQueryExpectations ( org.ovirt.engine.api.restapi.resource.QUERY ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
public void run ( ) { runCommands ( ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase call ( ) { return runCanDoActionOnly ( currentCanDoActionId , totalSize ) ; }
Source:
public void validateFailureOnCopyingCinderDisk ( ) { initializeCommand ( ImageOperation.Copy , new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }

Target:
public void validateFailureOnMovingVmLunDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; vmDevice.setSnapshotId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }
Source:
public boolean connectStorageToDomainByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { return true ; }

Target:
public boolean connectStorageToDomainByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.action.StorageDomainParametersBase parameters = new org.ovirt.engine.core.common.action.StorageDomainParametersBase ( storageDomain.getId ( ) ) ; parameters.setVdsId ( vdsId ) ; org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.SyncLunsInfoForBlockStorageDomain , parameters ) ; return true ; }
Source:
private java.lang.Object createQueryReturnValueWith ( java.lang.Object value ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue = new org.ovirt.engine.core.common.queries.VdcQueryReturnValue ( ) ; returnValue.setSucceeded ( true ) ; returnValue.setReturnValue ( value ) ; return returnValue ; }

Target:
private java.lang.Object createQueryReturnValueWith ( java.lang.Object value ) { org.ovirt.engine.core.common.queries.QueryReturnValue returnValue = new org.ovirt.engine.core.common.queries.QueryReturnValue ( ) ; returnValue.setSucceeded ( true ) ; returnValue.setReturnValue ( value ) ; return returnValue ; }
Source:
public void setIsSameVdsMessageVisible ( boolean value ) { isSameVdsMessageVisible = ( value & ( gethasSameVdsMessage ( ) ) ) & ( ! ( getIsAutoSelect ( ) ) ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "IsSameVdsMessageVisible" ) ) ; }

Target:
public void setIsSameVdsMessageVisible ( boolean value ) { isSameVdsMessageVisible = ( value & ( gethasSameVdsMessage ( ) ) ) & ( ! ( getIsAutoSelect ( ) ) ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsSameVdsMessageVisible" ) ) ; }
Source:
public void testIsDomainExistAndActiveDomainUp ( ) { domain.setStatus ( StorageDomainStatus.Active ) ; org.junit.Assert.assertThat ( "domain should be up" , validator.isDomainExistAndActive ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testIsDomainExistAndActiveDomainUp ( ) { domain.setStatus ( StorageDomainStatus.Active ) ; org.hamcrest.MatcherAssert.assertThat ( "domain should be up" , validator.isDomainExistAndActive ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void UtcDateStringToLocaDate_nodep ( ) { java.util.Date date = org.ovirt.engine.core.utils.ovf.OvfParser.UtcDateStringToLocaDate ( "1984/06/19 14:25:11" ) ; org.junit.Assert.assertEquals ( 456503111000L , date.getTime ( ) ) ; }

Target:
public void UtcDateStringToLocaDate_nodep ( ) { java.util.Date date = org.ovirt.engine.core.utils.ovf.OvfParser.utcDateStringToLocaDate ( "1984/06/19 14:25:11" ) ; org.junit.Assert.assertEquals ( 456503111000L , date.getTime ( ) ) ; }
Source:
public void setImageIds ( java.util.Set < org.ovirt.engine.core.compat.Guid > imageIds ) { this . imageIds = imageIds ; }

Target:
public void setDisks ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > disks ) { this . disks = disks ; }
Source:
private boolean isConsoleCommandsExecutionAllowed ( ) { org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol protocol = consoleUtils.determineConnectionProtocol ( this ) ; return consoleUtils.canShowConsole ( protocol , this ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel getSelectedHasConsoleModel ( ) { if ( ( ( selectedHasConsoleModels ) == null ) || ( ( selectedHasConsoleModels.size ( ) ) != 1 ) ) { return null ; } return selectedHasConsoleModels.get ( 0 ) ; }
Source:
void setDeviceInfoText ( java.lang.String raidType ) ;

Target:
public void setRaidInfoMessages ( java.lang.String raidType , int stripeSize ) ;
Source:
private void sleepOnReboot ( final org.ovirt.engine.core.common.businessentities.VDSStatus status ) { int sleepTimeInSec = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.ServerRebootTimeout ) ; log.info ( "Waiting seconds, for server to finish reboot process." , sleepTimeInSec ) ; org.ovirt.engine.core.utils.ThreadUtils.sleep ( ( sleepTimeInSec * 1000 ) ) ; setVdsStatus ( status ) ; }

Target:
private void sleepOnReboot ( final org.ovirt.engine.core.common.businessentities.VDSStatus status ) { int sleepTimeInSec = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.ServerRebootTimeout ) ; log.info ( "Waiting seconds, for server to finish reboot process." , sleepTimeInSec ) ; org.ovirt.engine.core.utils.ThreadUtils.sleep ( java.util.concurrent.TimeUnit.SECONDS.toMillis ( sleepTimeInSec ) ) ; setVdsStatus ( status ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > getProfilesByParentEntity ( ) { return getDbFacade ( ) . getCpuProfileDao ( ) . getAllForCluster ( getCluster ( ) . getId ( ) ) ; }

Target:
protected org.ovirt.engine.core.dao.profiles.CpuProfileDao getProfileDao ( ) { return cpuProfileDao ; }
Source:
java.lang.String uiCommonFrontendFailure ( java.lang.String reason ) ;

Target:
java.lang.String errorConnectingToConsole ( java.lang.String name , java.lang.String protocol ) ;
Source:
public java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , java.lang.Integer > > score ( 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 ) { return super . score ( hosts , vm , parameters ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , java.lang.Integer > > score ( 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 ) { return super . score ( cluster , hosts , vm , parameters ) ; }
Source:
public org.ovirt.engine.ui.common.widget.table.OrderedMultiSelectionModel < ? > getTableSelectionModel ( ) { return null ; }

Target:
public org.ovirt.engine.ui.common.widget.table.ActionTable < ? > getTable ( ) { return null ; }
Source:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand1 ( null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand1 ( null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public static boolean isVdsWithSameHostExistStatic ( java.lang.String hostName ) { java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > vds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDao ( ) . getAllForHost ( hostName ) ; return ( vds.size ( ) ) != 0 ; }

Target:
public static boolean isVdsWithSameHostExistStatic ( java.lang.String hostName ) { return ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDao ( ) . getByHostName ( hostName ) ) != null ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { return object.getDiskAlias ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( ( com.google.gwt.user.client.ui.RadioButton ) ( event.getSource ( ) ) ) . getValue ( ) ) { handleRadioButtonClick ( event ) ; } }
Source:
public java.util.List < org.ovirt.engine.ui.uicommonweb.models.hosts.numa.VNodeModel > getVNumaNodeByNodeId ( org.ovirt.engine.core.compat.Guid nodeId ) { return p2vNumaNodesMap.get ( nodeId ) ; }

Target:
public java.util.List < org.ovirt.engine.ui.uicommonweb.models.hosts.numa.VNodeModel > getVNumaNodeByNodeIndx ( java.lang.Integer nodeIdx ) { return p2vNumaNodesMap.get ( nodeIdx ) ; }
Source:
public final void setBrandingManager ( final org.ovirt.engine.ui.frontend.server.gwt.branding.BrandingManager manager ) { brandingManager = manager ; }

Target:
public void init ( ) { init ( new org.ovirt.engine.ui.frontend.server.gwt.branding.BrandingManager ( ) ) ; }
Source:
public void canDoActionFailsMissingIsoFile ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters param = org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.createParameters ( ) ; param.setoVirtIsoFile ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.INVALID_VERSION_OVIRT_ISO_FILENAME ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.assertFailsWithCanDoActionMessage ( command , VdcBllMessages.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ; }

Target:
public void canDoActionFailsMissingIsoFile ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters param = org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.createParameters ( ) ; param.setoVirtIsoFile ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.INVALID_VERSION_OVIRT_ISO_FILENAME ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.assertFailsWithCanDoActionMessage ( command , EngineMessage.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage_server_connections mapToCnx ( org.ovirt.engine.api.model.StorageDomain model ) { return getMapper ( org.ovirt.engine.api.model.StorageDomain.class , org.ovirt.engine.core.common.businessentities.storage_server_connections.class ) . map ( model , null ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageServerConnections mapToCnx ( org.ovirt.engine.api.model.StorageDomain model ) { return getMapper ( org.ovirt.engine.api.model.StorageDomain.class , org.ovirt.engine.core.common.businessentities.StorageServerConnections.class ) . map ( model , null ) ; }
Source:
java.lang.String decrypt ( java.lang.String value ) throws java.lang.Exception { return org.ovirt.engine.core.utils.crypt.EncryptionUtils.decrypt ( value , org.ovirt.engine.core.config.entity.helper.PasswordValueHelper.keyStoreURL , org.ovirt.engine.core.config.entity.helper.PasswordValueHelper.keyStorePass , org.ovirt.engine.core.config.entity.helper.PasswordValueHelper.certAlias ) ; }

Target:
java.lang.String encrypt ( java.lang.String value ) throws java.lang.Exception { return org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.encrypt ( value ) ; }
Source:
public org.ovirt.engine.ui.webadmin.widget.alert.EventsListPopover getEventPopover ( ) { return events ; }

Target:
public void setAlertCount ( int count ) { events.setBadgeText ( java.lang.String.valueOf ( count ) ) ; }
Source:
public void testDomainWithNotEnoughSpace ( ) { validator = new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidatorTest.mockStorageDomain ( 3 , 756 , StorageType.NFS ) ) ; org.junit.Assert.assertThat ( "Wrong failure for not enough space" , validator.isDomainWithinThresholds ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; }

Target:
public void testDomainWithNotEnoughSpace ( ) { validator = new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidatorTest.mockStorageDomain ( 3 , 756 , StorageType.NFS ) ) ; org.hamcrest.MatcherAssert.assertThat ( "Wrong failure for not enough space" , validator.isDomainWithinThresholds ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; }
Source:
int readRefreshRate ( ) { java.lang.String refreshRate = clientStorage.getLocalItem ( getRefreshRateItemKey ( ) ) ; try { return new java.lang.Integer ( refreshRate ) . intValue ( ) ; } catch ( java.lang.NumberFormatException e ) { return getDefaultRefreshRate ( ) ; } }

Target:
int readRefreshRate ( ) { java.lang.String refreshRate = clientStorage.getLocalItem ( getRefreshRateItemKey ( ) ) ; try { return java.lang.Integer.parseInt ( refreshRate ) ; } catch ( java.lang.NumberFormatException e ) { return getDefaultRefreshRate ( ) ; } }
Source:
public void warn ( java.lang.Object msg , java.lang.Throwable t ) { log.warn ( addPrefixToLogMessage ( msg ) , t ) ; }

Target:
public void warn ( java.lang.Object msg ) { log.warn ( convertToString ( msg ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { this . macPoolValidator = createMacPoolValidator ( macPool ) ; org.mockito.Mockito.when ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getMacPoolDao ( ) ) . thenReturn ( macPoolDaoMock ) ; org.mockito.Mockito.when ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getClusterDao ( ) ) . thenReturn ( clusterDao ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { this . macPoolValidator = createMacPoolValidator ( macPool ) ; injectorRule.bind ( org.ovirt.engine.core.dao.MacPoolDao.class , macPoolDaoMock ) ; injectorRule.bind ( org.ovirt.engine.core.dao.ClusterDao.class , clusterDao ) ; }
Source:
public void setnum_of_cpus ( int value ) { }

Target:
public void setNumOfCpus ( int value ) { }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.CinderDisk getDisk ( ) { if ( ( disk ) == null ) { disk = ( ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk ) ( getCommand ( ) . getDiskDao ( ) . get ( getDiskId ( ) ) ) ) ; } return disk ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.CinderDisk getDisk ( ) { return getCommand ( ) . getParameters ( ) . getRemovedVolume ( ) ; }
Source:
public void setNonOperationalReason ( org.ovirt.engine.core.common.businessentities.NonOperationalReason nonOperationalReason ) { this . mVdsDynamic.setNonOperationalReason ( nonOperationalReason ) ; }

Target:
public void setNonOperationalReason ( org.ovirt.engine.core.common.businessentities.NonOperationalReason nonOperationalReason ) { vdsDynamic.setNonOperationalReason ( nonOperationalReason ) ; }
Source:
public void canRebalanceOnDistributeReplicateVolume ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity = getDistributedReplacatedVolume ( volumeId1 , 12 , 4 ) ; org.ovirt.engine.core.bll.ValidationResult validationResult = brickValidator.canRebalance ( volumeEntity ) ; org.junit.Assert.assertTrue ( validationResult.isValid ( ) ) ; }

Target:
public void canRebalanceOnDistributeReplicateVolume ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity = getDistributedReplicatedVolume ( volumeId1 , 12 , 4 ) ; org.ovirt.engine.core.bll.ValidationResult validationResult = brickValidator.canRebalance ( volumeEntity ) ; org.junit.Assert.assertTrue ( validationResult.isValid ( ) ) ; }
Source:
protected void executeIrsBrokerCommand ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.IsoDirectoryVDSCommand.getVDSReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.vdsbroker.irsbroker.IsoDirectoryVDSCommand.getCurrentIrsProxyData ( ) . getIsoDirectory ( ) ) ; }

Target:
protected void executeIrsBrokerCommand ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.IsoDirectoryVDSCommand.getVDSReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.vdsbroker.irsbroker.IsoDirectoryVDSCommand.getCurrentIrsProxy ( ) . getIsoDirectory ( ) ) ; }
Source:
public void testNoRepeats ( ) { java.lang.String sample = org.ovirt.engine.core.utils.Ticketing.generateOTP ( ) ; for ( int x = 0 ; x < 1000 ; x ++ ) { java.lang.String other = org.ovirt.engine.core.utils.Ticketing.generateOTP ( ) ; org.junit.jupiter.api.Assertions.assertNotEquals ( sample , other ) ; } }

Target:
public void testNoRepeats ( ) { java.lang.String other = org.ovirt.engine.core.utils.Ticketing.generateOTP ( ) ; org.junit.jupiter.api.Assertions.assertNotEquals ( org.ovirt.engine.core.utils.TicketingTest.sample , other ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { return new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) . addActiveSnapshot ( snapshotId , getVm ( ) , getCompensationContext ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { return new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) . addActiveSnapshot ( snapshotId , getVm ( ) , getMemoryVolumeForNewActiveSnapshot ( ) , getCompensationContext ( ) ) ; }
Source:
protected boolean isArchitectureUpdatable ( ) { return ( oldGroup.getArchitecture ( ) ) == ( org.ovirt.engine.core.common.businessentities.ArchitectureType.undefined ) ? true : ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getArchitecture ( ) ) == ( oldGroup.getArchitecture ( ) ) ; }

Target:
protected boolean isArchitectureUpdatable ( ) { return ( oldGroup.getArchitecture ( ) ) == ( org.ovirt.engine.core.common.businessentities.ArchitectureType.undefined ) ? true : ( org.ovirt.engine.core.bll.UpdateClusterCommand.getArchitecture ( ) ) == ( oldGroup.getArchitecture ( ) ) ; }
Source:
public void addAttributes ( java.util.List < org.ovirt.api.metamodel.concepts.Attribute > attributes ) { this . attributes.addAll ( attributes ) ; }

Target:
public void addAttributes ( java.util.List < org.ovirt.api.metamodel.concepts.Attribute > newAttributes ) { attributes.addAll ( attributes ) ; attributes.sort ( java.util.Comparator.comparing ( Attribute :: getName ) ) ; }
Source:
public void customDevPropSpecWithIncompleteBrackets ( ) { java.lang.String customDevPropSpec = "{type=disk;prop={bootable=^(true|false)$}" ; org.ovirt.engine.core.utils.customprop.DevicePropertiesUtils utils = org.ovirt.engine.core.utils.customprop.DevicePropertiesUtils.getInstance ( ) ; org.junit.Assert.assertFalse ( utils.isDevicePropertiesDefinitionValid ( customDevPropSpec ) ) ; }

Target:
public void customDevPropSpecWithIncompleteBrackets ( ) { java.lang.String customDevPropSpec = "{type=disk;prop={bootable=^(true|false)$}" ; org.ovirt.engine.core.utils.customprop.DevicePropertiesUtils utils = org.ovirt.engine.core.utils.customprop.DevicePropertiesUtils.getInstance ( ) ; org.junit.jupiter.api.Assertions.assertFalse ( utils.isDevicePropertiesDefinitionValid ( customDevPropSpec ) ) ; }
Source:
public void setLiveMergeSupport ( boolean value ) { vdsDynamic.setLiveMergeSupport ( value ) ; }

Target:
public void setCertificateSubject ( java.lang.String certificateSubject ) { vdsStatic.setCertificateSubject ( certificateSubject ) ; }
Source:
public void testBadGuid ( ) { try { new org.ovirt.engine.api.restapi.resource.BackendStorageDomainVmResource ( null , "foo" ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) { verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> new org.ovirt.engine.api.restapi.resource.BackendStorageDomainVmResource ( null , "foo" ) ) ) ; }
Source:
public void completeBonds ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Bond > bonds ) { org.ovirt.engine.core.bll.network.host.NicNameNicIdCompleter.NicNameAndNicIdAccessors.FromBond accessors = new org.ovirt.engine.core.bll.network.host.NicNameNicIdCompleter.NicNameAndNicIdAccessors.FromBond ( ) ; for ( org.ovirt.engine.core.common.businessentities.network.Bond bond : bonds ) { complete ( accessors.setBond ( bond ) ) ; } }

Target:
public void completeBonds ( java.util.List < org.ovirt.engine.core.common.action.CreateOrUpdateBond > bonds ) { org.ovirt.engine.core.bll.network.host.NicNameNicIdCompleter.NicNameAndNicIdAccessors.FromCreateOrUpdateBondData accessors = new org.ovirt.engine.core.bll.network.host.NicNameNicIdCompleter.NicNameAndNicIdAccessors.FromCreateOrUpdateBondData ( ) ; for ( org.ovirt.engine.core.common.action.CreateOrUpdateBond bond : bonds ) { complete ( accessors.setCreateOrUpdateBond ( bond ) ) ; } }