From 7c84266259227467513aff7c6fe1ea84ba55a5d5 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Mon, 20 Mar 2017 20:09:22 +0100 Subject: [PATCH] Remove trailing whitespace in spring-test --- .../test/context/junit4/rules/SpringMethodRule.java | 2 +- .../nested/NestedTestsWithSpringAndJUnitJupiterTestCase.java | 2 +- .../junit4/concurrency/SpringJUnit4ConcurrencyTests.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-test/src/main/java/org/springframework/test/context/junit4/rules/SpringMethodRule.java b/spring-test/src/main/java/org/springframework/test/context/junit4/rules/SpringMethodRule.java index 71c7421600..c2dbe6e2bb 100644 --- a/spring-test/src/main/java/org/springframework/test/context/junit4/rules/SpringMethodRule.java +++ b/spring-test/src/main/java/org/springframework/test/context/junit4/rules/SpringMethodRule.java @@ -224,7 +224,7 @@ public class SpringMethodRule implements MethodRule { * that is annotated with {@code @ClassRule}. */ private static SpringClassRule validateSpringClassRuleConfiguration(Class testClass) { - Field ruleField = findSpringClassRuleField(testClass).orElseThrow(() -> + Field ruleField = findSpringClassRuleField(testClass).orElseThrow(() -> new IllegalStateException(String.format( "Failed to find 'public static final SpringClassRule' field in test class [%s]. " + "Consult the javadoc for SpringClassRule for details.", testClass.getName()))); diff --git a/spring-test/src/test/java/org/springframework/test/context/junit/jupiter/nested/NestedTestsWithSpringAndJUnitJupiterTestCase.java b/spring-test/src/test/java/org/springframework/test/context/junit/jupiter/nested/NestedTestsWithSpringAndJUnitJupiterTestCase.java index 1ad3acd6ff..15b6613246 100644 --- a/spring-test/src/test/java/org/springframework/test/context/junit/jupiter/nested/NestedTestsWithSpringAndJUnitJupiterTestCase.java +++ b/spring-test/src/test/java/org/springframework/test/context/junit/jupiter/nested/NestedTestsWithSpringAndJUnitJupiterTestCase.java @@ -32,7 +32,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; * Integration tests that verify support for {@code @Nested} test classes * in conjunction with the {@link SpringExtension} in a JUnit 5 (Jupiter) * environment. - * + * * @author Sam Brannen * @since 5.0 * @see org.springframework.test.context.junit4.nested.NestedTestsWithSpringRulesTests diff --git a/spring-test/src/test/java/org/springframework/test/context/junit4/concurrency/SpringJUnit4ConcurrencyTests.java b/spring-test/src/test/java/org/springframework/test/context/junit4/concurrency/SpringJUnit4ConcurrencyTests.java index e0a5765213..25463a4486 100644 --- a/spring-test/src/test/java/org/springframework/test/context/junit4/concurrency/SpringJUnit4ConcurrencyTests.java +++ b/spring-test/src/test/java/org/springframework/test/context/junit4/concurrency/SpringJUnit4ConcurrencyTests.java @@ -55,7 +55,7 @@ import static org.springframework.test.context.junit4.JUnitTestingUtils.*; *

The tests executed by this test class come from a hand-picked collection of test * classes within the test suite that is intended to cover most categories of tests * that are currently supported by the TestContext Framework on JUnit 4. - * + * *

The chosen test classes intentionally do not include any classes that * fall under the following categories. *