Polish contribution

Closes gh-13904
This commit is contained in:
Stephane Nicoll
2018-07-26 17:20:37 +02:00
parent df6feb3e2a
commit f780179777
6 changed files with 35 additions and 26 deletions

View File

@@ -20,22 +20,24 @@ import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.test.context.example.ExampleConfig;
import org.springframework.boot.test.context.example.scan.Example;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Tests for {@link SpringBootConfigurationFinder}.
* Tests for {@link AnnotatedClassFinder}.
*
* @author Phillip Webb
*/
public class SpringBootConfigurationFinderTests {
public class AnnotatedClassFinderTests {
@Rule
public ExpectedException thrown = ExpectedException.none();
private SpringBootConfigurationFinder finder = new SpringBootConfigurationFinder();
private AnnotatedClassFinder finder = new AnnotatedClassFinder(
SpringBootConfiguration.class);
@Test
public void findFromClassWhenSourceIsNullShouldThrowException() {

View File

@@ -17,10 +17,10 @@
package org.springframework.boot.test.context.example;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.test.context.SpringBootConfigurationFinderTests;
import org.springframework.boot.test.context.AnnotatedClassFinderTests;
/**
* Example config used in {@link SpringBootConfigurationFinderTests}.
* Example config used in {@link AnnotatedClassFinderTests}.
*
* @author Phillip Webb
*/

View File

@@ -16,10 +16,10 @@
package org.springframework.boot.test.context.example.scan;
import org.springframework.boot.test.context.SpringBootConfigurationFinderTests;
import org.springframework.boot.test.context.AnnotatedClassFinderTests;
/**
* Example class used in {@link SpringBootConfigurationFinderTests}.
* Example class used in {@link AnnotatedClassFinderTests}.
*
* @author Phillip Webb
*/

View File

@@ -17,11 +17,11 @@
package org.springframework.boot.test.context.example.scan.sub;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.test.context.SpringBootConfigurationFinderTests;
import org.springframework.boot.test.context.AnnotatedClassFinderTests;
/**
* Example config used in {@link SpringBootConfigurationFinderTests}. Should not be found
* since scanner should only search upwards.
* Example config used in {@link AnnotatedClassFinderTests}. Should not be found since
* scanner should only search upwards.
*
* @author Phillip Webb
*/