Polishing
This commit is contained in:
@@ -300,7 +300,7 @@ public class ClassPathScanningCandidateComponentProviderTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWithAspectAnnotationOnly() throws Exception {
|
||||
public void testWithAspectAnnotationOnly() {
|
||||
ClassPathScanningCandidateComponentProvider provider = new ClassPathScanningCandidateComponentProvider(false);
|
||||
provider.addIncludeFilter(new AnnotationTypeFilter(Aspect.class));
|
||||
Set<BeanDefinition> candidates = provider.findCandidateComponents(TEST_BASE_PACKAGE);
|
||||
|
||||
@@ -27,11 +27,6 @@ import org.springframework.core.io.ClassPathResource;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Tests for {@link CandidateComponentsIndexLoader}.
|
||||
*
|
||||
@@ -92,7 +87,7 @@ public class CandidateComponentsIndexLoaderTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void loadIndexNoEntry() throws IOException {
|
||||
public void loadIndexNoEntry() {
|
||||
CandidateComponentsIndex index = CandidateComponentsIndexLoader.loadIndex(
|
||||
CandidateComponentsTestClassLoader.index(getClass().getClassLoader(),
|
||||
new ClassPathResource("empty-spring.components", getClass())));
|
||||
@@ -100,7 +95,7 @@ public class CandidateComponentsIndexLoaderTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void loadIndexWithException() throws IOException {
|
||||
public void loadIndexWithException() {
|
||||
final IOException cause = new IOException("test exception");
|
||||
assertThatIllegalStateException().isThrownBy(() -> {
|
||||
CandidateComponentsTestClassLoader classLoader = new CandidateComponentsTestClassLoader(getClass().getClassLoader(), cause);
|
||||
|
||||
@@ -25,10 +25,6 @@ import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Tests for {@link CandidateComponentsIndex}.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user