@@ -1504,13 +1504,6 @@ void synthesizeWithoutAttributeAliases() throws Exception {
1504
1504
assertThat (synthesizedComponent .value ()).isEqualTo ("webController" );
1505
1505
}
1506
1506
1507
- @ Test
1508
- void isSynthesizableWithoutAttributeAliases () throws Exception {
1509
- Component component = WebController .class .getAnnotation (Component .class );
1510
- assertThat (component ).isNotNull ();
1511
- assertThat (MergedAnnotation .from (component ).isSynthesizable ()).isFalse ();
1512
- }
1513
-
1514
1507
/**
1515
1508
* @since 6.0
1516
1509
*/
@@ -1595,16 +1588,10 @@ void synthesizeWhenUsingMergedAnnotationsFromApi() {
1595
1588
void synthesizeShouldNotSynthesizeNonsynthesizableAnnotationsWhenUsingMergedAnnotationsFromApi () {
1596
1589
MergedAnnotations mergedAnnotations = MergedAnnotations .from (SecurityConfig .class );
1597
1590
1598
- MergedAnnotation <EnableWebSecurity > enableWebSecurityAnnotation =
1599
- mergedAnnotations .get (EnableWebSecurity .class );
1600
- assertThat (enableWebSecurityAnnotation .isSynthesizable ()).isFalse ();
1601
- EnableWebSecurity enableWebSecurity = enableWebSecurityAnnotation .synthesize ();
1591
+ EnableWebSecurity enableWebSecurity = mergedAnnotations .get (EnableWebSecurity .class ).synthesize ();
1602
1592
assertNotSynthesized (enableWebSecurity );
1603
1593
1604
- MergedAnnotation <EnableGlobalAuthentication > enableGlobalAuthenticationMergedAnnotation =
1605
- mergedAnnotations .get (EnableGlobalAuthentication .class );
1606
- assertThat (enableGlobalAuthenticationMergedAnnotation .isSynthesizable ()).isFalse ();
1607
- EnableGlobalAuthentication enableGlobalAuthentication = enableGlobalAuthenticationMergedAnnotation .synthesize ();
1594
+ EnableGlobalAuthentication enableGlobalAuthentication = mergedAnnotations .get (EnableGlobalAuthentication .class ).synthesize ();
1608
1595
assertNotSynthesized (enableGlobalAuthentication );
1609
1596
}
1610
1597
@@ -1750,9 +1737,7 @@ void synthesizeWithImplicitAliases() throws Exception {
1750
1737
private void testSynthesisWithImplicitAliases (Class <?> clazz , String expected ) throws Exception {
1751
1738
ImplicitAliasesTestConfiguration config = clazz .getAnnotation (ImplicitAliasesTestConfiguration .class );
1752
1739
assertThat (config ).isNotNull ();
1753
- MergedAnnotation <ImplicitAliasesTestConfiguration > mergedAnnotation = MergedAnnotation .from (config );
1754
- assertThat (mergedAnnotation .isSynthesizable ()).isTrue ();
1755
- ImplicitAliasesTestConfiguration synthesized = mergedAnnotation .synthesize ();
1740
+ ImplicitAliasesTestConfiguration synthesized = MergedAnnotation .from (config ).synthesize ();
1756
1741
assertSynthesized (synthesized );
1757
1742
assertThat (synthesized .value ()).isEqualTo (expected );
1758
1743
assertThat (synthesized .location1 ()).isEqualTo (expected );
@@ -1779,11 +1764,8 @@ private void testSynthesisWithImplicitAliasesWithImpliedAliasNamesOmitted(
1779
1764
ImplicitAliasesWithImpliedAliasNamesOmittedTestConfiguration config = clazz .getAnnotation (
1780
1765
ImplicitAliasesWithImpliedAliasNamesOmittedTestConfiguration .class );
1781
1766
assertThat (config ).isNotNull ();
1782
- MergedAnnotation <ImplicitAliasesWithImpliedAliasNamesOmittedTestConfiguration > mergedAnnotation =
1783
- MergedAnnotation .from (config );
1784
- assertThat (mergedAnnotation .isSynthesizable ()).isTrue ();
1785
1767
ImplicitAliasesWithImpliedAliasNamesOmittedTestConfiguration synthesized =
1786
- mergedAnnotation .synthesize ();
1768
+ MergedAnnotation . from ( config ) .synthesize ();
1787
1769
assertSynthesized (synthesized );
1788
1770
assertThat (synthesized .value ()).isEqualTo (expected );
1789
1771
assertThat (synthesized .location ()).isEqualTo (expected );
0 commit comments