auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook ) ( object ) ) . getServerName ( ) ; }

Target:
protected java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook hook ) { return hook.getServerName ( ) ; }
Source:
public void nullNetworkNameWhenUnlinkingSupported ( ) throws java.lang.Exception { networkNameTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , null ) ; }

Target:
public void validVnicProfileWhenUnlinkingNotSupported ( ) throws java.lang.Exception { vnicProfileTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , false , org.ovirt.engine.core.bll.validator.VmNicValidatorTest.VNIC_PROFILE_ID ) ; }
Source:
public void testGetAllNamesPinnedToHostReturnsNothingForRandomHost ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( dao.getAllNamesPinnedToHost ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) . isEmpty ( ) ) ; }

Target:
public void testGetAllNamesPinnedToHostReturnsNothingForRandomHost ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( dao.getAllNamesPinnedToHost ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) . isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getActionParameters ( ) { return this . actionParameters ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getCommandParameters ( ) { return this . commandParameters ; }
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.GlusterVolume , 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.GlusterVolume , isCaseSensitiveSearch ( ) ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }
Source:
public void testGetByNameAndDataCenter ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByNameAndDataCenter ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME , datacenter ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME , result.getName ( ) ) ; }

Target:
public void testGetByNameAndDataCenter ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByNameAndDataCenter ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME1 , datacenter ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME1 , result.getName ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StoragePool getTargetStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool targetStoragePool = org.ovirt.engine.core.bll.storage.AddStorageDomainCommand.getStoragePool ( ) ; if ( targetStoragePool == null ) { targetStoragePool = org.ovirt.engine.core.bll.storage.AddStorageDomainCommand.getStoragePoolDAO ( ) . get ( org.ovirt.engine.core.bll.storage.AddStorageDomainCommand.getVds ( ) . getStoragePoolId ( ) ) ; } return targetStoragePool ; }

Target:
private org.ovirt.engine.core.common.businessentities.StoragePool getTargetStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool targetStoragePool = org.ovirt.engine.core.bll.storage.AddStorageDomainCommand.getStoragePool ( ) ; if ( targetStoragePool == null ) { targetStoragePool = org.ovirt.engine.core.bll.storage.AddStorageDomainCommand.getStoragePoolDao ( ) . get ( org.ovirt.engine.core.bll.storage.AddStorageDomainCommand.getVds ( ) . getStoragePoolId ( ) ) ; } return targetStoragePool ; }
Source:
public void testAddGroupUsingDomainFromGroupName ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ": name=*" ) , SearchType.AdGroup , getAdGroupWithDomain ( 0 ) ) ; setUpCreationExpectations ( VdcActionType.AddUser , org.ovirt.engine.core.common.action.AddUserParameters.class , new java.lang.String [ ] { "AdGroup.id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , true , true , null , VdcQueryType.GetAdGroupById , org.ovirt.engine.core.common.queries.GetAdGroupByIdParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( ( ( ( DOMAIN ) + "/" ) + ( NAMES [ 0 ] ) ) ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; assertEquals ( 201 , response.getStatus ( ) ) ; assertTrue ( ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.model.Group ) ) ; verifyModel ( ( ( org.ovirt.engine.api.model.Group ) ( response.getEntity ( ) ) ) , 0 ) ; }

Target:
public void testAddGroupUsingDomainFromGroupName ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ": name=*" ) , SearchType.AdGroup , getAdGroupWithDomain ( 0 ) ) ; setUpCreationExpectations ( VdcActionType.AddUser , org.ovirt.engine.core.common.action.AddUserParameters.class , new java.lang.String [ ] { "AdGroup.id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , true , true , null , VdcQueryType.GetAdGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( ( ( ( DOMAIN ) + "/" ) + ( NAMES [ 0 ] ) ) ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; assertEquals ( 201 , response.getStatus ( ) ) ; assertTrue ( ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.model.Group ) ) ; verifyModel ( ( ( org.ovirt.engine.api.model.Group ) ( response.getEntity ( ) ) ) , 0 ) ; }
Source:
public void changingNetworkNotAllowed ( ) throws java.lang.Exception { mockVnicProfileNetworkChange ( DEFAULT_GUID , OTHER_GUID ) ; org.junit.Assert.assertThat ( validator.networkNotChanged ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.CANNOT_CHANGE_VNIC_PROFILE_NETWORK ) ) ; }

Target:
public void changingNetworkNotAllowed ( ) throws java.lang.Exception { mockVnicProfileNetworkChange ( DEFAULT_GUID , OTHER_GUID ) ; org.junit.Assert.assertThat ( validator.networkNotChanged ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_CHANGE_VNIC_PROFILE_NETWORK ) ) ; }
Source:
public void RemoveIrsProxy ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand._irsProxyData.get ( org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.getParameters ( ) . getStoragePoolId ( ) ) . Dispose ( ) ; org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand._irsProxyData.remove ( org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.getParameters ( ) . getStoragePoolId ( ) ) ; }

Target:
public void removeIrsProxy ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand._irsProxyData.get ( org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.getParameters ( ) . getStoragePoolId ( ) ) . dispose ( ) ; org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand._irsProxyData.remove ( org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.getParameters ( ) . getStoragePoolId ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = prepareDAO ( dbFacade.getPermissionDAO ( ) ) ; new_permissions = new org.ovirt.engine.core.common.businessentities.permissions ( org.ovirt.engine.core.dao.PermissionDAOTest.AD_ELEMENT_ID , org.ovirt.engine.core.dao.PermissionDAOTest.ROLE_ID , org.ovirt.engine.core.dao.PermissionDAOTest.STORAGE_POOL_ID , org.ovirt.engine.core.common.VdcObjectType.StoragePool ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = prepareDAO ( dbFacade.getPermissionDao ( ) ) ; new_permissions = new org.ovirt.engine.core.common.businessentities.permissions ( org.ovirt.engine.core.dao.PermissionDAOTest.AD_ELEMENT_ID , org.ovirt.engine.core.dao.PermissionDAOTest.ROLE_ID , org.ovirt.engine.core.dao.PermissionDAOTest.STORAGE_POOL_ID , org.ovirt.engine.core.common.VdcObjectType.StoragePool ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult vmNotIlegal ( ) { if ( ( vm.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.ImageIllegal ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VM_IMAGE_IS_ILLEGAL ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult vmNotIlegal ( ) { if ( ( vm.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.ImageIllegal ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_VM_IMAGE_IS_ILLEGAL ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public static boolean IsVmAttachedToTag ( org.ovirt.engine.core.bll.Guid tagId , org.ovirt.engine.core.bll.Guid vmId ) { return ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getTagDao ( ) . getAllVmTagsWithIds ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagIdAndChildrenIds ( tagId ) ) . size ( ) ) != 0 ; }

Target:
public static boolean IsVdsAttachedToTag ( org.ovirt.engine.core.compat.Guid tagId , int vdsId ) { return ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . getAllForVdsWithIds ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagIdAndChildrenIds ( tagId ) ) . size ( ) ) != 0 ; }
Source:
private void saveTaskAndPutInMap ( java.lang.String taskKey , org.ovirt.engine.core.common.businessentities.AsyncTasks task ) { org.ovirt.engine.core.bll.CommandBase.getAsyncTaskDao ( ) . save ( task ) ; taskKeyToTaskIdMap.put ( taskKey , task.getTaskId ( ) ) ; }

Target:
private void saveTaskAndPutInMap ( java.lang.String taskKey , org.ovirt.engine.core.common.businessentities.AsyncTasks task ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.saveAsyncTaskToDb ( task ) ; taskKeyToTaskIdMap.put ( taskKey , task.getTaskId ( ) ) ; }
Source:
public void switchTab ( org.ovirt.engine.ui.common.widget.dialog.tab.DialogTab tab ) { setActiveTab ( tab ) ; setTabContent ( tab.getContent ( ) ) ; }

Target:
public void setNavStyle ( java.lang.String styleName ) { navTabs.addStyleName ( styleName ) ; }
Source:
public void canDoActionSucceedsInitFormatExportDomain ( ) { sd.setStorageFormat ( null ) ; sd.setStorageDomainType ( StorageDomainType.ImportExport ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; org.junit.Assert.assertEquals ( "Format not initialized correctly" , StorageFormatType.V1 , sd.getStorageFormat ( ) ) ; }

Target:
public void validateSucceedsInitFormatExportDomain ( ) { sd.setStorageFormat ( null ) ; sd.setStorageDomainType ( StorageDomainType.ImportExport ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; org.junit.Assert.assertEquals ( "Format not initialized correctly" , StorageFormatType.V1 , sd.getStorageFormat ( ) ) ; }
Source:
public void setfail_back ( boolean value ) { this . mVmStatic.setfail_back ( value ) ; }

Target:
public java.lang.String getVdsGroupCpuName ( ) { return this . vdsGroupCpuName ; }
Source:
protected int getBlockSparseInitSizeInGB ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.InitStorageSparseSizeInGB ) . intValue ( ) ; }

Target:
protected int getBlockSparseInitSizeInGb ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.InitStorageSparseSizeInGB ) . intValue ( ) ; }
Source:
private boolean checkProtocolTofallback ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return VdsProtocol.STOMP.equals ( vds.getProtocol ( ) ) ; }

Target:
private void markCurrentCmdlineAsStored ( ) { final org.ovirt.engine.core.common.businessentities.VdsStatic vdsStatic = org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand.getVds ( ) . getStaticData ( ) ; org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand.getVdsStaticDao ( ) . updateLastStoredKernelCmdline ( vdsStatic.getId ( ) , vdsStatic.getCurrentKernelCmdline ( ) ) ; }
Source:
public void testGetValidatorWithOutKey ( ) { org.ovirt.engine.core.config.EngineConfigMap engineConfigMap = org.mockito.Mockito.mock ( org.ovirt.engine.core.config.EngineConfigMap.class ) ; org.ovirt.engine.core.config.validation.ConfigActionType setAction = org.ovirt.engine.core.config.validation.ConfigActionType.ACTION_GET ; setAction.validate ( engineConfigMap ) ; }

Target:
public void testGetValidatorWithOutKey ( ) { org.ovirt.engine.core.config.EngineConfigMap engineConfigMap = org.mockito.Mockito.mock ( org.ovirt.engine.core.config.EngineConfigMap.class ) ; org.ovirt.engine.core.config.validation.ConfigActionType setAction = org.ovirt.engine.core.config.validation.ConfigActionType.ACTION_GET ; org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> setAction.validate ( engineConfigMap ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAllByVMName ( java.lang.String vmName ) { return getAllByVMName ( vmName , null , false ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAllByVMId ( org.ovirt.engine.core.compat.Guid vmId ) { return getAllByVMId ( vmId , null , false ) ; }
Source:
private boolean verifyCanDoActionMessagesContainMessage ( org.ovirt.engine.core.dal.VdcBllMessages message ) { return command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( message.toString ( ) ) ; }

Target:
private boolean verifyCanDoActionMessagesContainMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages message ) { return command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( message.toString ( ) ) ; }
Source:
public void testGetAllForNetwork ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfile > result = dao.getAllForNetwork ( FixturesTool.NETWORK_ENGINE ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 2 , result.size ( ) ) ; }

Target:
public void testGetAllForNetwork ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfile > result = dao.getAllForNetwork ( FixturesTool.NETWORK_ENGINE ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( 2 , result.size ( ) ) ; }
Source:
public void testPatternBasedNameFails ( ) { initializeMock ( 1 ) ; cmd.getParameters ( ) . getVm ( ) . setName ( "aa-??bb" ) ; org.junit.Assert.assertFalse ( "Pattern-based name should not be supported for VM" , cmd.validateInputs ( ) ) ; }

Target:
public void testBeanValidations ( ) { initializeMock ( ) ; org.junit.Assert.assertTrue ( cmd.validateInputs ( ) ) ; }
Source:
public void setStatusAvailable ( boolean isStatusAvailable ) { this . isStatusAvailable = isStatusAvailable ; if ( isStatusAvailable == true ) { onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IS_STATUS_APPLICABLE" ) ) ; } }

Target:
public void setStatusAvailable ( boolean isStatusAvailable ) { this . isStatusAvailable = isStatusAvailable ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "STATUS_UPDATED" ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StoragePool getForVdsGroup ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "clusterId" , id ) ; return getCallsHandler ( ) . executeRead ( "Getstorage_poolsByVdsGroupId" , org.ovirt.engine.core.dao.StoragePoolDaoImpl.mapper , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StoragePool getForCluster ( org.ovirt.engine.core.compat.Guid cluster ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "clusterId" , cluster ) ; return getCallsHandler ( ) . executeRead ( "Getstorage_poolsByClusterId" , org.ovirt.engine.core.dao.StoragePoolDaoImpl.mapper , parameterSource ) ; }
Source:
protected void init ( ) { super . init ( ) ; hooksResourceMock = control.createMock ( org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterHooksResource.class ) ; resource.setParent ( hooksResourceMock ) ; }

Target:
protected void init ( ) { super . init ( ) ; hooksResourceMock = org.mockito.Mockito.mock ( org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterHooksResource.class ) ; resource.setParent ( hooksResourceMock ) ; }
Source:
public static void hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.ui.frontend.AsyncQuery callback ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.OsRepository , new org.ovirt.engine.core.common.queries.OsQueryParameters ( org.ovirt.engine.core.common.queries.OsQueryParameters.OsRepositoryVerb.HasSpiceSupport , osId , version ) , callback ) ; }

Target:
public static void getVmWatchdogTypes ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.OsRepository , new org.ovirt.engine.core.common.queries.OsQueryParameters ( org.ovirt.engine.core.common.queries.OsQueryParameters.OsRepositoryVerb.GetVmWatchdogTypes , osId , version ) , asyncQuery ) ; }
Source:
public static void removeCommand ( org.ovirt.engine.core.compat.Guid commandId ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.removeCommand ( commandId ) ; }

Target:
public static void removeCommand ( org.ovirt.engine.core.compat.Guid commandId ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.removeCommand ( commandId ) ; }
Source:
private int generateMaxLength ( ) { return doGenerateMaxLength ( getMaxNameLength ( ) , getPoolName ( ) . length ( ) ) ; }

Target:
private int generateMaxNumOfVmsWithQuestionMark ( ) { return doGenerateMaxNumOfVmsWithQuestionMark ( getMaxNameLength ( ) , getPoolName ( ) . length ( ) , getQuestionMarksCount ( ) ) ; }
Source:
private void initDataForClearTest ( java.lang.String key ) { container.setData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , key , org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.DbUser.class ) ) ; container.setData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.SOFT_LIMIT , org.apache.commons.lang.time.DateUtils.addMinutes ( new java.util.Date ( ) , ( - 1 ) ) ) ; }

Target:
private void initDataForClearTest ( java.lang.String key ) { container.setData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , key , org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.aaa.DbUser.class ) ) ; container.setData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.SOFT_LIMIT , org.apache.commons.lang.time.DateUtils.addMinutes ( new java.util.Date ( ) , ( - 1 ) ) ) ; }
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 networkChanged ( ) throws java.lang.Exception { mockVnicProfileNetworkChange ( org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID ) ; org.junit.Assert.assertThat ( validator.networkNotChanged ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "url" , getUrl ( ) ) . append ( "storagePoolId" , getStoragePoolId ( ) ) . append ( "proxyHostId" , getProxyHostId ( ) ) . build ( ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder getToStringBuilder ( ) { return super . getToStringBuilder ( ) . append ( "url" , getUrl ( ) ) ; }
Source:
private boolean hasVMs ( ) { return ! ( org.ovirt.engine.core.bll.ClearNonResponsiveVdsVmsCommand.getVmDynamicDao ( ) . getAllRunningForVds ( org.ovirt.engine.core.bll.ClearNonResponsiveVdsVmsCommand.getVdsId ( ) ) . isEmpty ( ) ) ; }

Target:
private boolean hasVMs ( ) { return ! ( vmDynamicDao.getAllRunningForVds ( org.ovirt.engine.core.bll.ClearNonResponsiveVdsVmsCommand.getVdsId ( ) ) . isEmpty ( ) ) ; }
Source:
public void testIsDomainExistAndActiveDomainNotUp ( ) { domain.setStatus ( StorageDomainStatus.InActive ) ; org.junit.Assert.assertEquals ( "Wrong failure for inactive domain" , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL , validator.isDomainExistAndActive ( ) . getMessage ( ) ) ; }

Target:
public void testIsDomainExistAndActiveDomainNotUp ( ) { domain.setStatus ( StorageDomainStatus.InActive ) ; org.junit.Assert.assertEquals ( "Wrong failure for inactive domain" , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 , validator.isDomainExistAndActive ( ) . getMessage ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand RemoveAsyncRunningCommand ( org.ovirt.engine.core.compat.Guid vmId ) { return _asyncRunningCommands.remove ( vmId ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand removeAsyncRunningCommand ( org.ovirt.engine.core.compat.Guid vmId ) { return _asyncRunningCommands.remove ( vmId ) ; }
Source:
public void testStorageDomainForMemoryIsValid ( ) { org.junit.Assert.assertTrue ( filter.getPredicate ( memoryDisks ) . eval ( storageDomain ) ) ; }

Target:
public void testStorageDomainForMemoryIsValid ( ) { org.junit.Assert.assertTrue ( filter.getPredicate ( memoryDisks ) . test ( storageDomain ) ) ; }
Source:
public void testLoginNameAtDirectoryWhenDirectorySet ( ) { org.ovirt.engine.core.common.users.VdcUser user = new org.ovirt.engine.core.common.users.VdcUser ( ) ; user.setUserName ( "Legolas" ) ; user.setDomainControler ( "MiddleEarth.com" ) ; command.setCurrentUser ( user ) ; junit.framework.Assert.assertEquals ( command.getConsoleUserName ( ) , "Legolas@MiddleEarth.com" ) ; }

Target:
public void testLoginNameAtDirectoryWhenDirectorySet ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = new org.ovirt.engine.core.common.businessentities.DbUser ( ) ; user.setLoginName ( "Legolas" ) ; user.setDomain ( "MiddleEarth.com" ) ; command.setCurrentUser ( user ) ; junit.framework.Assert.assertEquals ( command.getConsoleUserName ( ) , "Legolas@MiddleEarth.com" ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , diskImages , lunDisks , interfaces , vmBase , clusterName , affinityGroups , dbUsers , userToRoles ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , diskImages , lunDisks , interfaces , vmBase , clusterName , affinityGroups , dbUsers , userToRoles , affinityLabelsNames ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml statusTemplate ( com.google.gwt.safehtml.shared.SafeHtml statusImage ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml statusTemplate ( com.google.gwt.safehtml.shared.SafeHtml statusImage , java.lang.String title ) ;
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAll ( ) { org.apache.commons.httpclient.HttpMethod method = new org.apache.commons.httpclient.methods.GetMethod ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.ALL_HOSTS_QUERY ) ; return runHostListMethod ( method ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.ExternalDiscoveredHost > getDiscoveredHosts ( ) { return runDiscoveredHostListMethod ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.DISCOVERED_HOSTS_ENTRY_POINT ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.aaa.DbUser findPrincipal ( java.lang.String sessionId ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue result = backend.runPublicQuery ( QueryType.GetDbUserBySession , new org.ovirt.engine.core.common.queries.QueryParametersBase ( sessionId ) ) ; return result.getReturnValue ( ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.aaa.DbUser findPrincipal ( java.lang.String sessionId ) { org.ovirt.engine.core.common.queries.QueryReturnValue result = backend.runPublicQuery ( QueryType.GetDbUserBySession , new org.ovirt.engine.core.common.queries.QueryParametersBase ( sessionId ) ) ; return result.getReturnValue ( ) ; }
Source:
public static org.ovirt.vdsm.jsonrpc.client.reactors.Reactor getReactor ( org.ovirt.vdsm.jsonrpc.client.reactors.ManagerProvider provider , org.ovirt.vdsm.jsonrpc.client.reactors.ReactorType type ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { if ( ReactorType.STOMP.equals ( type ) ) { return org.ovirt.vdsm.jsonrpc.client.reactors.ReactorFactory.getStompReactor ( provider ) ; } else { return null ; } }

Target:
public static org.ovirt.vdsm.jsonrpc.client.reactors.Reactor getReactor ( org.ovirt.vdsm.jsonrpc.client.reactors.ManagerProvider provider , org.ovirt.vdsm.jsonrpc.client.reactors.ReactorType type ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { if ( ReactorType.STOMP.equals ( type ) ) { return org.ovirt.vdsm.jsonrpc.client.reactors.ReactorFactory.getStompReactor ( provider ) ; } else { throw new org.ovirt.vdsm.jsonrpc.client.ClientConnectionException ( "Unrecognized reactor type" ) ; } }
Source:
public java.util.Map < java.lang.String , java.lang.Object > getDeviceList ( int storageType , java.lang.String [ ] devicesList ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > getDeviceList ( int storageType , java.lang.String [ ] devicesList , boolean checkStatus ) ;
Source:
public org.ovirt.engine.core.utils.Deserializer createDeserializer ( ) { return new org.ovirt.engine.core.utils.serialization.json.JsonObjectDeserializer ( ) ; }

Target:
public static org.ovirt.engine.core.utils.serialization.json.JsonObjectDeserializer getDeserializer ( ) { return org.ovirt.engine.core.utils.SerializationFactory.deserializer ; }
Source:
public org.ovirt.engine.api.resource.TemplateDiskResource getDeviceResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateDiskResource ( asGuidOr404 ( id ) , this ) ) ; }

Target:
public org.ovirt.engine.api.model.Disks list ( ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetVmTemplatesDisks , new org.ovirt.engine.core.common.queries.IdQueryParameters ( templateId ) ) ) ; }
Source:
public java.lang.Integer getutc_diff ( ) { return this . utcDiff ; }

Target:
public java.lang.Integer getUtcDiff ( ) { return this . utcDiff ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > getLogicalUnits ( ) { boolean reportStatus = org.ovirt.engine.api.common.util.ParametersHelper.getBooleanParameter ( httpHeaders , uriInfo , org.ovirt.engine.api.restapi.resource.BackendHostStorageResource.REPORT_STATUS , true , true ) ; return getBackendCollection ( VdcQueryType.GetDeviceList , new org.ovirt.engine.core.common.queries.GetDeviceListQueryParameters ( asGuid ( hostId ) , org.ovirt.engine.core.common.businessentities.storage.StorageType.UNKNOWN , reportStatus , null ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > getLogicalUnits ( ) { boolean reportStatus = org.ovirt.engine.api.restapi.util.ParametersHelper.getBooleanParameter ( httpHeaders , uriInfo , org.ovirt.engine.api.restapi.resource.BackendHostStorageResource.REPORT_STATUS , true , true ) ; return getBackendCollection ( VdcQueryType.GetDeviceList , new org.ovirt.engine.core.common.queries.GetDeviceListQueryParameters ( asGuid ( hostId ) , org.ovirt.engine.core.common.businessentities.storage.StorageType.UNKNOWN , reportStatus , null ) ) ; }
Source:
private boolean isSameSourceAndDest ( org.ovirt.engine.core.common.action.LiveMigrateDiskParameters parameters ) { if ( parameters.getSourceStorageDomainId ( ) . equals ( parameters.getTargetStorageDomainId ( ) ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_SOURCE_AND_TARGET_SAME ) ; } return true ; }

Target:
private boolean isSameSourceAndDest ( org.ovirt.engine.core.common.action.LiveMigrateDiskParameters parameters ) { if ( parameters.getSourceStorageDomainId ( ) . equals ( parameters.getTargetStorageDomainId ( ) ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_SOURCE_AND_TARGET_SAME ) ; } return true ; }
Source:
public boolean isExternal ( ) { return getEntity ( ) . isExternal ( ) ; }

Target:
public boolean isRequired ( ) { return getEntity ( ) . getCluster ( ) . isRequired ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { onGetClusterList ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Cluster > ) ( ReturnValue ) ) ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > clusters ) { onGetClusterList ( clusters ) ; }
Source:
public void noStpWhenNonVmNetwork ( ) throws java.lang.Exception { stpTest ( ValidationResult.VALID , false , false ) ; }

Target:
public void noStpWhenNonVmNetwork ( ) throws java.lang.Exception { stpTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , false , false ) ; }
Source:
public int getread_rate ( ) { return this . readRateFromDiskImageDynamic ; }

Target:
public int getReadRate ( ) { return readRateFromDiskImageDynamic ; }
Source:
protected boolean checkIfCpusSameManufacture ( org.ovirt.engine.core.common.businessentities.VDSGroup group ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CheckIfCpusSameManufacture ( group.getcpu_name ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcpu_name ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcompatibility_version ( ) ) ; }

Target:
protected boolean checkIfCpusSameManufacture ( org.ovirt.engine.core.common.businessentities.VDSGroup group ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.checkIfCpusSameManufacture ( group.getCpuName ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCpuName ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }
Source:
public org.ovirt.engine.api.model.Quotas list ( ) { if ( isFiltered ( ) ) { return null ; } else { org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) ; return mapCollection ( getBackendCollection ( VdcQueryType.GetQuotaByStoragePoolId , params ) ) ; } }

Target:
public org.ovirt.engine.api.model.Quotas list ( ) { if ( isFiltered ( ) ) { return null ; } else { org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) ; return mapCollection ( getBackendCollection ( QueryType.GetQuotaByStoragePoolId , params ) ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getConnectableStorageConnectionsByStorageType ( org.ovirt.engine.core.compat.Guid pool , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { return getStorageConnectionsByStorageTypeAndStatus ( pool , storageType , java.util.EnumSet.of ( StorageDomainStatus.Active , StorageDomainStatus.Inactive , StorageDomainStatus.Unknown ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getConnectableStorageConnectionsByStorageType ( org.ovirt.engine.core.compat.Guid pool , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { return getStorageConnectionsByStorageTypeAndStatus ( pool , storageType , java.util.EnumSet.of ( StorageDomainStatus.Active , StorageDomainStatus.Inactive , StorageDomainStatus.Unknown ) ) ; }
Source:
public javax.ws.rs.core.Response performRemove ( java.lang.String id ) { return performAction ( VdcActionType.RemoveVds , new org.ovirt.engine.core.common.action.VdsActionParameters ( asGuid ( id ) ) ) ; }

Target:
public javax.ws.rs.core.Response performRemove ( java.lang.String id ) { return performAction ( VdcActionType.RemoveVds , new org.ovirt.engine.core.common.action.RemoveVdsParameters ( asGuid ( id ) ) ) ; }
Source:
public void testAlreadyExistStorageDomain ( ) { org.mockito.Mockito.when ( command.getStorageDomainStaticDao ( ) . get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( parameters.getStorageDomain ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_ALREADY_EXIST ) ; }

Target:
public void testAlreadyExistStorageDomain ( ) { org.mockito.Mockito.when ( command.getStorageDomainStaticDao ( ) . get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( parameters.getStorageDomain ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_ALREADY_EXIST ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( command.getName ( ) , "Cancel" ) ) { Cancel ( ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( command.getName ( ) , "Cancel" ) ) { cancel ( ) ; } }
Source:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup.getCompatibilityVersion ( ) ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyUsbTypeLegacy ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) , UsbPolicy.ENABLED_LEGACY ) ; }
Source:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; getBrickListModel ( ) . setEntity ( provideDetailModelEntity ( getSelectedItem ( ) ) ) ; }
Source:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { commandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }

Target:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { auditLogDirector.log ( commandCoordinatorUtil.retrieveCommand ( cmdId ) , AuditLogType.HOST_UPGRADE_FAILED ) ; commandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }
Source:
public boolean connectToServer ( java.lang.String server , java.lang.String passwd , long timeout ) { return wrapper.ConnectToServer ( server , passwd , timeout ) ; }

Target:
public boolean connectToServer ( java.lang.String server , java.lang.String passwd , long timeout ) { return wrapper.connect ( server , passwd , timeout ) ; }
Source:
public void setConsoleAddressPartiallyOverridden ( java.lang.Boolean consoleAddressPartiallyOverridden ) { if ( ( this . consoleAddressPartiallyOverridden ) != consoleAddressPartiallyOverridden ) { this . consoleAddressPartiallyOverridden = consoleAddressPartiallyOverridden ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "consoleAddressPartiallyOverridden" ) ) ; } }

Target:
public void setConsoleAddressPartiallyOverridden ( java.lang.Boolean consoleAddressPartiallyOverridden ) { if ( ( this . consoleAddressPartiallyOverridden ) != consoleAddressPartiallyOverridden ) { this . consoleAddressPartiallyOverridden = consoleAddressPartiallyOverridden ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "consoleAddressPartiallyOverridden" ) ) ; } }
Source:
public void fatalFormat ( java.lang.String formatString , java.lang.Object ... args ) { java.lang.Throwable throwable = extractException ( args ) ; if ( throwable != null ) error ( transform ( formatString , args ) , throwable ) ; else error ( transform ( formatString , args ) ) ; }

Target:
public void fatalFormat ( java.lang.String formatString , java.lang.Object ... args ) { errorFormat ( formatString , args ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) ; } return source ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.provider.network.NetworkProviderProxy proxy = org.ovirt.engine.core.bll.provider.ProviderProxyFactory.getInstance ( ) . create ( getProvider ( ) ) ; getSubnet ( ) . setExternalNetwork ( getExternalNetwork ( ) ) ; proxy.addSubnet ( getSubnet ( ) ) ; org.ovirt.engine.core.bll.provider.network.AddSubnetToProviderCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.provider.network.NetworkProviderProxy proxy = providerProxyFactory.create ( getProvider ( ) ) ; getSubnet ( ) . setExternalNetwork ( getExternalNetwork ( ) ) ; proxy.addSubnet ( getSubnet ( ) ) ; org.ovirt.engine.core.bll.provider.network.AddSubnetToProviderCommand.setSucceeded ( true ) ; }
Source:
public void canDoActionFailedVMNotFound ( ) throws java.lang.Exception { mockNullVm ( ) ; org.junit.Assert.assertFalse ( command.canDoAction ( ) ) ; org.junit.Assert.assertTrue ( command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND.toString ( ) ) ) ; }

Target:
public void validateFailedVMNotFound ( ) throws java.lang.Exception { mockNullVm ( ) ; org.junit.Assert.assertFalse ( command.validate ( ) ) ; org.junit.Assert.assertTrue ( command.getReturnValue ( ) . getValidationMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND.toString ( ) ) ) ; }
Source:
public void testExistsExisting ( ) { org.junit.Assert.assertTrue ( prepareDao ( ) . exists ( org.ovirt.engine.core.dao.VmIconDaoTest.UNUSED_ICON_ID ) ) ; }

Target:
public void testRemoveIfUnusedWithUnused ( ) { dao.removeIfUnused ( org.ovirt.engine.core.dao.VmIconDaoTest.UNUSED_ICON_ID ) ; final org.ovirt.engine.core.common.businessentities.VmIcon nothing = dao.get ( org.ovirt.engine.core.dao.VmIconDaoTest.UNUSED_ICON_ID ) ; org.junit.Assert.assertNull ( nothing ) ; }
Source:
public void loadService ( java.lang.Class < ? extends org.ovirt.engine.core.common.BackendService > service ) { org.ovirt.engine.core.common.BackendService backendService = services.select ( service ) . get ( ) ; org.ovirt.engine.core.bll.ServiceLoader.log.info ( "Start " , backendService ) ; }

Target:
public void load ( java.lang.Class < ? extends org.ovirt.engine.core.common.BackendService > service ) { org.ovirt.engine.core.common.BackendService backendService = services.select ( service ) . get ( ) ; org.ovirt.engine.core.bll.ServiceLoader.log.info ( "Start " , backendService ) ; }
Source:
public void snapshotNotBrokenReturnsValidResult ( ) throws java.lang.Exception { validateValidResult ( validator.snapshotNotBroken ( new org.ovirt.engine.core.common.businessentities.Snapshot ( ) ) ) ; }

Target:
public void snapshotNotBrokenReturnsValidResult ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateValidResult ( validator.snapshotNotBroken ( new org.ovirt.engine.core.common.businessentities.Snapshot ( ) ) ) ; }
Source:
static org.ovirt.engine.core.common.businessentities.StorageServerConnections setUpStorageServerConnection ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections cnx = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; cnx.setid ( GUIDS [ 0 ] . toString ( ) ) ; cnx.setconnection ( ( "10.11.12.13" + ( ":" + "/1" ) ) ) ; return cnx ; }

Target:
static org.ovirt.engine.core.common.businessentities.StorageServerConnections setUpStorageServerConnection ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections cnx = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; cnx.setId ( GUIDS [ 0 ] . toString ( ) ) ; cnx.setConnection ( ( "10.11.12.13" + ( ":" + "/1" ) ) ) ; return cnx ; }
Source:
protected void SelectedItemsChanged ( ) { super . SelectedItemsChanged ( ) ; UpdateActionAvailability ( ) ; UpdateConsoleModels ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol resolveSelectedProtocol ( org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel item ) { return consoleModelsCache.resolveUserSelectedProtocol ( item ) ; }
Source:
public void qosDoesNotExist ( ) { qos.setId ( org.ovirt.engine.core.bll.validator.NetworkQosValidatorTest.DEFAULT_GUID ) ; org.mockito.Mockito.doReturn ( null ) . when ( validator ) . getOldQos ( ) ; qosExistsTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_QOS_NOT_FOUND ) , validator ) ; }

Target:
public void qosDoesNotExist ( ) { qos.setId ( org.ovirt.engine.core.bll.validator.NetworkQosValidatorTest.DEFAULT_GUID ) ; org.mockito.Mockito.doReturn ( null ) . when ( validator ) . getOldQos ( ) ; qosExistsTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_QOS_NOT_FOUND ) , validator ) ; }
Source:
protected void orderListOfRunningVmsOnVds ( org.ovirt.engine.core.compat.Guid vdsId ) { vms = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDao ( ) . getAllRunningForVds ( vdsId ) ; java.util.Collections.sort ( vms , java.util.Collections.reverseOrder ( new org.ovirt.engine.core.common.businessentities.VmsComparer ( ) ) ) ; }

Target:
protected void orderListOfRunningVmsOnVds ( org.ovirt.engine.core.compat.Guid vdsId ) { vms = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDao ( ) . getAllRunningForVds ( vdsId ) ; java.util.Collections.sort ( vms , java.util.Collections.reverseOrder ( new org.ovirt.engine.core.common.businessentities.comparators.VmsComparer ( ) ) ) ; }
Source:
private void addPermission ( ) { addPermissionForTempalte ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getCurrentUser ( ) . getUserId ( ) , PredefinedRoles.TEMPLATE_OWNER ) ; if ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getParameters ( ) . isPublicUse ( ) ) { addPermissionForTempalte ( MultiLevelAdministrationHandler.EVERYONE_OBJECT_ID , PredefinedRoles.TEMPLATE_USER ) ; } }

Target:
private void addPermission ( ) { addPermissionForTemplate ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getCurrentUser ( ) . getUserId ( ) , PredefinedRoles.TEMPLATE_OWNER ) ; if ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getParameters ( ) . isPublicUse ( ) ) { addPermissionForTemplate ( MultiLevelAdministrationHandler.EVERYONE_OBJECT_ID , PredefinedRoles.TEMPLATE_USER ) ; } }
Source:
void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { controller.setColumnVisible ( column , checkBox.getValue ( ) ) ; }

Target:
void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { boolean visible = checkBox.getValue ( ) ; controller.setColumnVisible ( column , visible ) ; }
Source:
void onChangeProhibitionReasonChange ( org.ovirt.engine.ui.common.widget.HasEnabledWithHints editor , org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { if ( ! ( editor.isEnabled ( ) ) ) { editor.disable ( model.getChangeProhibitionReason ( ) ) ; } }

Target:
void onChangeProhibitionReasonChange ( org.ovirt.engine.ui.common.widget.HasEnabledWithHints editor , org.ovirt.engine.ui.uicommonweb.models.Model model ) { if ( ! ( editor.isEnabled ( ) ) ) { editor.disable ( model.getChangeProhibitionReason ( ) ) ; } }
Source:
protected java.lang.String defaultImageName ( java.lang.Integer value ) { return ( "OtherOs" + ( nameUniquePart ) ) + ( org.ovirt.engine.ui.userportal.widget.basic.OsTypeImage.IMAGE ) ; }

Target:
protected java.lang.String defaultImageName ( java.lang.Integer value ) { return ( "other" + ( nameUniquePart ) ) + ( org.ovirt.engine.ui.userportal.widget.basic.OsTypeImage.IMAGE ) ; }
Source:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup ) { return vdsGroup.getName ( ) ; }

Target:
private void initListBoxEditors ( ) { dataCenterEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NameRenderer < org.ovirt.engine.core.common.businessentities.StoragePool > ( ) ) ; clusterEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NameRenderer < org.ovirt.engine.core.common.businessentities.VDSGroup > ( ) ) ; typeListEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.EnumRenderer < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType > ( ) ) ; }
Source:
public void sendMessage ( byte [ ] message ) { send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message ( ) . send ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_DESTINATION , org.ovirt.vdsm.jsonrpc.client.reactors.stomp.REQUEST_QUEUE ) . withContent ( message ) . build ( ) ) ; }

Target:
public void sendMessage ( byte [ ] message ) { send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message ( ) . send ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_DESTINATION , this . getRequestQueue ( ) ) . withContent ( message ) . build ( ) ) ; }
Source:
public java.lang.Boolean convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return ( ( java.lang.Boolean ) ( returnValue ) ) ; }

Target:
public void getStorageDomainDefaultWipeAfterDelete ( org.ovirt.engine.ui.frontend.AsyncQuery < java.lang.Boolean > aQuery , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.core.common.queries.GetStorageDomainDefaultWipeAfterDeleteParameters params = new org.ovirt.engine.core.common.queries.GetStorageDomainDefaultWipeAfterDeleteParameters ( storageType ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetStorageDomainDefaultWipeAfterDelete , params , aQuery ) ; }