aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-07-16 21:41:03 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-07-16 21:41:03 +0200
commit57cb022d1b9751a1a73fcf7a2054aa1b24ab4c27 (patch)
tree316a18fb54f71039b89ea405915a397018ce8cb8 /sonar-core
parent97e740133e533f623b6a0bc774dda3804d8df62f (diff)
downloadsonarqube-57cb022d1b9751a1a73fcf7a2054aa1b24ab4c27.tar.gz
sonarqube-57cb022d1b9751a1a73fcf7a2054aa1b24ab4c27.zip
Rename variables "sut" to "underTest" in tests
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/test/java/org/sonar/core/util/NonNullInputFunctionTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-core/src/test/java/org/sonar/core/util/NonNullInputFunctionTest.java b/sonar-core/src/test/java/org/sonar/core/util/NonNullInputFunctionTest.java
index 090e71414a6..d80971fcf5a 100644
--- a/sonar-core/src/test/java/org/sonar/core/util/NonNullInputFunctionTest.java
+++ b/sonar-core/src/test/java/org/sonar/core/util/NonNullInputFunctionTest.java
@@ -26,12 +26,12 @@ import static org.junit.Assert.fail;
public class NonNullInputFunctionTest {
- NonNullInputFunction<String, Integer> sut = new TestFunction();
+ NonNullInputFunction<String, Integer> underTest = new TestFunction();
@Test
public void fail_if_null_input() {
try {
- sut.apply(null);
+ underTest.apply(null);
fail();
} catch (IllegalArgumentException e) {
assertThat(e).hasMessage("Null inputs are not allowed in this function");
@@ -40,7 +40,7 @@ public class NonNullInputFunctionTest {
@Test
public void apply() {
- assertThat(sut.apply("foo")).isEqualTo(3);
+ assertThat(underTest.apply("foo")).isEqualTo(3);
}
private static class TestFunction extends NonNullInputFunction<String, Integer> {