aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-07-16 21:46:04 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-07-16 21:46:04 +0200
commitefa7cbf67fc688806609b21eb78f560e2102c5ec (patch)
tree49b66219248c8d7b63a8aef3e80edbfc008431eb /sonar-db
parent57cb022d1b9751a1a73fcf7a2054aa1b24ab4c27 (diff)
downloadsonarqube-efa7cbf67fc688806609b21eb78f560e2102c5ec.tar.gz
sonarqube-efa7cbf67fc688806609b21eb78f560e2102c5ec.zip
Rename remaining variables "sut" to "underTest" in tests
Diffstat (limited to 'sonar-db')
-rw-r--r--sonar-db/src/test/java/org/sonar/db/purge/PurgeConfigurationTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/sonar-db/src/test/java/org/sonar/db/purge/PurgeConfigurationTest.java b/sonar-db/src/test/java/org/sonar/db/purge/PurgeConfigurationTest.java
index a150c84ebd1..db8ecebaae4 100644
--- a/sonar-db/src/test/java/org/sonar/db/purge/PurgeConfigurationTest.java
+++ b/sonar-db/src/test/java/org/sonar/db/purge/PurgeConfigurationTest.java
@@ -57,11 +57,11 @@ public class PurgeConfigurationTest {
settings.setProperty(PurgeConstants.DAYS_BEFORE_DELETING_CLOSED_ISSUES, 5);
Date now = new Date();
- PurgeConfiguration sut = PurgeConfiguration.newDefaultPurgeConfiguration(settings, new IdUuidPair(42L, "any-uuid"));
+ PurgeConfiguration underTest = PurgeConfiguration.newDefaultPurgeConfiguration(settings, new IdUuidPair(42L, "any-uuid"));
- assertThat(sut.scopesWithoutHistoricalData()).contains(Scopes.FILE)
+ assertThat(underTest.scopesWithoutHistoricalData()).contains(Scopes.FILE)
.doesNotContain(Scopes.DIRECTORY);
- assertThat(sut.maxLiveDateOfClosedIssues(now)).isEqualTo(DateUtils.addDays(now, -5));
+ assertThat(underTest.maxLiveDateOfClosedIssues(now)).isEqualTo(DateUtils.addDays(now, -5));
}
@Test
@@ -69,8 +69,8 @@ public class PurgeConfigurationTest {
Settings settings = new Settings();
settings.setProperty(PurgeConstants.PROPERTY_CLEAN_DIRECTORY, true);
- PurgeConfiguration sut = PurgeConfiguration.newDefaultPurgeConfiguration(settings, new IdUuidPair(42L, "any-uuid"));
+ PurgeConfiguration underTest = PurgeConfiguration.newDefaultPurgeConfiguration(settings, new IdUuidPair(42L, "any-uuid"));
- assertThat(sut.scopesWithoutHistoricalData()).contains(Scopes.DIRECTORY, Scopes.FILE);
+ assertThat(underTest.scopesWithoutHistoricalData()).contains(Scopes.DIRECTORY, Scopes.FILE);
}
}