classlib: suppress test that fails in WebAssembly

This commit is contained in:
Alexey Andreev 2023-10-27 08:08:53 +02:00
parent 5d5fb47ca8
commit 1061ad76b6

View File

@ -36,7 +36,9 @@ import java.util.Objects;
import java.util.Set; import java.util.Set;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.SkipPlatform;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.TestPlatform;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
public class EnumMapTest { public class EnumMapTest {
@ -293,6 +295,7 @@ public class EnumMapTest {
@Test @Test
@SuppressWarnings({ "unchecked", "rawtypes" }) @SuppressWarnings({ "unchecked", "rawtypes" })
@SkipPlatform({TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
public void putAll() { public void putAll() {
EnumMap enumColorMap = new EnumMap(Color.class); EnumMap enumColorMap = new EnumMap(Color.class);
enumColorMap.put(Color.Green, 2); enumColorMap.put(Color.Green, 2);