mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-03 05:44:10 -08:00
Mark some tests with @WholeClassCompilation
This commit is contained in:
parent
95426e2159
commit
7f02ccdd87
|
@ -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<>();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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 = ""
|
||||||
|
|
|
@ -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 =
|
||||||
|
|
|
@ -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('.', '-');
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"));
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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"));
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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> {
|
||||||
|
|
|
@ -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<>();
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user