|
18 | 18 |
|
19 | 19 | import java.time.temporal.ChronoField;
|
20 | 20 | import java.time.temporal.ChronoUnit;
|
21 |
| -import java.util.Arrays; |
22 | 21 |
|
23 | 22 | import org.junit.jupiter.api.Test;
|
24 | 23 |
|
25 | 24 | import org.springframework.boot.configurationprocessor.metadata.ConfigurationMetadata;
|
26 | 25 | import org.springframework.boot.configurationprocessor.metadata.ItemMetadata;
|
27 | 26 | import org.springframework.boot.configurationprocessor.metadata.Metadata;
|
28 |
| -import org.springframework.boot.configurationprocessor.test.CompiledMetadataReader; |
29 |
| -import org.springframework.boot.configurationprocessor.test.TestConfigurationMetadataAnnotationProcessor; |
30 | 27 | import org.springframework.boot.configurationsample.deprecation.Dbcp2Configuration;
|
31 |
| -import org.springframework.boot.configurationsample.fieldvalues.ArithmeticExpressionProperties; |
32 | 28 | import org.springframework.boot.configurationsample.method.NestedPropertiesMethod;
|
33 | 29 | import org.springframework.boot.configurationsample.record.ExampleRecord;
|
34 | 30 | import org.springframework.boot.configurationsample.record.NestedPropertiesRecord;
|
|
71 | 67 | import org.springframework.boot.configurationsample.specific.SimplePojo;
|
72 | 68 | import org.springframework.boot.configurationsample.specific.StaticAccessor;
|
73 | 69 | import org.springframework.core.test.tools.CompilationException;
|
74 |
| -import org.springframework.core.test.tools.ResourceFile; |
75 |
| -import org.springframework.core.test.tools.SourceFile; |
76 |
| -import org.springframework.core.test.tools.TestCompiler; |
77 | 70 |
|
78 | 71 | import static org.assertj.core.api.Assertions.assertThat;
|
79 | 72 | import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
|
89 | 82 | * @author Pavel Anisimov
|
90 | 83 | * @author Scott Frederick
|
91 | 84 | * @author Moritz Halbritter
|
92 |
| - * @author Hyeon Jae Kim |
93 | 85 | */
|
94 | 86 | class ConfigurationMetadataAnnotationProcessorTests extends AbstractMetadataGenerationTests {
|
95 | 87 |
|
@@ -578,19 +570,4 @@ void recordPropertiesWithDescriptions() {
|
578 | 570 | .withDescription("last description in Javadoc"));
|
579 | 571 | }
|
580 | 572 |
|
581 |
| - @Test |
582 |
| - void arithmeticExpressionPropertiesShouldOmitUnknownDefaultValues(){ |
583 |
| - ConfigurationMetadata metadata = compile(ArithmeticExpressionProperties.class); |
584 |
| - assertThat(metadata).has(Metadata.withProperty("arithmetic.calculated", Integer.class) |
585 |
| - .fromSource(ArithmeticExpressionProperties.class)); |
586 |
| - assertThat(metadata).has(Metadata.withProperty("arithmetic.literal", Integer.class) |
587 |
| - .fromSource(ArithmeticExpressionProperties.class) |
588 |
| - .withDefaultValue(100)); |
589 |
| - assertThat(metadata).has(Metadata.withProperty("arithmetic.simple-flag", Boolean.class) |
590 |
| - .fromSource(ArithmeticExpressionProperties.class) |
591 |
| - .withDefaultValue(true)); |
592 |
| - assertThat(metadata).has(Metadata.withProperty("arithmetic.complex-flag", Boolean.class) |
593 |
| - .fromSource(ArithmeticExpressionProperties.class)); |
594 |
| - } |
595 |
| - |
596 | 573 | }
|
0 commit comments