Skip to content

Commit bd0a929

Browse files
authored
Update ArchTests.java
1 parent da2c5eb commit bd0a929

File tree

1 file changed

+0
-69
lines changed

1 file changed

+0
-69
lines changed

src/test/java/org/kohsuke/github/ArchTests.java

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)