@@ -69,75 +69,6 @@ public static void beforeClass() {
6969 assertThat (classFiles .size (), greaterThan (0 ));
7070 }
7171
72- @ Ignore ("No longer using deprecated for this purpose" )
73- @ Test
74- public void testPreviewsAreFlaggedAsDeprecated () {
75-
76- String reason = "all preview APIs must be annotated as @Deprecated until they are promoted to stable" ;
77-
78- ArchRule classRule = classes ().that ()
79- .areAnnotatedWith (Preview .class )
80- .should ()
81- .beAnnotatedWith (Deprecated .class )
82- .andShould (not (beAnnotatedWith (previewAnnotationWithNoMediaType )))
83- .because (reason );
84-
85- ArchRule methodRule = methods ().that ()
86- .areAnnotatedWith (Preview .class )
87- .should ()
88- .beAnnotatedWith (Deprecated .class )
89- .andShould (not (beAnnotatedWith (previewAnnotationWithNoMediaType )))
90- .because (reason );
91-
92- ArchRule enumFieldsRule = fields ().that ()
93- .areDeclaredInClassesThat ()
94- .areEnums ()
95- .and ()
96- .areAnnotatedWith (Preview .class )
97- .should ()
98- .beAnnotatedWith (Deprecated .class )
99- .andShould (not (beAnnotatedWith (previewAnnotationWithNoMediaType )))
100- .because (reason );
101-
102- classRule .check (classFiles );
103- enumFieldsRule .check (classFiles );
104- methodRule .check (classFiles );
105-
106- }
107-
108- @ Ignore ("No longer using deprecated for this purpose" )
109- @ Test
110- public void testBetaApisAreFlaggedAsDeprecated () {
111-
112- String reason = "all beta APIs must be annotated as @Deprecated until they are promoted to stable" ;
113-
114- ArchRule classRule = classes ().that ()
115- .areAnnotatedWith (BetaApi .class )
116- .should ()
117- .beAnnotatedWith (Deprecated .class )
118- .because (reason );
119-
120- ArchRule methodRule = methods ().that ()
121- .areAnnotatedWith (BetaApi .class )
122- .should ()
123- .beAnnotatedWith (Deprecated .class )
124- .because (reason );
125-
126- ArchRule enumFieldsRule = fields ().that ()
127- .areDeclaredInClassesThat ()
128- .areEnums ()
129- .and ()
130- .areAnnotatedWith (BetaApi .class )
131- .should ()
132- .beAnnotatedWith (Deprecated .class )
133- .because (reason );
134-
135- classRule .check (classFiles );
136- enumFieldsRule .check (classFiles );
137- methodRule .check (classFiles );
138-
139- }
140-
14172 @ Test
14273 public void testRequireUseOfAssertThat () {
14374
0 commit comments