diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-07-16 21:41:03 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-07-16 21:41:03 +0200 |
commit | 57cb022d1b9751a1a73fcf7a2054aa1b24ab4c27 (patch) | |
tree | 316a18fb54f71039b89ea405915a397018ce8cb8 /sonar-core | |
parent | 97e740133e533f623b6a0bc774dda3804d8df62f (diff) | |
download | sonarqube-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.java | 6 |
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> { |