auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAll ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetAllFromAuditLog" , org.ovirt.engine.core.dao.AuditLogDAODbFacadeImpl.auditLogRowMapper , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAll ( org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "user_id" , userID ) . addValue ( "is_filtered" , isFiltered ) ; return getCallsHandler ( ) . executeReadList ( "GetAllFromAuditLog" , org.ovirt.engine.core.dao.AuditLogDAODbFacadeImpl.auditLogRowMapper , parameterSource ) ; }
Source:
protected void logToAudit ( ) { }

Target:
protected boolean shouldLogToAudit ( ) { return false ; }
Source:
public void setEnabled ( boolean enabled , java.util.List < java.lang.String > disabilityHints ) { setEnabled ( enabled ) ; updateWidgetTitle ( ( enabled ? null : getDisabilityTitle ( disabilityHints ) ) ) ; }

Target:
public void disable ( java.util.List < java.lang.String > disabilityHints ) { setEnabled ( false ) ; updateWidgetTitle ( getDisabilityTitle ( disabilityHints ) ) ; }
Source:
public void nonZeroMtuWhenNotSupported ( ) throws java.lang.Exception { mtuValidTest ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_MTU_OVERRIDE_NOT_SUPPORTED ) , 1 , false ) ; }

Target:
public void nonZeroMtuWhenSupported ( ) throws java.lang.Exception { mtuValidTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , 1 , true ) ; }
Source:
public void testImportVMFromConfigurationWhenVMDoesNotExists ( ) { initCommand ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_UNSUPPORTED_OVF ) ; }

Target:
public void testImportVMFromConfigurationWhenVMDoesNotExists ( ) { initCommand ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND ) ; }
Source:
public void setOsType ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { setOs ( value ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmOsType getOs ( ) { return os ; }
Source:
public static void RunAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , final org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback callback , final java.lang.Object state ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( actionType , parameters , ( callback != null ? callback : org.ovirt.engine.ui.frontend.Frontend.NULLABLE_ASYNC_CALLBACK ) , state , true ) ; }

Target:
public void runAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , final org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback callback , final java.lang.Object state ) { runAction ( actionType , parameters , ( callback != null ? callback : org.ovirt.engine.ui.frontend.Frontend.NULLABLE_ASYNC_CALLBACK ) , state , true ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.linuxOsIds = ( ( java.util.ArrayList < java.lang.Integer > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { osNames = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; initOsIds ( ) ; }
Source:
protected void writeMacAddress ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface ) { _writer.writeStartElement ( org.ovirt.engine.core.utils.ovf.RASD_URI , "MACAddress" ) ; _writer.writeRaw ( iface.getMacAddress ( ) ) ; _writer.writeEndElement ( ) ; }

Target:
protected void writeMacAddress ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface ) { _writer.writeElement ( org.ovirt.engine.core.utils.ovf.RASD_URI , "MACAddress" , iface.getMacAddress ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc validateStorageDomain ( java.lang.String sdUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.AlignmentScanReturnForXmlRpc getDiskAlignment ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > driveSpecs ) ;
Source:
public void setstorage_pool_name ( java.lang.String value ) { storagePoolName = value ; }

Target:
public void setStoragePoolName ( java.lang.String storagePoolName ) { this . storagePoolName = storagePoolName ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { boolean isEnabled = bootSequenceModel.getHardDiskOption ( ) . getIsChangable ( ) ; java.lang.String itemName = bootSequenceModel.getHardDiskOption ( ) . getTitle ( ) ; updateItemAvailability ( itemName , isEnabled ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { boolean isEnabled = bootSequenceModel.getCdromOption ( ) . getIsChangable ( ) ; java.lang.String itemName = bootSequenceModel.getCdromOption ( ) . getTitle ( ) ; updateItemAvailability ( itemName , isEnabled ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkIsSet ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NETWORK_NOT_EXISTS ) . when ( ( ( network ) == null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkIsSet ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.NETWORK_NOT_EXISTS ) . when ( ( ( network ) == null ) ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.event_subscriber o1 , org.ovirt.engine.core.common.businessentities.event_subscriber o2 ) { return lexoNumericComparator.compare ( o1.getevent_up_name ( ) , o2.getevent_up_name ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.EventSubscriber o1 , org.ovirt.engine.core.common.businessentities.EventSubscriber o2 ) { return lexoNumericComparator.compare ( o1.getEventUpName ( ) , o2.getEventUpName ( ) ) ; }
Source:
protected org.ovirt.engine.core.bll.AsyncTaskManager getAsyncTaskManager ( ) { return org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.VdcQueryType type , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams ) { return getBackend ( ) . runInternalQuery ( type , queryParams ) ; }
Source:
public void testISCSIInvalidPortWithCharacters ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newISCSIConnection = createISCSIConnection ( "10.35.16.25" , StorageType.ISCSI , "iqn.2013-04.myhat.com:aaa-target1" , "abc" , "user1" , "mypassword123" ) ; parameters.setStorageServerConnection ( newISCSIConnection ) ; parameters.setVdsId ( Guid.Empty ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( getCommand ( ) , EngineMessage.VALIDATION_STORAGE_CONNECTION_INVALID_PORT ) ; }

Target:
public void testISCSIInvalidPortWithCharacters ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newISCSIConnection = createISCSIConnection ( "10.35.16.25" , StorageType.ISCSI , "iqn.2013-04.myhat.com:aaa-target1" , "abc" , "user1" , "mypassword123" ) ; parameters.setStorageServerConnection ( newISCSIConnection ) ; parameters.setVdsId ( Guid.Empty ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( getCommand ( ) , EngineMessage.VALIDATION_STORAGE_CONNECTION_INVALID_PORT ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroupEntity ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; cluster.setStoragePoolId ( GUIDS [ 3 ] ) ; cluster.setArchitecture ( ArchitectureType.x86_64 ) ; cluster.setCompatibilityVersion ( org.ovirt.engine.core.compat.Version.getLast ( ) ) ; return cluster ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Cluster getClusterEntity ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setStoragePoolId ( GUIDS [ 3 ] ) ; cluster.setArchitecture ( ArchitectureType.x86_64 ) ; cluster.setCompatibilityVersion ( org.ovirt.engine.core.compat.Version.getLast ( ) ) ; return cluster ; }
Source:
public void testValidModifiedBondsFailsWhenReferencingExistingNonBondInterface ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; org.ovirt.engine.core.bll.ValidationResult notABondValidationResult = new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_INTERFACE_IS_NOT_BOND , org.ovirt.engine.core.bll.validator.HostInterfaceValidator.VAR_NETWORK_INTERFACE_IS_NOT_BOND_ENTITY , bond.getName ( ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , notABondValidationResult , notABondValidationResult , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsFailsWhenReferencingExistingNonBondInterface ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACE_IS_NOT_BOND ) , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACE_IS_NOT_BOND ) , ValidationResult.VALID ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Quota answer ( org.mockito.invocation.InvocationOnMock invocation ) throws java.lang.Throwable { return mockMemQuotaSpecificNotExceeded ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Quota answer ( org.mockito.invocation.InvocationOnMock invocation ) throws java.lang.Throwable { return mockStorageQuotaGlobalNotExceeded ( ) ; }
Source:
public static void runAndAssertCanDoActionSuccess ( org.ovirt.engine.core.bll.CommandBase < ? > command ) { boolean canDoAction = command.canDoAction ( ) ; org.junit.Assert.assertTrue ( java.text.MessageFormat.format ( "Command''s canDoAction expected to succeed but failed, messages are: {0}" , command.getReturnValue ( ) . getCanDoActionMessages ( ) ) , canDoAction ) ; }

Target:
public static void runAndAssertCanDoActionSuccess ( org.ovirt.engine.core.bll.CommandBase < ? > command ) { boolean canDoAction = command.canDoAction ( ) ; org.junit.Assert.assertTrue ( java.text.MessageFormat.format ( "Command''s canDoAction expected to succeed, but failed, messages are: {0}" , command.getReturnValue ( ) . getCanDoActionMessages ( ) ) , canDoAction ) ; }
Source:
protected < T > T doGetEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.VdcQueryType query , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams , java.lang.String identifier ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return doGetEntity ( clz , query , queryParams , identifier , true ) ; }

Target:
protected < T > T doGetEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.QueryType query , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams , java.lang.String identifier ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return doGetEntity ( clz , query , queryParams , identifier , true ) ; }
Source:
private void hideRemoveDiskAndShowEditVm ( ) { getParentListModel ( ) . setWindow ( null ) ; getParentListModel ( ) . setWindow ( getUnitVmModel ( ) ) ; }

Target:
private void hideRemoveDiskAndShowEditVm ( ) { if ( ( getParentListModel ( ) ) instanceof org.ovirt.engine.ui.uicommonweb.models.vms.HasDiskWindow ) { ( ( org.ovirt.engine.ui.uicommonweb.models.vms.HasDiskWindow ) ( getParentListModel ( ) ) ) . setDiskWindow ( null ) ; } }
Source:
protected void doTestGet ( java.lang.String base ) { setUpGetSystemVersionExpectations ( ) ; setUpGetSystemStatisticsExpectations ( ) ; verifyResponse ( resource.get ( ) ) ; }

Target:
protected void doTestGet ( org.ovirt.engine.core.common.mode.ApplicationMode appMode , java.lang.String base ) { setupExpectations ( appMode , org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.relationships ) ; verifyResponse ( resource.get ( ) ) ; }
Source:
public org.ovirt.engine.core.dao.VmStaticDAO getVmStaticDAO ( ) { return getDbFacade ( ) . getVmStaticDAO ( ) ; }

Target:
protected org.ovirt.engine.core.dao.VmStatisticsDAO getVmStatisticsDAO ( ) { return getDbFacade ( ) . getVmStatisticsDao ( ) ; }
Source:
public void testGetById ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterServer entity = dao.getByServerId ( FixturesTool.GLUSTER_BRICK_SERVER1 ) ; org.junit.Assert.assertNotNull ( entity ) ; org.junit.Assert.assertEquals ( FixturesTool.GLUSTER_BRICK_SERVER1 , entity.getId ( ) ) ; org.junit.Assert.assertEquals ( FixturesTool.GLUSTER_SERVER_UUID1 , entity.getGlusterServerUuid ( ) ) ; }

Target:
public void testGetById ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterServer entity = dao.getByServerId ( FixturesTool.GLUSTER_BRICK_SERVER1 ) ; org.junit.jupiter.api.Assertions.assertNotNull ( entity ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.GLUSTER_BRICK_SERVER1 , entity.getId ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.GLUSTER_SERVER_UUID1 , entity.getGlusterServerUuid ( ) ) ; }
Source:
public static void RunQuery ( final org.ovirt.engine.core.common.queries.VdcQueryType queryType , final org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , final org.ovirt.engine.ui.frontend.AsyncQuery callback ) { final org.ovirt.engine.ui.frontend.gwtservices.GenericApiGWTServiceAsync service = GenericApiGWTServiceAsync.Util.getInstance ( ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( queryType , parameters , service , callback ) ; }

Target:
public void runPublicQuery ( final org.ovirt.engine.core.common.queries.VdcQueryType queryType , final org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , final org.ovirt.engine.ui.frontend.AsyncQuery callback ) { runQuery ( queryType , parameters , callback , true ) ; }
Source:
public boolean getRefreshStatistics ( ) { return ( refreshIteration ) == ( org.ovirt.engine.core.vdsbroker.VdsManager.NUMBER_HOST_REFRESHES_BEFORE_SAVE ) ; }

Target:
private void updateIteration ( ) { if ( ( refreshIteration ) == ( NUMBER_HOST_REFRESHES_BEFORE_SAVE ) ) { refreshIteration = 1 ; } else { ( refreshIteration ) ++ ; } }
Source:
public void testIsTimezoneValueInteger ( ) { org.junit.Assert.assertFalse ( OsRepositoryImpl.INSTANCE.isTimezoneValueInteger ( 777 , null ) ) ; }

Target:
public void testIsTimezoneValueInteger ( ) { org.junit.jupiter.api.Assertions.assertFalse ( OsRepositoryImpl.INSTANCE.isTimezoneValueInteger ( 777 , null ) ) ; }
Source:
private static void assertContainsRootTag ( org.ovirt.engine.api.model.SpecialObjects objs ) { org.junit.Assert.assertNotNull ( objs.getRootTag ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.ROOT_TAG_HREF , objs.getRootTag ( ) . getHref ( ) ) ; }

Target:
private static void assertContainsRootTag ( org.ovirt.engine.api.model.SpecialObjects objs ) { org.junit.jupiter.api.Assertions.assertNotNull ( objs.getRootTag ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.ROOT_TAG_HREF , objs.getRootTag ( ) . getHref ( ) ) ; }
Source:
public void validateBondOptionsForNewAttachementWithOutOfSyncVmNetworkNotOverridden ( ) { validateValidBonds ( true , true , false , false ) ; }

Target:
public void validateBondOptionsForNewAttachementWithOutOfSyncVmNetworkNotOverridden ( ) { validateValidBondsForAllBondModes ( true , true , false , false ) ; }
Source:
public java.lang.Boolean getkvm_enable ( ) { return this . mVmDynamic.getkvm_enable ( ) ; }

Target:
public void setUtcDiff ( java.lang.Integer value ) { this . vmDynamic.setutc_diff ( value ) ; }
Source:
protected void localizeBootSequenceButtons ( ) { bootSequenceUpButton.setText ( org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmRunOncePopupWidget.constants.bootSequenceUpButtonLabel ( ) ) ; bootSequenceDownButton.setText ( org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmRunOncePopupWidget.constants.bootSequenceDownButtonLabel ( ) ) ; }

Target:
public void cleanup ( ) { vmInitWidget.cleanup ( ) ; driver.cleanup ( ) ; }
Source:
public java.lang.Void runInTransaction ( ) { getDbFacade ( ) . getVmJobDao ( ) . removeAll ( vmJobIdsToRemove ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getDbFacade ( ) . getVmDeviceDao ( ) . removeAll ( removedDeviceIds ) ; return null ; }
Source:
public void testAuditLogMacInUseUnplug ( ) { final org.ovirt.engine.core.common.businessentities.network.VmNic iface = org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) ; vmInterfaceManager.auditLogMacInUseUnplug ( iface , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VM_NAME ) ; verifyCommonAuditLogFilledProperly ( AuditLogType.MAC_ADDRESS_IS_IN_USE_UNPLUG , iface ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VM_NAME , auditLogableCaptor.getValue ( ) . getVmName ( ) ) ; }

Target:
public void testAuditLogMacInUseUnplug ( ) { final org.ovirt.engine.core.common.businessentities.network.VmNic iface = org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) ; vmInterfaceManager.auditLogMacInUseUnplug ( iface , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VM_NAME ) ; verifyCommonAuditLogFilledProperly ( AuditLogType.MAC_ADDRESS_IS_IN_USE_UNPLUG , iface ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VM_NAME , auditLogableCaptor.getValue ( ) . getVmName ( ) ) ; }
Source:
public java.lang.String getAllowOverbookingInfoMessage ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . schedulerAllowOverbookingInfo ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getSchedulerAllowOverbookingPendingRequestsThreshold ( ) ) ; }

Target:
public java.lang.String getSchedulerOptimizationInfoMessage ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . schedulerOptimizationInfo ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getOptimizeSchedulerForSpeedPendingRequests ( ) ) ; }
Source:
public void testGetCascadedResourceNotDefinedNotFound ( ) { org.junit.Assert.assertNull ( "getCascadedResource should have returned null" , testManager.getCascadingResource ( "i_am_not_in_branding_properties" ) ) ; }

Target:
public void testGetCascadedResourceNotDefinedNotFound ( ) { org.junit.jupiter.api.Assertions.assertNull ( testManager.getCascadingResource ( "i_am_not_in_branding_properties" ) , "getCascadedResource should have returned null" ) ; }
Source:
public void testRemoveUnregisteredDiskRelatedToVM ( ) { dao.removeUnregisteredDisk ( FixturesTool.UNREGISTERED_DISK , FixturesTool.STORAGE_DOMAIN_NFS2_1 ) ; java.util.List < org.ovirt.engine.core.common.businessentities.storage.UnregisteredDisk > unregisteredDisk = dao.getByDiskIdAndStorageDomainId ( FixturesTool.UNREGISTERED_DISK , null ) ; org.junit.Assert.assertTrue ( "Disk should not exists in the UnregisteredDisks table after being deleted." , unregisteredDisk.isEmpty ( ) ) ; }

Target:
public void testRemoveUnregisteredDiskRelatedToVM ( ) { dao.removeUnregisteredDisk ( FixturesTool.UNREGISTERED_DISK , FixturesTool.STORAGE_DOMAIN_NFS2_1 ) ; java.util.List < org.ovirt.engine.core.common.businessentities.storage.UnregisteredDisk > unregisteredDisk = dao.getByDiskIdAndStorageDomainId ( FixturesTool.UNREGISTERED_DISK , null ) ; org.junit.jupiter.api.Assertions.assertTrue ( unregisteredDisk.isEmpty ( ) , "Disk should not exists in the UnregisteredDisks table after being deleted." ) ; }
Source:
private void assertInvalidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) , VdcBllMessages.ACTION_TYPE_FAILED_DISK_CONFIGURATION_NOT_SUPPORTED ) ; }

Target:
private void assertInvalidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.storage.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) , VdcBllMessages.ACTION_TYPE_FAILED_DISK_CONFIGURATION_NOT_SUPPORTED ) ; }
Source:
private org.ovirt.engine.core.common.scheduling.AffinityGroup createAffinityGroup ( ) { affinityGroup = new org.ovirt.engine.core.common.scheduling.AffinityGroup ( ) ; affinityGroup.setName ( org.ovirt.engine.core.bll.scheduling.commands.EditAffinityGroupCommandTest.AFFINITY_GROUP_NAME ) ; affinityGroup.setClusterId ( clusterId ) ; return affinityGroup ; }

Target:
private org.ovirt.engine.core.common.scheduling.AffinityGroup createAffinityGroup ( ) { affinityGroup = new org.ovirt.engine.core.common.scheduling.AffinityGroup ( ) ; affinityGroup.setName ( org.ovirt.engine.core.bll.scheduling.commands.EditAffinityGroupCommandTest.AFFINITY_GROUP_NAME ) ; affinityGroup.setClusterId ( clusterId ) ; affinityGroup.setEntityIds ( new java.util.ArrayList < org.ovirt.engine.core.compat.Guid > ( ) ) ; return affinityGroup ; }
Source:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( getAffinityGroupDao ( ) . getAllAffinityGroupsByClusterId ( getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( affinityGroupDao.getAllAffinityGroupsByClusterId ( getParameters ( ) . getId ( ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network createManagementNetwork ( ) { final org.ovirt.engine.core.common.businessentities.network.Network network = new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; network.setId ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.TEST_MANAGEMENT_NETWORK_ID ) ; return network ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network createManagementNetwork ( ) { final org.ovirt.engine.core.common.businessentities.network.Network network = new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; network.setId ( org.ovirt.engine.core.bll.UpdateClusterCommandTest.TEST_MANAGEMENT_NETWORK_ID ) ; return network ; }
Source:
public void statusInList ( ) { setStorageDomainStatus ( StorageDomainStatus.Inactive ) ; 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.jupiter.api.Assertions.assertTrue ( cmd.checkStorageDomainStatus ( StorageDomainStatus.Locked , StorageDomainStatus.Inactive , StorageDomainStatus.Unknown ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( commandHasInvalidStatusMessage ( ) ) ; }
Source:
public static boolean isMatch ( java.lang.String searchString , java.lang.String pageStringRegex , int ignorecase ) { throw new org.ovirt.engine.core.compat.NotImplementedException ( ) ; }

Target:
public static boolean isMatch ( java.lang.String searchString , java.lang.String pageStringRegex , int ignorecase ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public void setvm_pid ( java.lang.Integer value ) { this . vmPid = value ; }

Target:
public void setVmPid ( java.lang.Integer value ) { this . vmPid = value ; }
Source:
protected org.ovirt.engine.api.model.Device addParents ( org.ovirt.engine.api.model.Device model ) { model.setVm ( new org.ovirt.engine.api.model.VM ( ) ) ; model.getVm ( ) . setId ( vmId.toString ( ) ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.ReportedDevice addParents ( org.ovirt.engine.api.model.ReportedDevice model ) { model.setVm ( new org.ovirt.engine.api.model.VM ( ) ) ; model.getVm ( ) . setId ( vmId.toString ( ) ) ; return model ; }
Source:
public java.util.List < org.ovirt.engine.core.compat.Guid > getVmAndTemplatesIdsWithoutAttachedImageDisks ( boolean shareableDisks ) ;

Target:
public java.util.List < org.ovirt.engine.core.compat.Guid > getVmAndTemplatesIdsWithoutAttachedImageDisks ( org.ovirt.engine.core.compat.Guid storagePoolId , boolean shareableDisks ) ;
Source:
private void initIpConfigurationStaticBootProtocol ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol networkBootProtocol ) { initIpConfiguration ( ) ; org.mockito.Mockito.when ( mockedIPv4Address.getBootProtocol ( ) ) . thenReturn ( networkBootProtocol ) ; iface.setIpv4BootProtocol ( networkBootProtocol ) ; }

Target:
private void initIpConfigurationStaticBootProtocol ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv4BootProtocol ) { initIpConfiguration ( ) ; org.mockito.Mockito.when ( mockedIPv4Address.getBootProtocol ( ) ) . thenReturn ( ipv4BootProtocol ) ; iface.setIpv4BootProtocol ( ipv4BootProtocol ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return source ; } return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return source ; } return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ( ) ; }
Source:
public void enableDownButton ( boolean value ) { down.setEnabled ( value ) ; }

Target:
public void enableUpButton ( boolean value ) { up.setEnabled ( value ) ; }
Source:
public java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VM > runInTransaction ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDAO ( ) . getAllRunningByVds ( _vds.getId ( ) ) ; }

Target:
public java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VM > runInTransaction ( ) { return getDbFacade ( ) . getVmDAO ( ) . getAllRunningByVds ( _vds.getId ( ) ) ; }
Source:
com.woorea.openstack.keystone.Keystone createKeystone ( java.lang.String authUrl ) { return new com.woorea.openstack.keystone.Keystone ( authUrl ) ; }

Target:
com.woorea.openstack.keystone.Keystone createKeystone ( java.lang.String authUrl ) { return new com.woorea.openstack.keystone.Keystone ( authUrl , new org.ovirt.engine.core.bll.provider.network.openstack.CustomizedRESTEasyConnector ( ) ) ; }
Source:
public void save ( org.ovirt.engine.core.common.businessentities.AsyncTasks task ) { save ( task , null , org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.EMPTY_GUIDS_ARRAY ) ; }

Target:
public void insertAsyncTaskEntities ( java.util.Collection < org.ovirt.engine.core.common.businessentities.AsyncTaskEntity > asyncTaskEntities ) { getCallsHandler ( ) . executeStoredProcAsBatch ( "InsertAsyncTaskEntities" , asyncTaskEntities , mapper ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return new ConvertVmCallback ( org.ovirt.engine.core.bll.ConvertVmCommand.getVmId ( ) , org.ovirt.engine.core.bll.ConvertVmCommand.getVdsId ( ) , org.ovirt.engine.core.bll.ConvertVmCommand.getStoragePool ( ) . getCompatibilityVersion ( ) ) ; }

Target:
protected org.ovirt.engine.core.vdsbroker.VdsManager getVdsManager ( ) { return getResourceManager ( ) . GetVdsManager ( org.ovirt.engine.core.bll.ConvertVmCommand.getVdsId ( ) ) ; }
Source:
public java.lang.String getFileName ( ) { return this . fileName ; }

Target:
public java.util.Map < java.lang.String , java.lang.String > getFiles ( ) { return files ; }
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.Assert.assertNotSame ( sample , other ) ; } }

Target:
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.assertNotSame ( sample , other ) ; } }
Source:
protected org.ovirt.engine.core.bll.validator.storage.StorageConnectionValidator createStorageConnectionValidator ( ) { java.lang.String connectionId = org.ovirt.engine.core.bll.storage.connection.AttachStorageConnectionToStorageDomainCommand.getParameters ( ) . getStorageConnectionId ( ) ; org.ovirt.engine.core.common.businessentities.StorageServerConnections connection = org.ovirt.engine.core.bll.storage.connection.AttachStorageConnectionToStorageDomainCommand.getStorageServerConnectionDao ( ) . get ( connectionId ) ; return new org.ovirt.engine.core.bll.validator.storage.StorageConnectionValidator ( connection ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.StorageConnectionValidator createStorageConnectionValidator ( ) { java.lang.String connectionId = org.ovirt.engine.core.bll.storage.connection.AttachStorageConnectionToStorageDomainCommand.getParameters ( ) . getStorageConnectionId ( ) ; org.ovirt.engine.core.common.businessentities.StorageServerConnections connection = storageServerConnectionDao.get ( connectionId ) ; return new org.ovirt.engine.core.bll.validator.storage.StorageConnectionValidator ( connection ) ; }
Source:
private boolean validateDestStorage ( org.ovirt.engine.core.compat.Guid imageId , org.ovirt.engine.core.compat.Guid destDomainId ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator validator = getValidator ( destDomainId , org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand.getStoragePoolId ( ) ) ; return ( validate ( validator.isDomainExistAndActive ( ) ) ) && ( validate ( validator.domainIsValidDestination ( ) ) ) ; }

Target:
private boolean validateDestStorage ( org.ovirt.engine.core.common.businessentities.StorageDomain destDomain ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator validator = new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( destDomain ) ; return ( validate ( validator.isDomainExistAndActive ( ) ) ) && ( validate ( validator.domainIsValidDestination ( ) ) ) ; }
Source:
private org.ovirt.engine.core.bll.validator.UpdateHostValidator createValidatorForHostInstallation ( ) { return new org.ovirt.engine.core.bll.validator.UpdateHostValidator ( dbFacade , oldHost , host , true ) ; }

Target:
private org.ovirt.engine.core.bll.validator.UpdateHostValidator createValidatorForHostInstallation ( ) { return new org.ovirt.engine.core.bll.validator.UpdateHostValidator ( dbFacade , oldHost , host , true , hostedEngineHelper ) ; }
Source:
private void assertValidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.storage.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }

Target:
private void assertValidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.storage.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) ; mockMemorySize ( org.ovirt.engine.core.compat.Version.getLast ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus parse ( java.lang.CharSequence text ) throws java.text.ParseException { if ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( text.toString ( ) ) ) { return null ; } return org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus.valueOf ( text.toString ( ) . toUpperCase ( ) ) ; }

Target:
private void initEditors ( ) { statusEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelLabelEditor < org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus > ( new org.ovirt.engine.ui.common.widget.renderer.EnumRenderer < org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus > ( ) ) ; clientsTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable < org.ovirt.engine.ui.uicommonweb.models.ListModel > ( false , true ) ; memoryPoolsTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable < org.ovirt.engine.ui.uicommonweb.models.ListModel > ( false , true ) ; }
Source:
public void shouldDetectInvalidHostOsOnNewlyAddedHost ( ) { newHost1.setHostOs ( "which OS am I?" ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isUpgradeDone ( java.util.Arrays.asList ( newHost1 , newHost2 ) ) , org.hamcrest.Matchers.not ( 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:
public void setLiveSnapshotSupport ( java.lang.Boolean value ) { vdsDynamic.setLiveSnapshotSupport ( value ) ; }

Target:
public void setCertificateSubject ( java.lang.String certificateSubject ) { vdsStatic.setCertificateSubject ( certificateSubject ) ; }
Source:
public static void addPermission ( org.ovirt.engine.core.common.businessentities.Permissions ... permissions ) { for ( org.ovirt.engine.core.common.businessentities.Permissions perms : permissions ) { org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.getPermissionDAO ( ) . save ( perms ) ; } }

Target:
public static void addPermission ( org.ovirt.engine.core.common.businessentities.Permission ... permissions ) { for ( org.ovirt.engine.core.common.businessentities.Permission perms : permissions ) { org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.getPermissionDAO ( ) . save ( perms ) ; } }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Disk disk ) { if ( disk.isSetId ( ) ) { return attachDiskToVm ( disk ) ; } else { return super . add ( disk ) ; } }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Disk disk ) { validateEnums ( org.ovirt.engine.api.model.Disk.class , disk ) ; if ( disk.isSetId ( ) ) { return attachDiskToVm ( disk ) ; } else { return super . add ( disk ) ; } }
Source:
public void testRefreshLightWeight ( ) throws java.lang.Exception { createCluster ( Version.v3_2 ) ; setupMocks ( ) ; glusterManager.refreshLightWeightData ( ) ; verifyMocksForLightWeight ( ) ; }

Target:
public void testRefreshHeavyWeight ( ) throws java.lang.Exception { createCluster ( ) ; setupMocks ( ) ; glusterManager.refreshHeavyWeightData ( ) ; verifyMocksForHeavyWeight ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQueryImpl ( org.ovirt.engine.core.common.queries.QueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , boolean isPerformUserCheck ) { return runQueryImpl ( actionType , parameters , isPerformUserCheck , null ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQueryImpl ( org.ovirt.engine.core.common.queries.QueryType actionType , org.ovirt.engine.core.common.queries.QueryParametersBase parameters , boolean isPerformUserCheck ) { return runQueryImpl ( actionType , parameters , isPerformUserCheck , null ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , org.ovirt.engine.ui.uicommonweb.models.users.UserListModel , org.ovirt.engine.ui.uicommonweb.models.users.UserEventListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.user.SubTabUserEventPresenter.constants.userEventSubTabLabel ( ) , 5 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.user.SubTabUserEventPresenter.constants.userEventSubTabLabel ( ) , 5 ) ; }
Source:
public void testDumpRepoToString ( ) { java.lang.String actual = OsRepositoryImpl.INSTANCE.toString ( ) ; java.lang.String expected = OsRepositoryImpl.INSTANCE.name ( ) ; org.junit.Assert.assertNotSame ( expected , actual ) ; }

Target:
public void testDumpRepoToString ( ) { java.lang.String actual = OsRepositoryImpl.INSTANCE.toString ( ) ; java.lang.String expected = OsRepositoryImpl.INSTANCE.name ( ) ; org.junit.jupiter.api.Assertions.assertNotSame ( expected , actual ) ; }
Source:
public void testGetNegative ( ) { org.ovirt.engine.core.common.scheduling.ClusterPolicy result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetNegative ( ) { org.ovirt.engine.core.common.scheduling.ClusterPolicy result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , java.util.Collections.emptyMap ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void setErrorMessageHtml ( java.lang.String text ) { setErrorMessageLabel ( errorMessage , text ) ; errorMessage.setVisible ( ( text != null ) ) ; if ( errorMessage.isVisible ( ) ) { errorMessagePanel.setVisible ( true ) ; setToolTipPositionAndShow ( ) ; } }

Target:
public void setErrorMessageHtml ( com.google.gwt.safehtml.shared.SafeHtml text ) { setErrorMessageLabel ( errorMessage , text ) ; errorMessage.setVisible ( ( text != null ) ) ; if ( errorMessage.isVisible ( ) ) { errorMessagePanel.setVisible ( true ) ; setToolTipPositionAndShow ( ) ; } }
Source:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getParameters ( ) . getVmStaticData ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getParameters ( ) . getVmStaticData ( ) , org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getUserId ( ) ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml statusTemplate ( com.google.gwt.safehtml.shared.SafeHtml statusImage , java.lang.String title ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml volumeActivityMenu ( com.google.gwt.safehtml.shared.SafeHtml statusImage , java.lang.String id ) ;
Source:
public void testgetAllInterfacesByClusterId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > interfaces = dao.getAllInterfacesByClusterId ( FixturesTool.CLUSTER ) ; org.junit.Assert.assertNotNull ( interfaces ) ; org.junit.Assert.assertFalse ( interfaces.isEmpty ( ) ) ; }

Target:
public void testgetAllInterfacesByClusterId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > interfaces = dao.getAllInterfacesByClusterId ( FixturesTool.CLUSTER ) ; org.junit.jupiter.api.Assertions.assertNotNull ( interfaces ) ; org.junit.jupiter.api.Assertions.assertFalse ( interfaces.isEmpty ( ) ) ; }
Source:
public void edit ( final T object ) { searchItems.setRowData ( new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ) ; searchItems.edit ( object ) ; }

Target:
public void edit ( final T object ) { searchItems.setRowData ( new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ) ; searchItems.asEditor ( ) . edit ( object ) ; }
Source:
public void removeButtons ( ) { org.ovirt.engine.ui.common.view.popup.AbstractModelBoundPopupView.asWidget ( ) . removeFooterButtons ( ) ; }

Target:
public void removeButtons ( ) { org.ovirt.engine.ui.common.view.popup.AbstractModelBoundPopupView.asWidget ( ) . removeFooterButtons ( ) ; focusableButtons.clear ( ) ; }
Source:
public void testIsNetworkInSyncWhenIfaceQosIsNullIfaceQosOverridden ( ) throws java.lang.Exception { iface.setQos ( null ) ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenBothQosIsNull ( ) { iface.setQos ( null ) ; networkQos = null ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public boolean isDiscardAfterDelete ( ) { return staticData.isDiscardAfterDelete ( ) ; }

Target:
public java.lang.Boolean getDiscardAfterDelete ( ) { return staticData.getDiscardAfterDelete ( ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { testProvider = new org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider ( mockService ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { mockService = org.mockito.Mockito.mock ( org.ovirt.engine.ui.frontend.gwtservices.GenericApiGWTServiceAsync.class , org.mockito.Mockito.withSettings ( ) . extraInterfaces ( com.google.gwt.user.client.rpc.ServiceDefTarget.class ) ) ; testProvider = new org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider ( mockService ) ; }
Source:
protected org.ovirt.engine.api.model.VM getVmPreview ( org.ovirt.engine.api.model.Snapshot snapshot ) { org.ovirt.engine.api.model.VM vm = getEntity ( org.ovirt.engine.api.model.VM.class , VdcQueryType.GetVmConfigurationBySnapshot , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( snapshot.getId ( ) ) ) , null ) ; return vm ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VM getVmPreview ( org.ovirt.engine.api.model.Snapshot snapshot ) { org.ovirt.engine.api.restapi.resource.VM vm = getEntity ( org.ovirt.engine.core.common.businessentities.VM.class , VdcQueryType.GetVmConfigurationBySnapshot , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( snapshot.getId ( ) ) ) , null ) ; return vm ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmPool ResolveVmPoolById ( org.ovirt.engine.core.compat.Guid id ) { return poolMap.get ( id ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmPool resolveVmPoolById ( org.ovirt.engine.core.compat.Guid id ) { return poolMap.get ( id ) ; }
Source:
private void assertBondRemoved ( org.ovirt.engine.core.bll.SetupNetworksHelper helper , org.ovirt.engine.core.common.businessentities.VdsNetworkInterface expectedBond ) { junit.framework.Assert.assertTrue ( java.text.MessageFormat.format ( "Expected bond ''{0}'' to be removed but it wasn''t. Removed bonds: {1}" , expectedBond , helper.getRemovedBonds ( ) ) , helper.getRemovedBonds ( ) . contains ( expectedBond ) ) ; }

Target:
private void assertBondRemoved ( org.ovirt.engine.core.bll.SetupNetworksHelper helper , java.lang.String expectedBondName ) { junit.framework.Assert.assertTrue ( java.text.MessageFormat.format ( "Expected bond ''{0}'' to be removed but it wasn''t. Removed bonds: {1}" , expectedBondName , helper.getRemovedBonds ( ) ) , helper.getRemovedBonds ( ) . contains ( expectedBondName ) ) ; }
Source:
public void testGetLastSuccessfulEngineBackupWithWrongDbName ( ) { existingEngineBackupLog = dao.getLastSuccessfulEngineBackup ( org.ovirt.engine.core.dao.EngineBackupLogDaoTest.NON_EXISTING_SCOPE ) ; org.junit.Assert.assertNull ( existingEngineBackupLog ) ; }

Target:
public void testGetLastSuccessfulEngineBackupWithWrongDbName ( ) { existingEngineBackupLog = dao.getLastSuccessfulEngineBackup ( org.ovirt.engine.core.dao.EngineBackupLogDaoTest.NON_EXISTING_SCOPE ) ; org.junit.jupiter.api.Assertions.assertNull ( existingEngineBackupLog ) ; }
Source:
public void testValidateSucceedReadOnlyWithInterface ( ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; org.mockito.Mockito.verify ( diskValidator ) . isReadOnlyPropertyCompatibleWithInterface ( ) ; }

Target:
public void testValidateSucceedReadOnlyWithInterface ( ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; org.mockito.Mockito.verify ( diskValidator ) . isReadOnlyPropertyCompatibleWithInterface ( parameters.getDiskVmElement ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid poolId , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { return getStorageDomain ( poolId , type , null ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > getStorageDomains ( org.ovirt.engine.core.compat.Guid poolId , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { return getStorageDomains ( poolId , type , null ) ; }
Source:
protected void updateDisksFromDb ( org.ovirt.engine.core.common.businessentities.VmTemplate t ) { org.ovirt.engine.core.bll.VmTemplateHandler.updateDisksFromDb ( t ) ; }

Target:
protected void updateDisksFromDb ( org.ovirt.engine.core.common.businessentities.VmTemplate t ) { vmTemplateHandler.updateDisksFromDb ( t ) ; }
Source:
public void SuccededToRunVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.businessentities.IVdsEventListener listener = _asyncRunningVms.get ( vmId ) ; if ( listener != null ) { listener.runningSucceded ( vmId ) ; } RemoveAsyncRunningVm ( vmId ) ; }

Target:
public void SuccededToRunVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid vdsId ) { if ( _asyncRunningVms.contains ( vmId ) ) { getEventListener ( ) . runningSucceded ( vmId ) ; } RemoveAsyncRunningVm ( vmId ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { if ( getSucceeded ( ) ) { return org.ovirt.engine.core.common.AuditLogType.GLUSTER_VOLUME_OPTIONS_RESET ; } else { return org.ovirt.engine.core.common.AuditLogType.GLUSTER_VOLUME_OPTIONS_RESET_FAILED ; } }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { if ( getSucceeded ( ) ) { return org.ovirt.engine.core.common.AuditLogType.GLUSTER_VOLUME_OPTIONS_RESET ; } else { return ( errorType ) == null ? org.ovirt.engine.core.common.AuditLogType.GLUSTER_VOLUME_OPTIONS_RESET_FAILED : errorType ; } }