From 80554ac4be046afaac167a309e94c7c5f3cf3405 Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Wed, 22 Dec 2010 15:02:41 +0000 Subject: [PATCH] SONAR-1722 increase the size of RULES_PROFILES.PARENT_NAME (same as NAME) + change the type of ACTIVE_RULES.INHERITANCE --- .../shouldAddActiveRulesToProfile-result.xml | 2 +- .../java/org/sonar/api/rules/ActiveRule.java | 26 +++++++++----- .../rules/ActiveRuleInheritanceStatus.java | 33 ------------------ .../server/configuration/ProfilesBackup.java | 14 ++++---- .../server/configuration/ProfilesManager.java | 20 +++++------ .../webapp/WEB-INF/app/models/active_rule.rb | 6 ++-- .../views/rules_configuration/_rule.html.erb | 10 +++--- ...69_add_columns_for_profiles_inheritance.rb | 7 ++-- .../src/main/webapp/images/inherited.png | Bin 0 -> 510 bytes .../src/main/webapp/images/overrides.png | Bin 0 -> 520 bytes .../server/configuration/BackupTest.java | 9 ++--- .../BackupTest/backup-restore-valid.xml | 3 +- .../configuration/BackupTest/backup-valid.xml | 3 +- .../shouldActivateInChildren-result.xml | 4 +-- .../shouldActivateInChildren.xml | 2 +- .../shouldChangeParent-result.xml | 6 ++-- .../shouldChangeParent.xml | 6 ++-- .../shouldDeactivateInChildren-result.xml | 2 +- .../shouldDeactivateInChildren.xml | 4 +-- .../shouldRemoveParent-result.xml | 2 +- .../shouldRemoveParent.xml | 4 +-- .../shouldSetParent-result.xml | 4 +-- .../InheritedProfilesTest/shouldSetParent.xml | 2 +- 23 files changed, 72 insertions(+), 97 deletions(-) delete mode 100644 sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleInheritanceStatus.java create mode 100644 sonar-server/src/main/webapp/images/inherited.png create mode 100644 sonar-server/src/main/webapp/images/overrides.png diff --git a/sonar-core/src/test/resources/org/sonar/jpa/dao/RulesDaoTest/shouldAddActiveRulesToProfile-result.xml b/sonar-core/src/test/resources/org/sonar/jpa/dao/RulesDaoTest/shouldAddActiveRulesToProfile-result.xml index 808647dd2aa..cd31402ceb1 100644 --- a/sonar-core/src/test/resources/org/sonar/jpa/dao/RulesDaoTest/shouldAddActiveRulesToProfile-result.xml +++ b/sonar-core/src/test/resources/org/sonar/jpa/dao/RulesDaoTest/shouldAddActiveRulesToProfile-result.xml @@ -10,7 +10,7 @@ - + diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java index 1ebab335157..c2d33ec2eb5 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java @@ -37,6 +37,9 @@ import javax.persistence.*; @Table(name = "active_rules") public class ActiveRule implements Cloneable { + public static final String INHERITED = "INHERITED"; + public static final String OVERRIDES = "OVERRIDES"; + @Id @Column(name = "id") @GeneratedValue @@ -57,9 +60,8 @@ public class ActiveRule implements Cloneable { @OneToMany(mappedBy = "activeRule", fetch = FetchType.LAZY, cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REMOVE }) private List activeRuleParams = new ArrayList(); - @Column(name = "inherited", updatable = true, nullable = true) - @Enumerated(EnumType.ORDINAL) - private ActiveRuleInheritanceStatus inherited = ActiveRuleInheritanceStatus.NO; + @Column(name = "inheritance", updatable = true, nullable = true) + private String inheritance; /** * @deprecated visibility should be reduced to protected or package @@ -92,8 +94,8 @@ public class ActiveRule implements Cloneable { * * @since 2.5 */ - public ActiveRuleInheritanceStatus getInheritanceStatus() { - return inherited == null ? ActiveRuleInheritanceStatus.NO : inherited; + public String getInheritance() { + return inheritance; } /** @@ -101,8 +103,16 @@ public class ActiveRule implements Cloneable { * * @since 2.5 */ - public void setInheritanceStatus(ActiveRuleInheritanceStatus status) { - this.inherited = status; + public void setInheritance(String s) { + this.inheritance = s; + } + + public boolean isInherited() { + return StringUtils.equals(INHERITED, inheritance); + } + + public boolean doesOverride() { + return StringUtils.equals(OVERRIDES, inheritance); } /** @@ -259,7 +269,7 @@ public class ActiveRule implements Cloneable { @Override public Object clone() { final ActiveRule clone = new ActiveRule(getRulesProfile(), getRule(), getSeverity()); - clone.setInheritanceStatus(getInheritanceStatus()); + clone.setInheritance(getInheritance()); if (CollectionUtils.isNotEmpty(getActiveRuleParams())) { clone.setActiveRuleParams(new ArrayList(CollectionUtils.collect(getActiveRuleParams(), new Transformer() { public Object transform(Object input) { diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleInheritanceStatus.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleInheritanceStatus.java deleted file mode 100644 index 27c7e413bc0..00000000000 --- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleInheritanceStatus.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2009 SonarSource SA - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.api.rules; - -/** - * For internal use only. - * - * @since 2.5 - */ -public enum ActiveRuleInheritanceStatus { - /** - * WARNING : DO NOT CHANGE THE ENUMERATION ORDER - * the enum ordinal is used for db persistence - */ - NO, INHERITED, OVERRIDDEN -} diff --git a/sonar-server/src/main/java/org/sonar/server/configuration/ProfilesBackup.java b/sonar-server/src/main/java/org/sonar/server/configuration/ProfilesBackup.java index 2ca434ee7ee..854ef5c8594 100644 --- a/sonar-server/src/main/java/org/sonar/server/configuration/ProfilesBackup.java +++ b/sonar-server/src/main/java/org/sonar/server/configuration/ProfilesBackup.java @@ -169,7 +169,7 @@ public class ProfilesBackup implements Backupable { writeNode(writer, "key", rule.getRule().getKey()); writeNode(writer, "plugin", rule.getRule().getRepositoryKey()); writeNode(writer, "level", rule.getSeverity().name()); - writeNode(writer, "inherited", rule.getInheritanceStatus().toString()); + writeNode(writer, "inheritance", rule.getInheritance()); if (!rule.getActiveRuleParams().isEmpty()) { writer.startNode("params"); @@ -205,8 +205,8 @@ public class ProfilesBackup implements Backupable { ActiveRule activeRule = new ActiveRule(null, new Rule(valuesRule.get("plugin"), valuesRule.get("key")), RulePriority .valueOf(valuesRule.get("level"))); activeRule.setActiveRuleParams(params); - if (valuesRule.containsKey("inherited")) { - activeRule.setInheritanceStatus(ActiveRuleInheritanceStatus.valueOf(valuesRule.get("inherited"))); + if (valuesRule.containsKey("inheritance")) { + activeRule.setInheritance(valuesRule.get("inheritance")); } return activeRule; } @@ -218,9 +218,11 @@ public class ProfilesBackup implements Backupable { } private void writeNode(HierarchicalStreamWriter writer, String name, String value) { - writer.startNode(name); - writer.setValue(value); - writer.endNode(); + if (value != null) { + writer.startNode(name); + writer.setValue(value); + writer.endNode(); + } } private Map readNode(HierarchicalStreamReader reader) { diff --git a/sonar-server/src/main/java/org/sonar/server/configuration/ProfilesManager.java b/sonar-server/src/main/java/org/sonar/server/configuration/ProfilesManager.java index a1ad040d321..98f1dc6ca76 100644 --- a/sonar-server/src/main/java/org/sonar/server/configuration/ProfilesManager.java +++ b/sonar-server/src/main/java/org/sonar/server/configuration/ProfilesManager.java @@ -19,8 +19,6 @@ */ package org.sonar.server.configuration; -import org.sonar.api.rules.ActiveRuleInheritanceStatus; - import org.sonar.api.database.DatabaseSession; import org.sonar.api.database.model.ResourceModel; import org.sonar.api.profiles.RulesProfile; @@ -122,8 +120,8 @@ public class ProfilesManager extends BaseDao { */ public void activatedOrChanged(int parentProfileId, int activeRuleId) { ActiveRule parentActiveRule = getSession().getEntity(ActiveRule.class, activeRuleId); - if (parentActiveRule.getInheritanceStatus() == ActiveRuleInheritanceStatus.INHERITED) { - parentActiveRule.setInheritanceStatus(ActiveRuleInheritanceStatus.OVERRIDDEN); + if (parentActiveRule.isInherited()) { + parentActiveRule.setInheritance(ActiveRule.OVERRIDES); getSession().saveWithoutFlush(parentActiveRule); } for (RulesProfile child : getChildren(parentProfileId)) { @@ -159,12 +157,12 @@ public class ProfilesManager extends BaseDao { public void revert(int profileId, int activeRuleId) { RulesProfile profile = getSession().getEntity(RulesProfile.class, profileId); ActiveRule activeRule = getSession().getEntity(ActiveRule.class, activeRuleId); - if (activeRule != null && activeRule.getInheritanceStatus() == ActiveRuleInheritanceStatus.OVERRIDDEN) { + if (activeRule != null && activeRule.doesOverride()) { ActiveRule parentActiveRule = getParentProfile(profile).getActiveRule(activeRule.getRule()); removeActiveRule(profile, activeRule); activeRule = (ActiveRule) parentActiveRule.clone(); activeRule.setRulesProfile(profile); - activeRule.setInheritanceStatus(ActiveRuleInheritanceStatus.INHERITED); + activeRule.setInheritance(ActiveRule.INHERITED); profile.getActiveRules().add(activeRule); getSession().saveWithoutFlush(activeRule); @@ -179,17 +177,17 @@ public class ProfilesManager extends BaseDao { private void activateOrChange(RulesProfile profile, ActiveRule parentActiveRule) { ActiveRule activeRule = profile.getActiveRule(parentActiveRule.getRule()); if (activeRule != null) { - if (activeRule.getInheritanceStatus() == ActiveRuleInheritanceStatus.INHERITED) { + if (activeRule.isInherited()) { removeActiveRule(profile, activeRule); } else { - activeRule.setInheritanceStatus(ActiveRuleInheritanceStatus.OVERRIDDEN); + activeRule.setInheritance(ActiveRule.OVERRIDES); getSession().saveWithoutFlush(activeRule); return; // no need to change in children } } activeRule = (ActiveRule) parentActiveRule.clone(); activeRule.setRulesProfile(profile); - activeRule.setInheritanceStatus(ActiveRuleInheritanceStatus.INHERITED); + activeRule.setInheritance(ActiveRule.INHERITED); profile.getActiveRules().add(activeRule); getSession().saveWithoutFlush(activeRule); @@ -201,10 +199,10 @@ public class ProfilesManager extends BaseDao { private void deactivate(RulesProfile profile, Rule rule) { ActiveRule activeRule = profile.getActiveRule(rule); if (activeRule != null) { - if (activeRule.getInheritanceStatus() == ActiveRuleInheritanceStatus.INHERITED) { + if (activeRule.isInherited()) { removeActiveRule(profile, activeRule); } else { - activeRule.setInheritanceStatus(ActiveRuleInheritanceStatus.NO); + activeRule.setInheritance(null); getSession().saveWithoutFlush(activeRule); return; // no need to change in children } diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/active_rule.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/active_rule.rb index cc325a3ccbc..83bce7e376b 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/models/active_rule.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/models/active_rule.rb @@ -101,10 +101,10 @@ class ActiveRule < ActiveRecord::Base end def inherited? - inherited==1 + inheritance=='INHERITED' end - def overridden? - inherited==2 + def overrides? + inheritance=='OVERRIDES' end end diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb index e5511c16196..52be4b10fcd 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb @@ -14,15 +14,15 @@ :loading => "$('levels_#{rule.id}').replace('');", :with => "'level=' + get_level_for_rule(#{rule_select_box},#{rule_check_box})") %> - <%= check_box_tag(check_box_id, 'yes', (!active_rule.nil?), :onclick => activate_rule, :disabled => !enable_modification || (active_rule && (active_rule.inherited? || active_rule.overridden?))) %> + <%= check_box_tag(check_box_id, 'yes', (!active_rule.nil?), :onclick => activate_rule, :disabled => !enable_modification || (active_rule && (active_rule.inherited? || active_rule.overrides?))) %> <%= select_tag(select_box_id, options_for_select(RulesConfigurationController::RULE_PRIORITIES, (active_rule.nil? ? rule.priority_text : active_rule.priority_text)), {:onchange => changel_level, :disabled => (!(enable_modification) || active_rule.nil?)}) %> <% if active_rule %> <% if active_rule.inherited? %> - Inherited from parent - <% elsif active_rule.overridden? %> - Overrides parent definition + Inherited from parent + <% elsif active_rule.overrides? %> + Overrides parent definition <% end %> <% end %> @@ -56,7 +56,7 @@ <% if rule.editable? %> <%= button_to "Edit rule", :action => 'edit', :id => profile.id, :rule_id => rule.id %> <% end %> - <% if active_rule && active_rule.overridden? %> + <% if active_rule && active_rule.overrides? %> <%= button_to "Revert to parent definition", :action => 'revert_rule', :id => profile.id, :active_rule_id => active_rule.id %>
<% end %> <% end %> diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/169_add_columns_for_profiles_inheritance.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/169_add_columns_for_profiles_inheritance.rb index c7b238473d9..62775358dde 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/169_add_columns_for_profiles_inheritance.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/169_add_columns_for_profiles_inheritance.rb @@ -24,11 +24,10 @@ class AddColumnsForProfilesInheritance < ActiveRecord::Migration def self.up - add_column 'active_rules', 'inherited', :integer, :null => true + add_column 'active_rules', 'inheritance', :varchar, :limit => 10, :null => true ActiveRule.reset_column_information - ActiveRule.update_all(ActiveRule.sanitize_sql_for_assignment({:inherited => 0})) - - add_column 'rules_profiles', 'parent_name', :string, :limit => 40, :null => true + + add_column 'rules_profiles', 'parent_name', :string, :limit => 100, :null => true Profile.reset_column_information end diff --git a/sonar-server/src/main/webapp/images/inherited.png b/sonar-server/src/main/webapp/images/inherited.png new file mode 100644 index 0000000000000000000000000000000000000000..e193d530e225736dfa64ef8e37449e3aa00ba062 GIT binary patch literal 510 zcmVL^VZ*#*8n@M`8 z@ECep;6?D*CFpJl9fZI?q(30&sFyB*&@lo_f}lfm)r+ShVxmc9Y?E9%*ZYdDO(#Kq z@Z-IQbH*sRns)HNd4?+^Y0FNPbZ)# zFQu)GZ#lQO0#r#in+@*{a2|Q5X2vrp?+rPbh=XAmkW2*O^t>U@oxyN8EDi>PVz1W& zs=B#eWNf)wzEgmnQ6-IdchK+mLDzL#Ymq|;`GxF5%~yJ;sd%zj4TWMjgT8k_tJQMN zfC(4CMfU50u(bVq$QR5F&@{~zAaR!v;_rduIOjDnz{K74Y=Ek&u7Fr9MuQEbX&2=h z@`m~f>xXmlHj*Sw$Oi%eh(@E3PNxqlmC6mCYEdPP*dA90-EMc%Zj(M~r_+IUyB$oW zQakjHD(W&!eR~^wc#MsLh;TTZD-;U1ilSIlNsFRrd)SnbVG-yr9^=Q52$I76D)Nc* zs3DK&dmVW^0_YC>7@q@f3>kFv=`#WUSw8{{0I&(;T5}1-1poj507*qoM6N<$f*X|M A3jhEB literal 0 HcmV?d00001 diff --git a/sonar-server/src/main/webapp/images/overrides.png b/sonar-server/src/main/webapp/images/overrides.png new file mode 100644 index 0000000000000000000000000000000000000000..35186694207a1445c9b026cfb708761f5c858666 GIT binary patch literal 520 zcmV+j0{8uiP)qT7Y>*69`|zYx$jX;)5s*jkO{+KB;jz_bm{ea3Cpqz48!aI(+@&8Dfr+U6PA1~{EglS)-ptv$dwjac3|Ca^Le6ukm8 z%*bs`M5jln)oLVjbqK5cx?W#Z{U`fwf*EC9XDNg}vf%*el=FHDbT3 rules = sonarConfig.getRules(); assertThat(rules.size(), is(1)); @@ -181,7 +182,7 @@ public class BackupTest { RulesProfile testProfile = profiles.iterator().next(); assertThat(testProfile.getActiveRules().size(), is(1)); ActiveRule activeRule = testProfile.getActiveRules().get(0); - assertThat(activeRule.getInheritanceStatus(), is(ActiveRuleInheritanceStatus.NO)); + assertThat(activeRule.getInheritance(), nullValue()); } @Test @@ -283,7 +284,7 @@ public class BackupTest { ActiveRule activeRule2 = profile2.activateRule(rule, RulePriority.MINOR); activeRule2.setParameter("test param key", "test value"); - activeRule2.setInheritanceStatus(ActiveRuleInheritanceStatus.OVERRIDDEN); + activeRule2.setInheritance(ActiveRule.OVERRIDES); profiles.get(0).getAlerts().add(new Alert(null, new Metric("test key"), Alert.OPERATOR_GREATER, "testError", "testWarn")); diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/BackupTest/backup-restore-valid.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/BackupTest/backup-restore-valid.xml index afbcd51f3e1..f61e6e67c4b 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/BackupTest/backup-restore-valid.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/BackupTest/backup-restore-valid.xml @@ -42,7 +42,6 @@ - @@ -71,7 +70,7 @@ - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/BackupTest/backup-valid.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/BackupTest/backup-valid.xml index 55e7c52ef69..fb024b6d419 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/BackupTest/backup-valid.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/BackupTest/backup-valid.xml @@ -44,7 +44,6 @@ - @@ -73,7 +72,7 @@ - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldActivateInChildren-result.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldActivateInChildren-result.xml index 3ce3a268197..dff95033851 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldActivateInChildren-result.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldActivateInChildren-result.xml @@ -9,10 +9,10 @@ - + - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldActivateInChildren.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldActivateInChildren.xml index 5df60edae3d..4b555960447 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldActivateInChildren.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldActivateInChildren.xml @@ -9,7 +9,7 @@ - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldChangeParent-result.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldChangeParent-result.xml index e1c19620adb..1f7efb177a9 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldChangeParent-result.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldChangeParent-result.xml @@ -12,10 +12,10 @@ - + - + - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldChangeParent.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldChangeParent.xml index 958b9a98031..ba8530b21f7 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldChangeParent.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldChangeParent.xml @@ -12,10 +12,10 @@ - + - + - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldDeactivateInChildren-result.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldDeactivateInChildren-result.xml index e51993058f6..9a2c56efae8 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldDeactivateInChildren-result.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldDeactivateInChildren-result.xml @@ -7,6 +7,6 @@ - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldDeactivateInChildren.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldDeactivateInChildren.xml index 2d08e30f5a3..4760d12b7d9 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldDeactivateInChildren.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldDeactivateInChildren.xml @@ -7,8 +7,8 @@ - + - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRemoveParent-result.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRemoveParent-result.xml index 93223e48dfc..1493a8e8897 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRemoveParent-result.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRemoveParent-result.xml @@ -7,6 +7,6 @@ - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRemoveParent.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRemoveParent.xml index 2d08e30f5a3..4760d12b7d9 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRemoveParent.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRemoveParent.xml @@ -7,8 +7,8 @@ - + - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldSetParent-result.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldSetParent-result.xml index 2d08e30f5a3..4760d12b7d9 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldSetParent-result.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldSetParent-result.xml @@ -7,8 +7,8 @@ - + - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldSetParent.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldSetParent.xml index 93223e48dfc..1493a8e8897 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldSetParent.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldSetParent.xml @@ -7,6 +7,6 @@ - + -- 2.39.5