From 80a12a164deabf3e58da7ed8fd704378adf97de5 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Wed, 29 May 2019 21:38:11 +0300 Subject: [PATCH] Remove tests that don't pass in OpenJDK 12 --- .../java/org/teavm/classlib/java/net/URLEncoderTest.java | 8 -------- .../java/org/teavm/classlib/java/util/VectorTest.java | 7 ------- 2 files changed, 15 deletions(-) diff --git a/tests/src/test/java/org/teavm/classlib/java/net/URLEncoderTest.java b/tests/src/test/java/org/teavm/classlib/java/net/URLEncoderTest.java index 7bf0bd11d..a7c5a2079 100644 --- a/tests/src/test/java/org/teavm/classlib/java/net/URLEncoderTest.java +++ b/tests/src/test/java/org/teavm/classlib/java/net/URLEncoderTest.java @@ -51,13 +51,5 @@ public class URLEncoderTest { } catch (UnsupportedEncodingException e) { // expected } - - // Regression for HARMONY-1233 - try { - URLEncoder.encode(null, "harmony"); - fail("NullPointerException expected"); - } catch (NullPointerException e) { - // expected - } } } diff --git a/tests/src/test/java/org/teavm/classlib/java/util/VectorTest.java b/tests/src/test/java/org/teavm/classlib/java/util/VectorTest.java index ae7531498..bd7ba833c 100644 --- a/tests/src/test/java/org/teavm/classlib/java/util/VectorTest.java +++ b/tests/src/test/java/org/teavm/classlib/java/util/VectorTest.java @@ -812,13 +812,6 @@ public class VectorTest { } catch (IndexOutOfBoundsException e) { // Excepted } - - try { - myVector.removeRange(2, 1); - fail("Should throw IndexOutOfBoundsException"); - } catch (IndexOutOfBoundsException e) { - // Excepted - } } @Test