Mark some tests with @WholeClassCompilation

This commit is contained in:
Alexey Andreev 2020-02-27 18:43:27 +03:00
parent 95426e2159
commit 7f02ccdd87
73 changed files with 146 additions and 0 deletions

View File

@ -37,11 +37,13 @@ import org.teavm.jso.JSObject;
import org.teavm.jso.browser.Window; import org.teavm.jso.browser.Window;
import org.teavm.jso.dom.html.HTMLDocument; import org.teavm.jso.dom.html.HTMLDocument;
import org.teavm.jso.dom.html.HTMLElement; import org.teavm.jso.dom.html.HTMLElement;
import org.teavm.junit.WholeClassCompilation;
/** /**
* *
* @author Jaroslav Tulach <jtulach@netbeans.org> * @author Jaroslav Tulach <jtulach@netbeans.org>
*/ */
@WholeClassCompilation
public final class KnockoutFXTest extends KnockoutTCK implements Transfer, WSTransfer<WSImpl> { public final class KnockoutFXTest extends KnockoutTCK implements Transfer, WSTransfer<WSImpl> {
private KO4J ko4j = new KO4J(); private KO4J ko4j = new KO4J();
private final Map<String, Request> urlMap = new HashMap<>(); private final Map<String, Request> urlMap = new HashMap<>();

View File

@ -25,6 +25,7 @@ import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.SkipJVM; import org.teavm.junit.SkipJVM;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
/** /**
* *
@ -32,6 +33,7 @@ import org.teavm.junit.TeaVMTestRunner;
*/ */
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@SkipJVM @SkipJVM
@WholeClassCompilation
public class KnockoutTCKTest { public class KnockoutTCKTest {
private final ConvertTypesTest convertTypesTest = new ConvertTypesTest(); private final ConvertTypesTest convertTypesTest = new ConvertTypesTest();
private final JSONTest jsonTest = new JSONTest(); private final JSONTest jsonTest = new JSONTest();

View File

@ -43,9 +43,11 @@ import java.io.InputStreamReader;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@SuppressWarnings("resource") @SuppressWarnings("resource")
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BufferedInputStreamTest { public class BufferedInputStreamTest {
@Test @Test
public void test_ConstructorLjava_io_InputStream() { public void test_ConstructorLjava_io_InputStream() {

View File

@ -23,8 +23,10 @@ import java.io.StringReader;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BufferedReaderTest { public class BufferedReaderTest {
@Test @Test
public void readsCharacters() throws IOException { public void readsCharacters() throws IOException {

View File

@ -30,8 +30,10 @@ import org.junit.After;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BufferedWriterTest { public class BufferedWriterTest {
private BufferedWriter bw; private BufferedWriter bw;
private StringWriter sw; private StringWriter sw;

View File

@ -20,8 +20,10 @@ import java.io.ByteArrayInputStream;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class ByteArrayInputStreamTest { public class ByteArrayInputStreamTest {
@Test @Test
public void readsSingleByte() { public void readsSingleByte() {

View File

@ -24,8 +24,10 @@ import java.io.IOException;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class CharArrayReaderTest { public class CharArrayReaderTest {
char[] hw = { 'H', 'e', 'l', 'l', 'o', 'W', 'o', 'r', 'l', 'd' }; char[] hw = { 'H', 'e', 'l', 'l', 'o', 'W', 'o', 'r', 'l', 'd' };
CharArrayReader cr; CharArrayReader cr;

View File

@ -25,8 +25,10 @@ import java.io.StringWriter;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class CharArrayWriterTest { public class CharArrayWriterTest {
char[] hw = { 'H', 'e', 'l', 'l', 'o', 'W', 'o', 'r', 'l', 'd' }; char[] hw = { 'H', 'e', 'l', 'l', 'o', 'W', 'o', 'r', 'l', 'd' };
CharArrayWriter cw = new CharArrayWriter(); CharArrayWriter cw = new CharArrayWriter();

View File

@ -31,8 +31,10 @@ import org.junit.After;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class FileInputStreamTest { public class FileInputStreamTest {
public String fileName; public String fileName;
public String fileString = "" public String fileString = ""

View File

@ -28,8 +28,10 @@ import org.junit.After;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class FileOutputStreamTest { public class FileOutputStreamTest {
private String fileName; private String fileName;
private String fileString = private String fileString =

View File

@ -37,8 +37,10 @@ import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.interop.PlatformMarker; import org.teavm.interop.PlatformMarker;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class FileTest { public class FileTest {
private static String platformId = "JDK" + System.getProperty("java.vm.version").replace('.', '-'); private static String platformId = "JDK" + System.getProperty("java.vm.version").replace('.', '-');

View File

@ -22,8 +22,10 @@ import java.io.InputStreamReader;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class InputStreamReaderTest { public class InputStreamReaderTest {
@Test @Test
public void readsChars() throws IOException { public void readsChars() throws IOException {

View File

@ -45,8 +45,10 @@ import java.io.UnsupportedEncodingException;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class OutputStreamWriterTest { public class OutputStreamWriterTest {
private static final int UPPER = 0xd800; private static final int UPPER = 0xd800;

View File

@ -47,8 +47,10 @@ import java.util.Locale;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class PrintWriterTest { public class PrintWriterTest {
static class Bogus { static class Bogus {
public String toString() { public String toString() {

View File

@ -41,9 +41,11 @@ import java.io.PushbackInputStream;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@SuppressWarnings("resource") @SuppressWarnings("resource")
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class PushbackInputStreamTest { public class PushbackInputStreamTest {
PushbackInputStream pis; PushbackInputStream pis;

View File

@ -26,8 +26,10 @@ import java.io.StringReader;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class StreamTokenizerTest { public class StreamTokenizerTest {
private StreamTokenizer st; private StreamTokenizer st;

View File

@ -23,8 +23,10 @@ import java.io.StringWriter;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class StringWriterTest { public class StringWriterTest {
StringWriter sw = new StringWriter(); StringWriter sw = new StringWriter();

View File

@ -42,8 +42,10 @@ import java.math.RoundingMode;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BigDecimalArithmeticTest { public class BigDecimalArithmeticTest {
/** /**
* Add two numbers of equal positive scales * Add two numbers of equal positive scales

View File

@ -47,8 +47,10 @@ import java.math.RoundingMode;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BigDecimalCompareTest { public class BigDecimalCompareTest {
/** /**
* Abs() of a negative BigDecimal * Abs() of a negative BigDecimal

View File

@ -45,8 +45,10 @@ import java.math.RoundingMode;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BigDecimalConstructorsTest { public class BigDecimalConstructorsTest {
/** /**
* check ONE * check ONE

View File

@ -44,8 +44,10 @@ import java.math.BigInteger;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BigDecimalConvertTest { public class BigDecimalConvertTest {
/** /**
* Double value of a negative BigDecimal * Double value of a negative BigDecimal

View File

@ -45,8 +45,10 @@ import java.math.RoundingMode;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BigDecimalScaleOperationsTest { public class BigDecimalScaleOperationsTest {
/** /**
* Check the default scale * Check the default scale

View File

@ -42,8 +42,10 @@ import java.math.BigInteger;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BigIntegerAddTest { public class BigIntegerAddTest {
/** /**
* Add two positive numbers of the same length * Add two positive numbers of the same length

View File

@ -42,8 +42,10 @@ import java.math.BigInteger;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BigIntegerAndTest { public class BigIntegerAndTest {
/** /**
* And for zero and a positive number * And for zero and a positive number

View File

@ -43,8 +43,10 @@ import java.math.BigInteger;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BigIntegerCompareTest { public class BigIntegerCompareTest {
/** /**
* abs() for a positive number * abs() for a positive number

View File

@ -44,8 +44,10 @@ import java.util.Random;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BigIntegerConstructorsTest { public class BigIntegerConstructorsTest {
/** /**
* Create a number from an array of bytes. * Create a number from an array of bytes.

View File

@ -42,8 +42,10 @@ import java.math.BigInteger;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BigIntegerConvertTest { public class BigIntegerConvertTest {
/** /**
* Return the double value of ZERO. * Return the double value of ZERO.

View File

@ -43,8 +43,10 @@ import java.math.BigInteger;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BigIntegerDivideTest { public class BigIntegerDivideTest {
/** /**
* Divide by zero * Divide by zero

View File

@ -41,8 +41,10 @@ import java.math.BigInteger;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BigIntegerHashCodeTest { public class BigIntegerHashCodeTest {
/** /**
* Test hash codes for the same object * Test hash codes for the same object

View File

@ -43,8 +43,10 @@ import java.math.BigInteger;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BigIntegerModPowTest { public class BigIntegerModPowTest {
/** /**
* modPow: non-positive modulus * modPow: non-positive modulus

View File

@ -43,8 +43,10 @@ import java.math.BigInteger;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BigIntegerMultiplyTest { public class BigIntegerMultiplyTest {
/** /**
* Multiply two negative numbers of the same length * Multiply two negative numbers of the same length

View File

@ -42,8 +42,10 @@ import java.math.BigInteger;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BigIntegerNotTest { public class BigIntegerNotTest {
/** /**
* andNot for two positive numbers; the first is longer * andNot for two positive numbers; the first is longer

View File

@ -43,8 +43,10 @@ import java.math.BigInteger;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BigIntegerOperateBitsTest { public class BigIntegerOperateBitsTest {
/** /**
* bitCount() of zero. * bitCount() of zero.

View File

@ -42,8 +42,10 @@ import java.math.BigInteger;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BigIntegerOrTest { public class BigIntegerOrTest {
/** /**
* Or for zero and a positive number * Or for zero and a positive number

View File

@ -42,8 +42,10 @@ import java.math.BigInteger;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BigIntegerSubtractTest { public class BigIntegerSubtractTest {
/** /**
* Subtract two positive numbers of the same length. * Subtract two positive numbers of the same length.

View File

@ -41,8 +41,10 @@ import java.math.BigInteger;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BigIntegerToStringTest { public class BigIntegerToStringTest {
/** /**
* If 36 < radix < 2 it should be set to 10 * If 36 < radix < 2 it should be set to 10

View File

@ -41,8 +41,10 @@ import java.math.BigInteger;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BigIntegerXorTest { public class BigIntegerXorTest {
/** /**
* Xor for zero and a positive number * Xor for zero and a positive number

View File

@ -26,8 +26,10 @@ import java.net.URLEncoder;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class URLDecoderTest { public class URLDecoderTest {
@Test @Test

View File

@ -25,8 +25,10 @@ import java.net.URLEncoder;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class URLEncoderTest { public class URLEncoderTest {
@Test @Test

View File

@ -31,8 +31,10 @@ import java.net.URLStreamHandlerFactory;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class URLTest { public class URLTest {
URL u; URL u;
URL u1; URL u1;

View File

@ -27,8 +27,10 @@ import java.nio.ReadOnlyBufferException;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class ByteBufferTest { public class ByteBufferTest {
@Test @Test
public void allocatesDirect() { public void allocatesDirect() {

View File

@ -27,8 +27,10 @@ import java.nio.ShortBuffer;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class ByteBufferWrapperTest { public class ByteBufferWrapperTest {
@Test @Test
public void wrapsIntoShortBuffer() { public void wrapsIntoShortBuffer() {

View File

@ -28,8 +28,10 @@ import java.nio.ReadOnlyBufferException;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class CharBufferTest { public class CharBufferTest {
@Test @Test
public void allocates() { public void allocates() {

View File

@ -27,8 +27,10 @@ import java.nio.ReadOnlyBufferException;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class DoubleBufferTest { public class DoubleBufferTest {
@Test @Test
public void allocatesSimple() { public void allocatesSimple() {

View File

@ -27,8 +27,10 @@ import java.nio.ReadOnlyBufferException;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class FloatBufferTest { public class FloatBufferTest {
@Test @Test
public void allocatesSimple() { public void allocatesSimple() {

View File

@ -27,8 +27,10 @@ import java.nio.ReadOnlyBufferException;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class IntBufferTest { public class IntBufferTest {
@Test @Test
public void allocatesSimple() { public void allocatesSimple() {

View File

@ -27,8 +27,10 @@ import java.nio.ReadOnlyBufferException;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class LongBufferTest { public class LongBufferTest {
@Test @Test
public void allocatesSimple() { public void allocatesSimple() {

View File

@ -27,8 +27,10 @@ import java.nio.ShortBuffer;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class ShortBufferTest { public class ShortBufferTest {
@Test @Test
public void allocatesSimple() { public void allocatesSimple() {

View File

@ -28,8 +28,10 @@ import java.util.Arrays;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class UTF8Test { public class UTF8Test {
private static char[] hexDigits = "0123456789ABCDEF".toCharArray(); private static char[] hexDigits = "0123456789ABCDEF".toCharArray();
// Fragment from "The Idiot" by F. Dostoevsky // Fragment from "The Idiot" by F. Dostoevsky

View File

@ -26,8 +26,10 @@ import java.util.TimeZone;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class DateFormatTest { public class DateFormatTest {
public DateFormatTest() { public DateFormatTest() {
TimeZone.setDefault(TimeZone.getTimeZone("GMT")); TimeZone.setDefault(TimeZone.getTimeZone("GMT"));

View File

@ -39,8 +39,10 @@ import org.junit.After;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class MessageFormatTest { public class MessageFormatTest {
private MessageFormat format1; private MessageFormat format1;
private MessageFormat format2; private MessageFormat format2;

View File

@ -27,8 +27,10 @@ import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.SkipJVM; import org.teavm.junit.SkipJVM;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class SimpleDateFormatTest { public class SimpleDateFormatTest {
public SimpleDateFormatTest() { public SimpleDateFormatTest() {
TimeZone.setDefault(TimeZone.getTimeZone("GMT")); TimeZone.setDefault(TimeZone.getTimeZone("GMT"));

View File

@ -22,8 +22,10 @@ import java.util.stream.Collectors;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class ArraysTest { public class ArraysTest {
@Test @Test
public void arraySorted() { public void arraySorted() {

View File

@ -55,8 +55,10 @@ import java.util.BitSet;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class BitSetTest { public class BitSetTest {
BitSet eightbs; BitSet eightbs;

View File

@ -43,8 +43,10 @@ import java.util.TimeZone;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class CalendarTest { public class CalendarTest {
Locale defaultLocale; Locale defaultLocale;

View File

@ -32,8 +32,10 @@ import java.util.UnknownFormatConversionException;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class FormatterTest { public class FormatterTest {
@Test(expected = UnknownFormatConversionException.class) @Test(expected = UnknownFormatConversionException.class)
public void unexpectedEndOfFormatString() { public void unexpectedEndOfFormatString() {

View File

@ -72,8 +72,10 @@ import org.junit.runner.RunWith;
import org.teavm.classlib.support.MapTest2Support; import org.teavm.classlib.support.MapTest2Support;
import org.teavm.classlib.support.UnmodifiableCollectionTestSupport; import org.teavm.classlib.support.UnmodifiableCollectionTestSupport;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class HashtableTest { public class HashtableTest {
private Hashtable<String, String> ht10; private Hashtable<String, String> ht10;

View File

@ -40,8 +40,10 @@ import java.util.Objects;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class IdentityHashMapTest { public class IdentityHashMapTest {
@Test @Test

View File

@ -52,10 +52,12 @@ import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.classlib.support.MapTest2Support; import org.teavm.classlib.support.MapTest2Support;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@SuppressWarnings({ "UnnecessaryUnboxing", "ClassInitializerMayBeStatic", "UnnecessaryTemporaryOnConversionToString", @SuppressWarnings({ "UnnecessaryUnboxing", "ClassInitializerMayBeStatic", "UnnecessaryTemporaryOnConversionToString",
"MismatchedQueryAndUpdateOfCollection", "StringEquality" }) "MismatchedQueryAndUpdateOfCollection", "StringEquality" })
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class LinkedHashMapTest { public class LinkedHashMapTest {
private LinkedHashMap<Object, Object> hm; private LinkedHashMap<Object, Object> hm;

View File

@ -27,8 +27,10 @@ import java.util.NoSuchElementException;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class LinkedListTest { public class LinkedListTest {
@Test @Test
public void emptyListCreated() { public void emptyListCreated() {

View File

@ -31,8 +31,10 @@ import java.util.function.IntConsumer;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class SpliteratorsTest { public class SpliteratorsTest {
@Test @Test

View File

@ -41,9 +41,11 @@ import java.util.StringTokenizer;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@SuppressWarnings({ "RedundantStringConstructorCall", "RedundantCast" }) @SuppressWarnings({ "RedundantStringConstructorCall", "RedundantCast" })
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class StringTokenizerTest { public class StringTokenizerTest {
@Test @Test
public void test_ConstructorLjava_lang_StringLjava_lang_String() { public void test_ConstructorLjava_lang_StringLjava_lang_String() {

View File

@ -67,9 +67,11 @@ import java.util.TreeMap;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@SuppressWarnings({ "UnnecessaryTemporaryOnConversionToString", "SuspiciousMethodCalls" }) @SuppressWarnings({ "UnnecessaryTemporaryOnConversionToString", "SuspiciousMethodCalls" })
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TreeMapTest { public class TreeMapTest {
public static class ReversedComparator implements Comparator<Object> { public static class ReversedComparator implements Comparator<Object> {

View File

@ -67,8 +67,10 @@ import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.classlib.support.ListTestSupport; import org.teavm.classlib.support.ListTestSupport;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class VectorTest { public class VectorTest {
Object[] objArray; Object[] objArray;
private Vector<Object> tVector = new Vector<>(); private Vector<Object> tVector = new Vector<>();

View File

@ -43,9 +43,11 @@ import java.util.regex.PatternSyntaxException;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@SuppressWarnings("nls") @SuppressWarnings("nls")
@WholeClassCompilation
public class Matcher2Test { public class Matcher2Test {
@Test @Test
public void test_toString() { public void test_toString() {

View File

@ -42,9 +42,11 @@ import java.util.regex.Pattern;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@SuppressWarnings("nls") @SuppressWarnings("nls")
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class MatcherTest { public class MatcherTest {
String[] testPatterns = { String[] testPatterns = {
"(a|b)*abb", "(a|b)*abb",

View File

@ -41,12 +41,14 @@ import java.util.regex.PatternSyntaxException;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
/** /**
* Tests Pattern compilation modes and modes triggered in pattern strings * Tests Pattern compilation modes and modes triggered in pattern strings
*/ */
@SuppressWarnings("nls") @SuppressWarnings("nls")
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class ModeTest { public class ModeTest {
@Test @Test
public void testCase() throws PatternSyntaxException { public void testCase() throws PatternSyntaxException {

View File

@ -38,12 +38,14 @@ import junit.framework.TestCase;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
/** /**
* Tests simple Pattern compilation and Matcher methods * Tests simple Pattern compilation and Matcher methods
*/ */
@SuppressWarnings("nls") @SuppressWarnings("nls")
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class Pattern2Test extends TestCase { public class Pattern2Test extends TestCase {
@Test @Test
public void testSimpleMatch() throws PatternSyntaxException { public void testSimpleMatch() throws PatternSyntaxException {

View File

@ -37,12 +37,14 @@ import java.util.regex.Pattern;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
/** /**
* Test boundary and error conditions in java.util.regex.Pattern * Test boundary and error conditions in java.util.regex.Pattern
*/ */
@SuppressWarnings("nls") @SuppressWarnings("nls")
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class PatternErrorTest { public class PatternErrorTest {
@Test @Test
public void testCompileErrors() throws Exception { public void testCompileErrors() throws Exception {

View File

@ -39,12 +39,14 @@ import java.util.regex.PatternSyntaxException;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
/** /**
* TODO Type description * TODO Type description
*/ */
@SuppressWarnings("nls") @SuppressWarnings("nls")
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class PatternSyntaxExceptionTest { public class PatternSyntaxExceptionTest {
@Test @Test
public void testCase() { public void testCase() {

View File

@ -44,8 +44,10 @@ import java.util.regex.PatternSyntaxException;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class PatternTest { public class PatternTest {
String[] testPatterns = { String[] testPatterns = {
"(a|b)*abb", "(a|b)*abb",

View File

@ -39,8 +39,10 @@ import java.util.regex.PatternSyntaxException;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class ReplaceTest { public class ReplaceTest {
@Test @Test

View File

@ -40,8 +40,10 @@ import java.util.regex.PatternSyntaxException;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner; import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class SplitTest { public class SplitTest {
@Test @Test