auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testGetOptionalConfigDir ( ) { parser.parse ( new java.lang.String [ ] { "-a" , "-c" , "dirname" } ) ; org.junit.Assert.assertEquals ( "dirname" , parser.getAlternateConfigFile ( ) ) ; }

Target:
public void testGetOptionalConfigDir ( ) { parser.parse ( new java.lang.String [ ] { "-a" , "-c" , "dirname" } ) ; org.junit.jupiter.api.Assertions.assertEquals ( "dirname" , parser.getAlternateConfigFile ( ) ) ; }
Source:
public void testParseListActionWithExtraArguments ( ) { parser.parse ( new java.lang.String [ ] { "-l" , "b" , "c" } ) ; org.junit.Assert.assertEquals ( ConfigActionType.ACTION_LIST , parser.getConfigAction ( ) ) ; }

Target:
public void testParseListActionWithExtraArguments ( ) { parser.parse ( new java.lang.String [ ] { "-l" , "b" , "c" } ) ; org.junit.jupiter.api.Assertions.assertEquals ( ConfigActionType.ACTION_LIST , parser.getConfigAction ( ) ) ; }
Source:
public void testNullConsoleUserNameWhenNoUserSet ( ) { org.ovirt.engine.core.common.users.VdcUser user = new org.ovirt.engine.core.common.users.VdcUser ( ) ; command.setCurrentUser ( user ) ; junit.framework.Assert.assertNull ( command.getConsoleUserName ( ) ) ; }

Target:
public void testNullConsoleUserNameWhenNoUserSet ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = new org.ovirt.engine.core.common.businessentities.DbUser ( ) ; command.setCurrentUser ( user ) ; junit.framework.Assert.assertNull ( command.getConsoleUserName ( ) ) ; }
Source:
public void sameBondNameSentTwice ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond , bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_INTERFACES_ALREADY_SPECIFIED , bond.getName ( ) ) ; }

Target:
public void sameBondNameSentTwice ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond , bond ) ) ; validateAndExpectViolation ( helper , EngineMessage.NETWORK_INTERFACES_ALREADY_SPECIFIED , bond.getName ( ) ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.DetachDiskFromVm , new org.ovirt.engine.core.common.action.AttachDetachVmDiskParameters ( new org.ovirt.engine.core.common.businessentities.storage.DiskVmElement ( guid , vmId ) ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( ActionType.DetachDiskFromVm , new org.ovirt.engine.core.common.action.AttachDetachVmDiskParameters ( new org.ovirt.engine.core.common.businessentities.storage.DiskVmElement ( guid , vmId ) ) ) ; }
Source:
public org.ovirt.engine.api.resource.DisksResource getDisksResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendStorageDomainDisksResource ( asGuid ( id ) , subCollections ) ) ; }

Target:
public org.ovirt.engine.api.resource.AttachedStorageDomainDisksResource getDisksResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainDisksResource ( guid ) ) ; }
Source:
private void getVmsFromExportDomain ( org.ovirt.engine.core.compat.Guid dataCenterId , org.ovirt.engine.core.compat.Guid storageDomainId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmsFromExportDomain , new org.ovirt.engine.core.common.queries.GetAllFromExportDomainQueryParameters ( dataCenterId , storageDomainId ) , new org.ovirt.engine.ui.frontend.AsyncQuery ( this , createGetVmsFromExportDomainCallback ( ) ) ) ; }

Target:
private void setExternalVmModels ( org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.VM > > externalVmModels ) { this . externalVmModels = externalVmModels ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return java.util.Collections.< org.ovirt.engine.core.common.businessentities.CertificateInfo > emptyList ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return java.util.Collections.< org.ovirt.engine.core.common.businessentities.CertificateInfo > emptyList ( ) ; } return source ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { Window.Location.assign ( ( ( com.google.gwt.core.client.GWT.getModuleBaseURL ( ) ) + "sso/logout" ) ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue ) { Window.Location.assign ( ( ( com.google.gwt.core.client.GWT.getModuleBaseURL ( ) ) + "sso/logout" ) ) ; }
Source:
protected void executeCommand ( ) { super . executeCommand ( ) ; getLibvirtSecretDao ( ) . remove ( getParameters ( ) . getLibvirtSecret ( ) . getId ( ) ) ; unregisterLibvirtSecret ( ) ; setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { super . executeCommand ( ) ; libvirtSecretDao.remove ( getParameters ( ) . getLibvirtSecret ( ) . getId ( ) ) ; unregisterLibvirtSecret ( ) ; setSucceeded ( true ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.MigrateModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.MigrateModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; Cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.MigrateModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.MigrateModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }
Source:
public void OnSaveInternal ( ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel ) ( getWindow ( ) ) ) ; if ( ( model.getProgress ( ) ) != null ) { return ; } CancelConfirmation ( ) ; OnSaveInternalWithModel ( model ) ; }

Target:
public void onPreSaveInternal ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel model ) { if ( ( ( java.lang.Boolean ) ( model.getIsImportGlusterConfiguration ( ) . getEntity ( ) ) ) ) { fetchAndImportClusterHosts ( model ) ; } else { onSaveInternal ( ) ; } }
Source:
public void setLiveMergeSupport ( boolean value ) { vdsDynamic.setLiveMergeSupport ( value ) ; }

Target:
public void setHostedEngineHost ( boolean value ) { hostedEngineHost = value ; }
Source:
public void setvds_group_compatibility_version ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( getvds_group_compatibility_version ( ) , value ) ) { this . vds_group_compatibility_versionField = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vds_group_compatibility_version" ) ) ; } }

Target:
public void setVdsGroupCompatibilityVersion ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( getVdsGroupCompatibilityVersion ( ) , value ) ) { this . vdsGroupCompatibilityVersion = value ; } }
Source:
private void mockSameNameQuery ( boolean result ) { org.mockito.Mockito.doReturn ( result ) . when ( command ) . isVmWithSameNameExists ( org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; }

Target:
private void mockVmDaoGetVm ( ) { org.mockito.Mockito.when ( vmDao.get ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vm ) ; }
Source:
public void testValidateGateway ( ) throws java.lang.Exception { host.setVdsGroupCompatibilityVersion ( Version.v3_5 ) ; doTestValidateGateway ( "someGateway" , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACH_ILLEGAL_GATEWAY ) ) ; }

Target:
public void testValidateGatewayIsNotManagementNetworkAndMultipleGatewaysNotSupported ( ) { doTestValidateGateway ( "someGateway" , false , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACH_HAVING_NAME_ILLEGAL_GATEWAY ) ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget createWidget ( org.ovirt.engine.ui.uicommonweb.models.vms.key_value.KeyValueLineModel value ) { org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget keyValueLineWidget = new org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget ( rowWidth , fieldWidth ) ; keyValueLineWidget.edit ( value ) ; widgets.add ( keyValueLineWidget ) ; return keyValueLineWidget ; }

Target:
protected org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget createWidget ( org.ovirt.engine.ui.uicommonweb.models.vms.key_value.KeyValueLineModel value ) { org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget keyValueLineWidget = new org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget ( rowWidth , fieldWidth ) ; keyValueLineWidget.edit ( value ) ; keyValueLineWidget.setUsePatternFly ( usePatternFly ) ; widgets.add ( keyValueLineWidget ) ; return keyValueLineWidget ; }
Source:
public static org.ovirt.engine.core.common.businessentities.StorageFormatType getPreferredForVersion ( org.ovirt.engine.core.compat.Version v , org.ovirt.engine.core.common.businessentities.StorageType type ) { return org.ovirt.engine.core.common.utils.VersionStorageFormatUtil.versionToFormat.get ( v ) . getPreferred ( type ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.StorageFormatType getPreferredForVersion ( org.ovirt.engine.core.compat.Version v , org.ovirt.engine.core.common.businessentities.storage.StorageType type ) { return org.ovirt.engine.core.common.utils.VersionStorageFormatUtil.versionToFormat.get ( v ) . getPreferred ( type ) ; }
Source:
protected void revertTask ( ) { org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( getEnclosingCommand ( ) . getParameters ( ) . getImageId ( ) , ImageStatus.OK ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( getEnclosingCommand ( ) . getParameters ( ) . getDestinationImageId ( ) , ImageStatus.OK ) ; }

Target:
protected void revertTask ( ) { org.ovirt.engine.core.bll.ImagesHandler.updateAllDiskImageSnapshotsStatus ( getEnclosingCommand ( ) . getParameters ( ) . getImageGroupID ( ) , ImageStatus.OK ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > setVmTicket ( java.lang.String vmId , java.lang.String otp64 , java.lang.String sec ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > getExternalVMs ( java.lang.String uri , java.lang.String username , java.lang.String password , java.util.List < java.lang.String > vmsNames ) ;
Source:
public void removeLocalItem ( java.lang.String key ) { if ( ( org.ovirt.engine.ui.common.system.ClientStorage.localStorage ) != null ) { org.ovirt.engine.ui.common.system.ClientStorage.localStorage.removeItem ( key ) ; } else { com.google.gwt.user.client.Cookies.removeCookie ( key ) ; } }

Target:
java.lang.String getSessionItem ( java.lang.String key ) ;
Source:
java.lang.String errConnectingVmUsingSpiceMsg ( java.lang.Object errCode ) ;

Target:
java.lang.String brickDetailsNotSupportedInClusterCompatibilityVersion ( java.lang.String version ) ;
Source:
public static void persistCommand ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.Guid rootCommandId , org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.core.compat.CommandStatus status , boolean enableCallBack ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.persistCommand ( commandId , rootCommandId , actionType , params , status , enableCallBack ) ; }

Target:
public static void removeAllCommandsInHierarchy ( org.ovirt.engine.core.compat.Guid commandId ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.removeAllCommandsInHierarchy ( commandId ) ; }
Source:
public void testGetAllForVdsGroupWithPermissionsForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForVdsGroup ( existingVds.getvds_group_id ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForVdsGroupWithPermissionsForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForVdsGroup ( existingVds.getVdsGroupId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void testISCSIEmptyIqn ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newISCSIConnection = createISCSIConnection ( "10.35.16.25" , StorageType.ISCSI , "" , "3650" , "user1" , "mypassword123" ) ; parameters.setStorageServerConnection ( newISCSIConnection ) ; parameters.setVdsId ( Guid.Empty ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( getCommand ( ) , VdcBllMessages.VALIDATION_STORAGE_CONNECTION_EMPTY_IQN ) ; }

Target:
public void testISCSIEmptyIqn ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newISCSIConnection = createISCSIConnection ( "10.35.16.25" , StorageType.ISCSI , "" , "3650" , "user1" , "mypassword123" ) ; parameters.setStorageServerConnection ( newISCSIConnection ) ; parameters.setVdsId ( Guid.Empty ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( getCommand ( ) , EngineMessage.VALIDATION_STORAGE_CONNECTION_EMPTY_IQN ) ; }
Source:
private void updateEditorStyle ( org.ovirt.engine.ui.common.widget.AbstractValidatedWidgetWithLabel editor , java.lang.String contentStyle ) { editor.setContentWidgetStyleName ( contentStyle ) ; editor.addWrapperStyleName ( style.editorWrapper ( ) ) ; editor.setLabelStyleName ( style.editorLabel ( ) ) ; }

Target:
private void updateEditorStyle ( org.ovirt.engine.ui.common.widget.AbstractValidatedWidgetWithLabel editor , java.lang.String contentStyle ) { editor.setContentWidgetContainerStyleName ( contentStyle ) ; editor.addWrapperStyleName ( style.editorWrapper ( ) ) ; editor.setLabelStyleName ( style.editorLabel ( ) ) ; }
Source:
public void shouldDetectUpgradeDone ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.isUpgradeDone ( java.util.Arrays.asList ( newHost1 , newHost2 ) ) , org.hamcrest.CoreMatchers.equalTo ( ValidationResult.VALID ) ) ; }

Target:
public void shouldDetectInvalidHostOsOnNewlyAddedHost ( ) { newHost1.setHostOs ( "which OS am I?" ) ; org.assertj.core.api.Assertions.assertThat ( validator.isUpgradeDone ( java.util.Arrays.asList ( newHost1 , newHost2 ) ) ) . isNotEqualTo ( ValidationResult.VALID ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroupId , org.ovirt.engine.core.compat.Version compatibilityVersion ) { org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; vdsGroup.setId ( vdsGroupId ) ; vdsGroup.setCompatibilityVersion ( compatibilityVersion ) ; return vdsGroup ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Cluster getCluster ( org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.compat.Version compatibilityVersion ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( clusterId ) ; cluster.setCompatibilityVersion ( compatibilityVersion ) ; return cluster ; }
Source:
protected void addCustomModelsDetailModelList ( org.ovirt.engine.core.compat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > list ) { list.add ( new org.ovirt.engine.ui.uicommonweb.models.templates.TemplateEventListModel ( ) ) ; list.add ( new org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel ( ) ) ; }

Target:
protected void addCustomModelsDetailModelList ( org.ovirt.engine.core.compat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > list ) { list.add ( 3 , new org.ovirt.engine.ui.uicommonweb.models.templates.TemplateDiskListModel ( ) ) ; list.add ( new org.ovirt.engine.ui.uicommonweb.models.templates.TemplateEventListModel ( ) ) ; list.add ( new org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc extendImageTransferSession ( java.lang.String ticketId , long expiration ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.OneMapReturnForXmlRpc get_image_transfer_session_stats ( java.lang.String ticketId ) ;
Source:
public org.ovirt.engine.core.bll.ValidationResult networkAttachedToCluster ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NETWORK_NOT_EXISTS_IN_CLUSTER ) . when ( ( ( getNetworkCluster ( ) ) == null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkAttachedToCluster ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.NETWORK_NOT_EXISTS_IN_CLUSTER ) . when ( ( ( getNetworkCluster ( ) ) == null ) ) ; }
Source:
public void setErrorMessage ( java.lang.String errorMessage ) { messageLabel.setHTML ( errorMessage ) ; }

Target:
public void setErrorMessage ( java.lang.String errorMessage ) { messageLabel.setHTML ( errorMessage.replace ( "\n" , "<br/>" ) ) ; }
Source:
public void rerun ( ) { decreasePendingVms ( org.ovirt.engine.core.bll.MigrateVmToServerCommand.getDestinationVds ( ) . getId ( ) ) ; _isRerun = false ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.setSucceeded ( false ) ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.determineMigrationFailureForAuditLog ( ) ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.log ( ) ; }

Target:
public void rerun ( ) { org.ovirt.engine.core.bll.MigrateVmToServerCommand.failedToMigrate ( ) ; }
Source:
public void setSearchPanel ( com.google.gwt.user.client.ui.IsWidget searchPanel ) { actionPanel.setSearchPanel ( searchPanel ) ; }

Target:
public void setInSlot ( java.lang.Object slot , com.google.gwt.user.client.ui.IsWidget content ) { if ( slot == ( org.ovirt.engine.ui.webadmin.section.main.presenter.AbstractMainTabWithDetailsPresenter.TYPE_SetSearchPanel ) ) { actionPanel.setSearchPanel ( content ) ; } else { super . setInSlot ( slot , content ) ; } }
Source:
public static boolean hasTasksByStoragePoolId ( org.ovirt.engine.core.compat.Guid storagePoolID ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.getAsyncTaskManager ( ) . hasTasksByStoragePoolId ( storagePoolID ) ; }

Target:
public static boolean hasTasksByStoragePoolId ( org.ovirt.engine.core.compat.Guid storagePoolID ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.getAsyncTaskManager ( ) . hasTasksByStoragePoolId ( storagePoolID ) ; }
Source:
public abstract void updateHosts ( ) ;

Target:
public void updateHosts ( ) { updateExternalHostModels ( null ) ; }
Source:
public void testValidate ( ) { org.ovirt.engine.core.bll.UpdateRngDeviceCommand command = mockCommand ( ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void testValidate ( ) { org.ovirt.engine.core.bll.UpdateRngDeviceCommand command = mockCommand ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( command.validate ( ) ) ; }
Source:
public void testSubResourceLocator ( ) throws java.lang.Exception { control.replay ( ) ; assertTrue ( ( ( collection.getDeviceSubResource ( GUIDS [ 0 ] . toString ( ) ) ) instanceof org.ovirt.engine.api.resource.NicResource ) ) ; }

Target:
public void testSubResourceLocator ( ) throws java.lang.Exception { control.replay ( ) ; assertTrue ( ( ( collection.getDeviceResource ( GUIDS [ 0 ] . toString ( ) ) ) instanceof org.ovirt.engine.api.resource.NicResource ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateReportsAvailability ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { commonModelProvider.get ( ) . updateReportsAvailability ( ) ; }
Source:
protected void verifyCollection ( java.util.List < org.ovirt.engine.api.model.Cdrom > cdroms ) throws java.lang.Exception { assertNotNull ( cdroms ) ; assertEquals ( 1 , cdroms.size ( ) ) ; verifyModel ( cdroms.get ( 0 ) ) ; }

Target:
protected void verifyCollection ( java.util.List < org.ovirt.engine.api.model.Cdrom > cdroms ) throws java.lang.Exception { org.junit.Assert.assertNotNull ( cdroms ) ; org.junit.Assert.assertEquals ( 1 , cdroms.size ( ) ) ; verifyModel ( cdroms.get ( 0 ) ) ; }
Source:
public static boolean hasSoundDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return ! ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getSoundDevices ( vmId ) . isEmpty ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getSoundDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return vmDeviceDao.getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.SOUND ) ; }
Source:
public void testValidateNameSizeImportAsCloned ( ) { java.lang.String string300 = ( ( org.ovirt.engine.core.bll.ImportVmCommandTest.string100 ) + ( org.ovirt.engine.core.bll.ImportVmCommandTest.string100 ) ) + ( org.ovirt.engine.core.bll.ImportVmCommandTest.string100 ) ; checkVmName ( true , string300 ) ; }

Target:
public void testValidateNameSizeImportAsCloned ( ) { checkVmName ( true , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextPropertyString ( 300 ) ) ; }
Source:
public void setTitle ( java.lang.String title ) { this . title = ( title != null ) ? title : "" ; }

Target:
public void setStyleClass ( java.lang.String styleClass ) { this . styleClass = ( styleClass == null ) ? "" : styleClass ; }
Source:
protected javax.ws.rs.core.Response performCreation ( org.ovirt.engine.core.common.action.VdcActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase taskParams , org.ovirt.engine.api.restapi.resource.EntityIdResolver entityResolver ) { return performCreation ( task , taskParams , entityResolver , expectBlocking ( ) ) ; }

Target:
protected < T > javax.ws.rs.core.Response performCreation ( org.ovirt.engine.core.common.action.VdcActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase taskParams , org.ovirt.engine.api.restapi.resource.IResolver < T , Q > entityResolver ) { return performCreation ( task , taskParams , entityResolver , expectBlocking ( ) ) ; }
Source:
protected javax.ws.rs.core.Response performRemove ( java.lang.String id ) { org.ovirt.engine.core.common.action.QuotaCRUDParameters removeParams = new org.ovirt.engine.core.common.action.QuotaCRUDParameters ( ) ; removeParams.setQuotaId ( asGuid ( id ) ) ; removeParams.setStoragePoolId ( dataCenterId ) ; return performAction ( VdcActionType.RemoveQuota , removeParams ) ; }

Target:
protected javax.ws.rs.core.Response performRemove ( java.lang.String id ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
protected java.util.List < org.ovirt.engine.api.model.NetworkAttachment > getNetworkAttachments ( ) { verifyIfHostExistsToHandle404StatusCode ( ) ; return getBackendCollection ( VdcQueryType.GetNetworkAttachmentsByHostId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getHostId ( ) ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.api.model.NetworkAttachment > getNetworkAttachments ( ) { verifyIfHostExistsToHandle404StatusCode ( ) ; return getBackendCollection ( QueryType.GetNetworkAttachmentsByHostId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getHostId ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.bll.QueriesCommandBase < ? > createQueryCommand ( org.ovirt.engine.core.common.queries.QueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , org.ovirt.engine.core.bll.context.EngineContext engineContext ) { return org.ovirt.engine.core.bll.CommandsFactory.createQueryCommand ( actionType , parameters , engineContext ) ; }

Target:
protected org.ovirt.engine.core.bll.QueriesCommandBase < ? > createQueryCommand ( org.ovirt.engine.core.common.queries.QueryType actionType , org.ovirt.engine.core.common.queries.QueryParametersBase parameters , org.ovirt.engine.core.bll.context.EngineContext engineContext ) { return org.ovirt.engine.core.bll.CommandsFactory.createQueryCommand ( actionType , parameters , engineContext ) ; }
Source:
protected void startVirtualSystem ( ) { _writer.writeStartElement ( "VirtualSystem" ) ; _writer.writeAttributeString ( org.ovirt.engine.core.utils.ovf.OVF_URI , "id" , vmBase.getId ( ) . toString ( ) ) ; }

Target:
protected void startVirtualSystem ( ) { _writer.writeStartElement ( "VirtualSystem" ) ; _writer.writeAttributeString ( org.ovirt.engine.core.utils.ovf.OVF_PREFIX , org.ovirt.engine.core.utils.ovf.OVF_URI , "id" , vmBase.getId ( ) . toString ( ) ) ; }
Source:
public javax.ws.rs.core.Response migrate ( org.ovirt.engine.api.model.Action action ) { validateParameters ( action , "bricks" ) ; org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters params = toParameters ( action ) ; return performAction ( VdcActionType.StartRemoveGlusterVolumeBricks , params ) ; }

Target:
public javax.ws.rs.core.Response migrate ( org.ovirt.engine.api.model.Action action ) { validateParameters ( action , "bricks" ) ; validateBrickNames ( action ) ; org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters params = toParameters ( action ) ; return performAction ( VdcActionType.StartRemoveGlusterVolumeBricks , params , action , false ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSGroup get ( org.ovirt.engine.core.compat.Guid id ) { return get ( id , null , false ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Cluster get ( org.ovirt.engine.core.compat.Guid id ) { return get ( id , null , false ) ; }
Source:
protected org.ovirt.engine.core.dao.profiles.ProfilesDao < org.ovirt.engine.core.common.businessentities.profiles.DiskProfile > getProfileDao ( ) { return getDiskProfileDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.profiles.ProfilesDao < org.ovirt.engine.core.common.businessentities.profiles.DiskProfile > getProfileDao ( ) { return diskProfileDao ; }
Source:
public void setPopupKeyPressHandler ( org.ovirt.engine.ui.common.widget.dialog.PopupNativeKeyPressHandler handler ) { org.ovirt.engine.ui.common.view.popup.AbstractModelBoundPopupView.asWidget ( ) . setKeyPressHandler ( handler ) ; }

Target:
public com.google.gwt.event.shared.HandlerRegistration setPopupKeyPressHandler ( org.ovirt.engine.ui.common.widget.dialog.PopupNativeKeyPressHandler handler ) { return org.ovirt.engine.ui.common.view.popup.AbstractModelBoundPopupView.asWidget ( ) . setKeyPressHandler ( handler ) ; }
Source:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.StorageDomain , isCaseSensitiveSearch ( ) ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( applySortOptions ( getSearchString ( ) ) , org.ovirt.engine.core.common.interfaces.SearchType.StorageDomain , isCaseSensitiveSearch ( ) ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }
Source:
public long getSoftTimeout ( ) { return this . softTimeout ; }

Target:
public long getSoftTimeout ( ) { return _softTimeout ; }
Source:
public void clearErrorMessage ( ) { setErrorMessageHtml ( null ) ; errorMessagePanel.setVisible ( false ) ; }

Target:
public void clearErrorMessages ( ) { com.google.gwt.user.client.ui.IsWidget errorIconWidget = errorMessagePanel.getWidget ( 0 ) ; errorMessagePanel.clear ( ) ; errorMessagePanel.add ( errorIconWidget ) ; errorMessagePanel.setVisible ( false ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum getQuotaEnforcementType ( ) { return this . mVmStatic.getQuotaEnforcementType ( ) ; }

Target:
public void setQuotaEnforcementType ( org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum quotaEnforcementType ) { this . vmStatic.setQuotaEnforcementType ( quotaEnforcementType ) ; }
Source:
public void testRemove ( ) { dao.remove ( existingLUN.getLUN_id ( ) ) ; org.ovirt.engine.core.common.businessentities.LUNs result = dao.get ( existingLUN.getLUN_id ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testRemove ( ) { dao.remove ( existingLUN.getLUN_id ( ) ) ; org.ovirt.engine.core.common.businessentities.storage.LUNs result = dao.get ( existingLUN.getLUN_id ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void testVmExceedsMaxThreadsPerCpu ( ) { setVmCpuValues ( 1 , 1 , ( ( org.ovirt.engine.core.bll.validator.VmValidatorTest.MAX_NUM_THREADS_PER_CPU ) + 1 ) ) ; org.junit.Assert.assertThat ( org.ovirt.engine.core.bll.validator.VmValidator.validateCpuSockets ( vm.getStaticData ( ) , org.ovirt.engine.core.bll.validator.VmValidatorTest.COMPAT_VERSION_FOR_CPU_SOCKET_TEST ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MAX_THREADS_PER_CPU ) ) ; }

Target:
public void testVmExceedsMaxThreadsPerCpu ( ) { setVmCpuValues ( 1 , 1 , ( ( org.ovirt.engine.core.bll.validator.VmValidatorTest.MAX_NUM_THREADS_PER_CPU ) + 1 ) ) ; org.hamcrest.MatcherAssert.assertThat ( org.ovirt.engine.core.bll.validator.VmValidator.validateCpuSockets ( vm.getStaticData ( ) , org.ovirt.engine.core.bll.validator.VmValidatorTest.COMPAT_VERSION_FOR_CPU_SOCKET_TEST ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MAX_THREADS_PER_CPU ) ) ; }
Source:
protected void addCustomizationCondition ( java.lang.String cond ) { _customizationConditions.add ( cond ) ; }

Target:
public void addCustomizationCondition ( java.lang.String ... cond ) { _customizationConditions.addAll ( java.util.Arrays.asList ( cond ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = ( ( org.ovirt.engine.core.common.businessentities.Cluster ) ( returnValue ) ) ; if ( cluster != null ) { powerAction ( actionName , title , message , cluster.isOptionalReasonRequired ( ) ) ; } }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }
Source:
public void getVm ( ) { final org.ovirt.engine.core.common.businessentities.VM v = new org.ovirt.engine.core.common.businessentities.VM ( ) ; b.setVm ( v ) ; final org.ovirt.engine.core.common.businessentities.VM vm = b.getVm ( ) ; org.junit.Assert.assertEquals ( v , vm ) ; }

Target:
public void getVm ( ) { final org.ovirt.engine.core.common.businessentities.VM v = new org.ovirt.engine.core.common.businessentities.VM ( ) ; b.setVm ( v ) ; final org.ovirt.engine.core.common.businessentities.VM vm = b.getVm ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( v , vm ) ; }
Source:
void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) ;

Target:
void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) ;
Source:
private void InitHandlers ( ) { mTagsHandler = org.ovirt.engine.core.bll.HandlersFactory.createTagsHandler ( ) ; org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.TagsHandler = mTagsHandler ; org.ovirt.engine.core.bll.VmHandler.Init ( ) ; org.ovirt.engine.core.bll.VdsHandler.Init ( ) ; org.ovirt.engine.core.bll.VmTemplateHandler.Init ( ) ; }

Target:
private void initHandlers ( ) { mTagsHandler = org.ovirt.engine.core.bll.HandlersFactory.createTagsHandler ( ) ; org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.tagsHandler = mTagsHandler ; org.ovirt.engine.core.bll.VmHandler.init ( ) ; org.ovirt.engine.core.bll.VdsHandler.init ( ) ; org.ovirt.engine.core.bll.VmTemplateHandler.init ( ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }
Source:
public java.lang.Double getRoundedElapsedTime ( ) { return this . vmStatistics.getRoundedElapsedTime ( ) ; }

Target:
public void setDowntime ( long value ) { this . vmDynamic.setDowntime ( value ) ; }
Source:
public void testUpdateIscsiServerConnection ( ) { existingConnection.setiqn ( "1.2.3.4" ) ; dao.update ( existingConnection ) ; org.ovirt.engine.core.common.businessentities.StorageServerConnections result = dao.get ( existingConnection.getid ( ) ) ; org.junit.Assert.assertEquals ( existingConnection , result ) ; }

Target:
public void testUpdateIscsiServerConnection ( ) { existingConnection.setIqn ( "1.2.3.4" ) ; dao.update ( existingConnection ) ; org.ovirt.engine.core.common.businessentities.StorageServerConnections result = dao.get ( existingConnection.getId ( ) ) ; org.junit.Assert.assertEquals ( existingConnection , result ) ; }
Source:
protected boolean isDisksAliasNotEmpty ( ) { for ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage : diskInfoDestinationMap.values ( ) ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( diskImage.getDiskAlias ( ) ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_CANNOT_BE_CREATED_WITH_EMPTY_DISK_ALIAS ) ; } } return true ; }

Target:
protected boolean isDisksAliasNotEmpty ( ) { for ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage : diskInfoDestinationMap.values ( ) ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( diskImage.getDiskAlias ( ) ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_CANNOT_BE_CREATED_WITH_EMPTY_DISK_ALIAS ) ; } } return true ; }
Source:
protected void itemsChanged ( ) { super . itemsChanged ( ) ; ResetIsEmpty ( ) ; UpdatePagingAvailability ( ) ; }

Target:
private void updateActionAvailability ( ) { java.util.List < ? > items = ( ( getSelectedItems ( ) ) != null ) ? getSelectedItems ( ) : java.util.Collections.emptyList ( ) ; for ( org.ovirt.engine.ui.uicommonweb.ReportCommand reportCommand : openReportCommands ) { updateReportCommandAvailability ( reportCommand , items ) ; } }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VdsNetworkInterface > createBondSlaves ( java.lang.String bondName ) { int slaveCount = org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextInt ( 2 , 100 ) ; return createBondSlaves ( bondName , slaveCount ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VdsNetworkInterface > createNics ( java.lang.String bondName ) { int slaveCount = org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextInt ( 2 , 100 ) ; return createNics ( bondName , slaveCount ) ; }
Source:
protected org.ovirt.engine.core.dao.profiles.CpuProfileDao getProfileDao ( ) { return getDbFacade ( ) . getCpuProfileDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.profiles.CpuProfileDao getProfileDao ( ) { return cpuProfileDao ; }
Source:
private void assertCanDoMsgCount ( java.util.List < java.lang.String > canDoMsgs , java.lang.String msg , int count ) { org.junit.Assert.assertTrue ( ( ( java.util.Collections.frequency ( canDoMsgs , msg ) ) == count ) ) ; }

Target:
private void assertValidateMsgCount ( java.util.List < java.lang.String > validationMessages , java.lang.String msg , int count ) { org.junit.Assert.assertTrue ( ( ( java.util.Collections.frequency ( validationMessages , msg ) ) == count ) ) ; }
Source:
public void storagePoolStatusChanged ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.common.businessentities.StoragePoolStatus status ) { org.ovirt.engine.core.bll.storage.StoragePoolStatusHandler.PoolStatusChanged ( storagePoolId , status ) ; }

Target:
public void storagePoolStatusChanged ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.common.businessentities.StoragePoolStatus status ) { org.ovirt.engine.core.bll.storage.StoragePoolStatusHandler.poolStatusChanged ( storagePoolId , status ) ; }
Source:
public void testCheckIfExistsHostWithStatusInCluster ( ) { boolean resultBeforeUpdateStatus = dao.checkIfExistsHostWithStatusInCluster ( FixturesTool.GLUSTER_CLUSTER_ID , VDSStatus.Up ) ; org.junit.Assert.assertTrue ( resultBeforeUpdateStatus ) ; boolean resultAfterUpdateStatus = dao.checkIfExistsHostWithStatusInCluster ( FixturesTool.GLUSTER_CLUSTER_ID , VDSStatus.Connecting ) ; org.junit.Assert.assertFalse ( resultAfterUpdateStatus ) ; }

Target:
public void testCheckIfExistsHostWithStatusInCluster ( ) { boolean resultBeforeUpdateStatus = dao.checkIfExistsHostWithStatusInCluster ( FixturesTool.GLUSTER_CLUSTER_ID , VDSStatus.Up ) ; org.junit.jupiter.api.Assertions.assertTrue ( resultBeforeUpdateStatus ) ; boolean resultAfterUpdateStatus = dao.checkIfExistsHostWithStatusInCluster ( FixturesTool.GLUSTER_CLUSTER_ID , VDSStatus.Connecting ) ; org.junit.jupiter.api.Assertions.assertFalse ( resultAfterUpdateStatus ) ; }
Source:
void setOffset ( int left ) ;

Target:
void setOffset ( int left , boolean wantsLeft ) ;
Source:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getSlaveVolume ( ) { return getGlusterVolumeDao ( ) . getByName ( slaveHost.getClusterId ( ) , getParameters ( ) . getSlaveVolumeName ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getSlaveVolume ( ) { return glusterVolumeDao.getByName ( slaveHost.getClusterId ( ) , getParameters ( ) . getSlaveVolumeName ( ) ) ; }
Source:
public void lowerVersionHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }

Target:
public void lowerVersionHostsNoNetwork ( ) { cmd.getStoragePool ( ) . setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_0 ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
public void setUp ( ) { oldNetworkCluster = new org.ovirt.engine.core.common.businessentities.network.NetworkCluster ( ) ; super . setup ( ) ; org.mockito.Mockito.doReturn ( vdsDao ) . when ( validator ) . getVdsDao ( ) ; }

Target:
protected org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator createValidator ( ) { oldNetworkCluster = new org.ovirt.engine.core.common.businessentities.network.NetworkCluster ( ) ; return new org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator ( interfaceDao , networkDao , vdsDao , networkCluster , oldNetworkCluster ) ; }
Source:
private void validateValidResult ( org.ovirt.engine.core.bll.ValidationResult validationResult ) { validateResult ( validationResult , true , null ) ; }

Target:
private static void validateValidResult ( org.ovirt.engine.core.bll.ValidationResult validationResult ) { org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateResult ( validationResult , true , null ) ; }
Source:
public boolean isSpiceCopyPasteToggleSupported ( java.lang.String version ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.SpiceCopyPasteToggleSupported , version ) ) ) ; }

Target:
public int getUploadImageUiInactivityTimeoutInSeconds ( ) { return ( ( java.lang.Integer ) ( getConfigValuePreConverted ( ConfigurationValues.UploadImageUiInactivityTimeoutInSeconds ) ) ) ; }
Source:
public void networkChanged ( ) throws java.lang.Exception { mockVnicProfileNetworkChange ( DEFAULT_GUID , DEFAULT_GUID ) ; org.junit.Assert.assertThat ( validator.networkNotChanged ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void changingNetworkNotAllowed ( ) throws java.lang.Exception { mockVnicProfileNetworkChange ( org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.OTHER_GUID ) ; org.junit.Assert.assertThat ( validator.networkNotChanged ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_CHANGE_VNIC_PROFILE_NETWORK ) ) ; }
Source:
public void isNetworkDeviceNegtive ( ) { org.junit.Assert.assertEquals ( true , hostNicVfsConfigHelper.isNetworkDevice ( netDevice ) ) ; }

Target:
public void isNetworkDeviceNegtive ( ) { org.junit.Assert.assertTrue ( hostNicVfsConfigHelper.isNetworkDevice ( netDevice ) ) ; }
Source:
public void statusInList ( ) { storageDomainIsInactive ( ) ; org.junit.Assert.assertTrue ( cmd.checkStorageDomainStatus ( StorageDomainStatus.Locked , StorageDomainStatus.InActive , StorageDomainStatus.Unknown ) ) ; org.junit.Assert.assertFalse ( commandHasInvalidStatusMessage ( ) ) ; }

Target:
public void statusInList ( ) { setStorageDomainStatus ( StorageDomainStatus.InActive ) ; org.junit.Assert.assertTrue ( cmd.checkStorageDomainStatus ( StorageDomainStatus.Locked , StorageDomainStatus.InActive , StorageDomainStatus.Unknown ) ) ; org.junit.Assert.assertFalse ( commandHasInvalidStatusMessage ( ) ) ; }
Source:
public static boolean glusterForceCreateVolumeSupported ( org.ovirt.engine.core.compat.Version version ) { if ( version != null ) { return org.ovirt.engine.core.common.FeatureSupported.supportedInConfig ( ConfigValues.GlusterSupportForceCreateVolume , version ) ; } else { return false ; } }

Target:
public static boolean glusterArbiterVolumeSupported ( org.ovirt.engine.core.compat.Version version ) { if ( version != null ) { return org.ovirt.engine.core.common.FeatureSupported.supportedInConfig ( ConfigValues.GlusterSupportArbiterVolume , version ) ; } else { return false ; } }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.DISABLED ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetPolicyNotSetUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.DISABLED ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel getAdditionalConsole ( ) { return additionalConsole ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel getAdditionalConsoleModel ( ) { return additionalConsole ; }
Source:
org.ovirt.engine.core.common.action.VdcReturnValueBase RunAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) ;

Target:
org.ovirt.engine.core.common.action.VdcReturnValueBase runAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) ;
Source:
public static org.ovirt.engine.core.common.businessentities.storage.DiskImage createSnapshotMetadataDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = org.ovirt.engine.core.bll.memory.MemoryUtils.createMetadataDisk ( ) ; image.setDiskAlias ( org.ovirt.engine.core.bll.memory.MemoryUtils.VM_SNAPSHOT_METADATA_DISK_ALIAS ) ; image.setDescription ( org.ovirt.engine.core.bll.memory.MemoryUtils.VM_SNAPSHOT_METADATA_DISK_DESCRIPTION ) ; return image ; }

Target:
public static org.ovirt.engine.core.common.businessentities.storage.DiskImage createSnapshotMetadataDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = org.ovirt.engine.core.bll.memory.MemoryUtils.createMetadataDisk ( ) ; image.setDiskAlias ( org.ovirt.engine.core.bll.memory.MemoryUtils.VM_SNAPSHOT_METADATA_DISK_ALIAS ) ; image.setDiskDescription ( org.ovirt.engine.core.bll.memory.MemoryUtils.VM_SNAPSHOT_METADATA_DISK_DESCRIPTION ) ; return image ; }
Source:
public java.util.HashMap < java.lang.Integer , java.lang.String > getVmCompletionMap ( ) { return this . vmCompletionMap ; }

Target:
private java.lang.String getInnerQuery ( java.lang.String tableName , java.lang.String primeryKey , java.lang.String fromStatement , java.lang.StringBuilder wherePhrase ) { return org.ovirt.engine.core.compat.StringFormat.format ( "SELECT %1$s.%2$s FROM %3$s %4$s" , tableName , primeryKey , fromStatement , wherePhrase ) ; }
Source:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpActionsUriExpectations ( ) ; setGetVdsQueryExpectations ( 1 ) ; setGetNetworksQueryExpectations ( 1 ) ; setUpQueryExpectations ( "" ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpBasicUriExpectations ( ) ; setGetVdsQueryExpectations ( 1 ) ; setGetNetworksQueryExpectations ( 1 ) ; setUpQueryExpectations ( "" ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
private void InitVdsBroker ( ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.infoFormat ( "Initialize vdsBroker ({0},{1})" , vds.getHostName ( ) , vds.getPort ( ) ) ; vdsProxy = new org.ovirt.engine.core.vdsbroker.vdsbroker.VdsServerWrapper ( vds.getHostName ( ) , vds.getPort ( ) ) ; }

Target:
private static void logException ( final java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.error ( "ResourceManager::refreshVdsRunTimeInfo" , ex ) ; }
Source:
public void testAllLunsSupportDiscardFailsOneLunHasNullValue ( ) { org.junit.Assert.assertFalse ( discardHelper.allLunsSupportDiscard ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) , createLunWithDiscardSupport ( null ) ) ) ) ; }

Target:
public void testAllLunsSupportDiscardFailsOneLunHasNullValue ( ) { org.junit.jupiter.api.Assertions.assertFalse ( discardHelper.allLunsSupportDiscard ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) , createLunWithDiscardSupport ( null ) ) ) ) ; }
Source:
public boolean equals ( java.lang.Object obj ) { if ( obj instanceof org.ovirt.engine.core.bll.AutoStartVmsRunner.AutoStartVmToRestart ) { return vmId.equals ( ( ( org.ovirt.engine.core.bll.AutoStartVmsRunner.AutoStartVmToRestart ) ( obj ) ) . vmId ) ; } return super . equals ( obj ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hashCode ( vmId ) ; }