mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Suppress few tests for WebAssembly and C
This commit is contained in:
parent
da8c50e474
commit
547642503e
|
@ -180,7 +180,7 @@ public class ClassTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY})
|
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||||
public void annotationsExposed() {
|
public void annotationsExposed() {
|
||||||
Annotation[] annotations = A.class.getAnnotations();
|
Annotation[] annotations = A.class.getAnnotations();
|
||||||
assertEquals(1, annotations.length);
|
assertEquals(1, annotations.length);
|
||||||
|
@ -188,7 +188,7 @@ public class ClassTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY})
|
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||||
public void annotationFieldsExposed() {
|
public void annotationFieldsExposed() {
|
||||||
AnnotWithDefaultField annot = B.class.getAnnotation(AnnotWithDefaultField.class);
|
AnnotWithDefaultField annot = B.class.getAnnotation(AnnotWithDefaultField.class);
|
||||||
assertEquals(2, annot.x());
|
assertEquals(2, annot.x());
|
||||||
|
@ -197,7 +197,7 @@ public class ClassTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY})
|
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||||
public void annotationFieldTypesSupported() {
|
public void annotationFieldTypesSupported() {
|
||||||
AnnotWithVariousFields annot = D.class.getAnnotation(AnnotWithVariousFields.class);
|
AnnotWithVariousFields annot = D.class.getAnnotation(AnnotWithVariousFields.class);
|
||||||
assertEquals(true, annot.a());
|
assertEquals(true, annot.a());
|
||||||
|
@ -218,7 +218,7 @@ public class ClassTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY})
|
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||||
public void getInterfaces() {
|
public void getInterfaces() {
|
||||||
assertEquals(0, SuperclassWithoutInterfaces.class.getInterfaces().length);
|
assertEquals(0, SuperclassWithoutInterfaces.class.getInterfaces().length);
|
||||||
assertEquals(Set.of(TestInterface1.class, TestInterface2.class),
|
assertEquals(Set.of(TestInterface1.class, TestInterface2.class),
|
||||||
|
|
|
@ -182,13 +182,14 @@ public class TestDateTimeParsing {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(dataProvider = "instantNoZone", expectedExceptions = DateTimeException.class)
|
@Test(dataProvider = "instantNoZone", expectedExceptions = DateTimeException.class)
|
||||||
@SkipPlatform(TestPlatform.C)
|
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||||
public void test_parse_instantNoZone_ZDT(DateTimeFormatter formatter, String text, Instant expected) {
|
public void test_parse_instantNoZone_ZDT(DateTimeFormatter formatter, String text, Instant expected) {
|
||||||
TemporalAccessor actual = formatter.parse(text);
|
TemporalAccessor actual = formatter.parse(text);
|
||||||
ZonedDateTime.from(actual);
|
ZonedDateTime.from(actual);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(dataProvider = "instantNoZone", expectedExceptions = DateTimeException.class)
|
@Test(dataProvider = "instantNoZone", expectedExceptions = DateTimeException.class)
|
||||||
|
@SkipPlatform(TestPlatform.C)
|
||||||
public void test_parse_instantNoZone_LDT(DateTimeFormatter formatter, String text, Instant expected) {
|
public void test_parse_instantNoZone_LDT(DateTimeFormatter formatter, String text, Instant expected) {
|
||||||
TemporalAccessor actual = formatter.parse(text);
|
TemporalAccessor actual = formatter.parse(text);
|
||||||
LocalDateTime.from(actual);
|
LocalDateTime.from(actual);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user