|
|
@ -63,7 +63,7 @@ public class ImportAutoConfigurationImportSelectorTests {
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void importsAreSelected() throws Exception {
|
|
|
|
public void importsAreSelected() throws Exception {
|
|
|
|
AnnotationMetadata annotationMetadata = new SimpleMetadataReaderFactory()
|
|
|
|
AnnotationMetadata annotationMetadata = new SimpleMetadataReaderFactory()
|
|
|
|
.getMetadataReader(ImportFreemarker.class.getName())
|
|
|
|
.getMetadataReader(ImportFreeMarker.class.getName())
|
|
|
|
.getAnnotationMetadata();
|
|
|
|
.getAnnotationMetadata();
|
|
|
|
String[] imports = this.importSelector.selectImports(annotationMetadata);
|
|
|
|
String[] imports = this.importSelector.selectImports(annotationMetadata);
|
|
|
|
assertThat(imports).containsExactly(FreeMarkerAutoConfiguration.class.getName());
|
|
|
|
assertThat(imports).containsExactly(FreeMarkerAutoConfiguration.class.getName());
|
|
|
@ -72,7 +72,7 @@ public class ImportAutoConfigurationImportSelectorTests {
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void propertyExclusionsAreNotApplied() throws Exception {
|
|
|
|
public void propertyExclusionsAreNotApplied() throws Exception {
|
|
|
|
AnnotationMetadata annotationMetadata = new SimpleMetadataReaderFactory()
|
|
|
|
AnnotationMetadata annotationMetadata = new SimpleMetadataReaderFactory()
|
|
|
|
.getMetadataReader(ImportFreemarker.class.getName())
|
|
|
|
.getMetadataReader(ImportFreeMarker.class.getName())
|
|
|
|
.getAnnotationMetadata();
|
|
|
|
.getAnnotationMetadata();
|
|
|
|
this.importSelector.selectImports(annotationMetadata);
|
|
|
|
this.importSelector.selectImports(annotationMetadata);
|
|
|
|
verifyZeroInteractions(this.environment);
|
|
|
|
verifyZeroInteractions(this.environment);
|
|
|
@ -98,7 +98,7 @@ public class ImportAutoConfigurationImportSelectorTests {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ImportAutoConfiguration(FreeMarkerAutoConfiguration.class)
|
|
|
|
@ImportAutoConfiguration(FreeMarkerAutoConfiguration.class)
|
|
|
|
static class ImportFreemarker {
|
|
|
|
static class ImportFreeMarker {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|