Polish contribution
Closes gh-13904
This commit is contained in:
@@ -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() {
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user