Search in sources :

Example 1 with InvalidMethodConfig

use of org.springframework.boot.configurationsample.method.InvalidMethodConfig in project spring-boot by spring-projects.

the class ConfigurationMetadataAnnotationProcessorTests method invalidMethodConfig.

@Test
public void invalidMethodConfig() throws Exception {
    ConfigurationMetadata metadata = compile(InvalidMethodConfig.class);
    assertThat(metadata).has(Metadata.withProperty("something.name", String.class).fromSource(InvalidMethodConfig.class));
    assertThat(metadata).isNotEqualTo(Metadata.withProperty("invalid.name"));
}
Also used : InvalidMethodConfig(org.springframework.boot.configurationsample.method.InvalidMethodConfig) ConfigurationMetadata(org.springframework.boot.configurationprocessor.metadata.ConfigurationMetadata) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 ConfigurationMetadata (org.springframework.boot.configurationprocessor.metadata.ConfigurationMetadata)1 InvalidMethodConfig (org.springframework.boot.configurationsample.method.InvalidMethodConfig)1