mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -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.dom.html.HTMLDocument;
|
||||
import org.teavm.jso.dom.html.HTMLElement;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jaroslav Tulach <jtulach@netbeans.org>
|
||||
*/
|
||||
@WholeClassCompilation
|
||||
public final class KnockoutFXTest extends KnockoutTCK implements Transfer, WSTransfer<WSImpl> {
|
||||
private KO4J ko4j = new KO4J();
|
||||
private final Map<String, Request> urlMap = new HashMap<>();
|
||||
|
|
|
@ -25,6 +25,7 @@ import org.junit.Test;
|
|||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.SkipJVM;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -32,6 +33,7 @@ import org.teavm.junit.TeaVMTestRunner;
|
|||
*/
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@SkipJVM
|
||||
@WholeClassCompilation
|
||||
public class KnockoutTCKTest {
|
||||
private final ConvertTypesTest convertTypesTest = new ConvertTypesTest();
|
||||
private final JSONTest jsonTest = new JSONTest();
|
||||
|
|
|
@ -43,9 +43,11 @@ import java.io.InputStreamReader;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@SuppressWarnings("resource")
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BufferedInputStreamTest {
|
||||
@Test
|
||||
public void test_ConstructorLjava_io_InputStream() {
|
||||
|
|
|
@ -23,8 +23,10 @@ import java.io.StringReader;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BufferedReaderTest {
|
||||
@Test
|
||||
public void readsCharacters() throws IOException {
|
||||
|
|
|
@ -30,8 +30,10 @@ import org.junit.After;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BufferedWriterTest {
|
||||
private BufferedWriter bw;
|
||||
private StringWriter sw;
|
||||
|
|
|
@ -20,8 +20,10 @@ import java.io.ByteArrayInputStream;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class ByteArrayInputStreamTest {
|
||||
@Test
|
||||
public void readsSingleByte() {
|
||||
|
|
|
@ -24,8 +24,10 @@ import java.io.IOException;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class CharArrayReaderTest {
|
||||
char[] hw = { 'H', 'e', 'l', 'l', 'o', 'W', 'o', 'r', 'l', 'd' };
|
||||
CharArrayReader cr;
|
||||
|
|
|
@ -25,8 +25,10 @@ import java.io.StringWriter;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class CharArrayWriterTest {
|
||||
char[] hw = { 'H', 'e', 'l', 'l', 'o', 'W', 'o', 'r', 'l', 'd' };
|
||||
CharArrayWriter cw = new CharArrayWriter();
|
||||
|
|
|
@ -31,8 +31,10 @@ import org.junit.After;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class FileInputStreamTest {
|
||||
public String fileName;
|
||||
public String fileString = ""
|
||||
|
|
|
@ -28,8 +28,10 @@ import org.junit.After;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class FileOutputStreamTest {
|
||||
private String fileName;
|
||||
private String fileString =
|
||||
|
|
|
@ -37,8 +37,10 @@ import org.junit.Test;
|
|||
import org.junit.runner.RunWith;
|
||||
import org.teavm.interop.PlatformMarker;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class FileTest {
|
||||
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.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class InputStreamReaderTest {
|
||||
@Test
|
||||
public void readsChars() throws IOException {
|
||||
|
|
|
@ -45,8 +45,10 @@ import java.io.UnsupportedEncodingException;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class OutputStreamWriterTest {
|
||||
|
||||
private static final int UPPER = 0xd800;
|
||||
|
|
|
@ -47,8 +47,10 @@ import java.util.Locale;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class PrintWriterTest {
|
||||
static class Bogus {
|
||||
public String toString() {
|
||||
|
|
|
@ -41,9 +41,11 @@ import java.io.PushbackInputStream;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@SuppressWarnings("resource")
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class PushbackInputStreamTest {
|
||||
PushbackInputStream pis;
|
||||
|
||||
|
|
|
@ -26,8 +26,10 @@ import java.io.StringReader;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class StreamTokenizerTest {
|
||||
private StreamTokenizer st;
|
||||
|
||||
|
|
|
@ -23,8 +23,10 @@ import java.io.StringWriter;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class StringWriterTest {
|
||||
StringWriter sw = new StringWriter();
|
||||
|
||||
|
|
|
@ -42,8 +42,10 @@ import java.math.RoundingMode;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BigDecimalArithmeticTest {
|
||||
/**
|
||||
* Add two numbers of equal positive scales
|
||||
|
|
|
@ -47,8 +47,10 @@ import java.math.RoundingMode;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BigDecimalCompareTest {
|
||||
/**
|
||||
* Abs() of a negative BigDecimal
|
||||
|
|
|
@ -45,8 +45,10 @@ import java.math.RoundingMode;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BigDecimalConstructorsTest {
|
||||
/**
|
||||
* check ONE
|
||||
|
|
|
@ -44,8 +44,10 @@ import java.math.BigInteger;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BigDecimalConvertTest {
|
||||
/**
|
||||
* Double value of a negative BigDecimal
|
||||
|
|
|
@ -45,8 +45,10 @@ import java.math.RoundingMode;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BigDecimalScaleOperationsTest {
|
||||
/**
|
||||
* Check the default scale
|
||||
|
|
|
@ -42,8 +42,10 @@ import java.math.BigInteger;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BigIntegerAddTest {
|
||||
/**
|
||||
* Add two positive numbers of the same length
|
||||
|
|
|
@ -42,8 +42,10 @@ import java.math.BigInteger;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BigIntegerAndTest {
|
||||
/**
|
||||
* And for zero and a positive number
|
||||
|
|
|
@ -43,8 +43,10 @@ import java.math.BigInteger;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BigIntegerCompareTest {
|
||||
/**
|
||||
* abs() for a positive number
|
||||
|
|
|
@ -44,8 +44,10 @@ import java.util.Random;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BigIntegerConstructorsTest {
|
||||
/**
|
||||
* Create a number from an array of bytes.
|
||||
|
|
|
@ -42,8 +42,10 @@ import java.math.BigInteger;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BigIntegerConvertTest {
|
||||
/**
|
||||
* Return the double value of ZERO.
|
||||
|
|
|
@ -43,8 +43,10 @@ import java.math.BigInteger;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BigIntegerDivideTest {
|
||||
/**
|
||||
* Divide by zero
|
||||
|
|
|
@ -41,8 +41,10 @@ import java.math.BigInteger;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BigIntegerHashCodeTest {
|
||||
/**
|
||||
* Test hash codes for the same object
|
||||
|
|
|
@ -43,8 +43,10 @@ import java.math.BigInteger;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BigIntegerModPowTest {
|
||||
/**
|
||||
* modPow: non-positive modulus
|
||||
|
|
|
@ -43,8 +43,10 @@ import java.math.BigInteger;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BigIntegerMultiplyTest {
|
||||
/**
|
||||
* Multiply two negative numbers of the same length
|
||||
|
|
|
@ -42,8 +42,10 @@ import java.math.BigInteger;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BigIntegerNotTest {
|
||||
/**
|
||||
* andNot for two positive numbers; the first is longer
|
||||
|
|
|
@ -43,8 +43,10 @@ import java.math.BigInteger;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BigIntegerOperateBitsTest {
|
||||
/**
|
||||
* bitCount() of zero.
|
||||
|
|
|
@ -42,8 +42,10 @@ import java.math.BigInteger;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BigIntegerOrTest {
|
||||
/**
|
||||
* Or for zero and a positive number
|
||||
|
|
|
@ -42,8 +42,10 @@ import java.math.BigInteger;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BigIntegerSubtractTest {
|
||||
/**
|
||||
* Subtract two positive numbers of the same length.
|
||||
|
|
|
@ -41,8 +41,10 @@ import java.math.BigInteger;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BigIntegerToStringTest {
|
||||
/**
|
||||
* 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.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BigIntegerXorTest {
|
||||
/**
|
||||
* Xor for zero and a positive number
|
||||
|
|
|
@ -26,8 +26,10 @@ import java.net.URLEncoder;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class URLDecoderTest {
|
||||
|
||||
@Test
|
||||
|
|
|
@ -25,8 +25,10 @@ import java.net.URLEncoder;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class URLEncoderTest {
|
||||
|
||||
@Test
|
||||
|
|
|
@ -31,8 +31,10 @@ import java.net.URLStreamHandlerFactory;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class URLTest {
|
||||
URL u;
|
||||
URL u1;
|
||||
|
|
|
@ -27,8 +27,10 @@ import java.nio.ReadOnlyBufferException;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class ByteBufferTest {
|
||||
@Test
|
||||
public void allocatesDirect() {
|
||||
|
|
|
@ -27,8 +27,10 @@ import java.nio.ShortBuffer;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class ByteBufferWrapperTest {
|
||||
@Test
|
||||
public void wrapsIntoShortBuffer() {
|
||||
|
|
|
@ -28,8 +28,10 @@ import java.nio.ReadOnlyBufferException;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class CharBufferTest {
|
||||
@Test
|
||||
public void allocates() {
|
||||
|
|
|
@ -27,8 +27,10 @@ import java.nio.ReadOnlyBufferException;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class DoubleBufferTest {
|
||||
@Test
|
||||
public void allocatesSimple() {
|
||||
|
|
|
@ -27,8 +27,10 @@ import java.nio.ReadOnlyBufferException;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class FloatBufferTest {
|
||||
@Test
|
||||
public void allocatesSimple() {
|
||||
|
|
|
@ -27,8 +27,10 @@ import java.nio.ReadOnlyBufferException;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class IntBufferTest {
|
||||
@Test
|
||||
public void allocatesSimple() {
|
||||
|
|
|
@ -27,8 +27,10 @@ import java.nio.ReadOnlyBufferException;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class LongBufferTest {
|
||||
@Test
|
||||
public void allocatesSimple() {
|
||||
|
|
|
@ -27,8 +27,10 @@ import java.nio.ShortBuffer;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class ShortBufferTest {
|
||||
@Test
|
||||
public void allocatesSimple() {
|
||||
|
|
|
@ -28,8 +28,10 @@ import java.util.Arrays;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class UTF8Test {
|
||||
private static char[] hexDigits = "0123456789ABCDEF".toCharArray();
|
||||
// Fragment from "The Idiot" by F. Dostoevsky
|
||||
|
|
|
@ -26,8 +26,10 @@ import java.util.TimeZone;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class DateFormatTest {
|
||||
public DateFormatTest() {
|
||||
TimeZone.setDefault(TimeZone.getTimeZone("GMT"));
|
||||
|
|
|
@ -39,8 +39,10 @@ import org.junit.After;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class MessageFormatTest {
|
||||
private MessageFormat format1;
|
||||
private MessageFormat format2;
|
||||
|
|
|
@ -27,8 +27,10 @@ import org.junit.Test;
|
|||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.SkipJVM;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class SimpleDateFormatTest {
|
||||
public SimpleDateFormatTest() {
|
||||
TimeZone.setDefault(TimeZone.getTimeZone("GMT"));
|
||||
|
|
|
@ -22,8 +22,10 @@ import java.util.stream.Collectors;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class ArraysTest {
|
||||
@Test
|
||||
public void arraySorted() {
|
||||
|
|
|
@ -55,8 +55,10 @@ import java.util.BitSet;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class BitSetTest {
|
||||
BitSet eightbs;
|
||||
|
||||
|
|
|
@ -43,8 +43,10 @@ import java.util.TimeZone;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class CalendarTest {
|
||||
Locale defaultLocale;
|
||||
|
||||
|
|
|
@ -32,8 +32,10 @@ import java.util.UnknownFormatConversionException;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class FormatterTest {
|
||||
@Test(expected = UnknownFormatConversionException.class)
|
||||
public void unexpectedEndOfFormatString() {
|
||||
|
|
|
@ -72,8 +72,10 @@ import org.junit.runner.RunWith;
|
|||
import org.teavm.classlib.support.MapTest2Support;
|
||||
import org.teavm.classlib.support.UnmodifiableCollectionTestSupport;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class HashtableTest {
|
||||
|
||||
private Hashtable<String, String> ht10;
|
||||
|
|
|
@ -40,8 +40,10 @@ import java.util.Objects;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class IdentityHashMapTest {
|
||||
|
||||
@Test
|
||||
|
|
|
@ -52,10 +52,12 @@ import org.junit.Test;
|
|||
import org.junit.runner.RunWith;
|
||||
import org.teavm.classlib.support.MapTest2Support;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@SuppressWarnings({ "UnnecessaryUnboxing", "ClassInitializerMayBeStatic", "UnnecessaryTemporaryOnConversionToString",
|
||||
"MismatchedQueryAndUpdateOfCollection", "StringEquality" })
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class LinkedHashMapTest {
|
||||
|
||||
private LinkedHashMap<Object, Object> hm;
|
||||
|
|
|
@ -27,8 +27,10 @@ import java.util.NoSuchElementException;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class LinkedListTest {
|
||||
@Test
|
||||
public void emptyListCreated() {
|
||||
|
|
|
@ -31,8 +31,10 @@ import java.util.function.IntConsumer;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class SpliteratorsTest {
|
||||
|
||||
@Test
|
||||
|
|
|
@ -41,9 +41,11 @@ import java.util.StringTokenizer;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@SuppressWarnings({ "RedundantStringConstructorCall", "RedundantCast" })
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class StringTokenizerTest {
|
||||
@Test
|
||||
public void test_ConstructorLjava_lang_StringLjava_lang_String() {
|
||||
|
|
|
@ -67,9 +67,11 @@ import java.util.TreeMap;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@SuppressWarnings({ "UnnecessaryTemporaryOnConversionToString", "SuspiciousMethodCalls" })
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class TreeMapTest {
|
||||
|
||||
public static class ReversedComparator implements Comparator<Object> {
|
||||
|
|
|
@ -67,8 +67,10 @@ import org.junit.Test;
|
|||
import org.junit.runner.RunWith;
|
||||
import org.teavm.classlib.support.ListTestSupport;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class VectorTest {
|
||||
Object[] objArray;
|
||||
private Vector<Object> tVector = new Vector<>();
|
||||
|
|
|
@ -43,9 +43,11 @@ import java.util.regex.PatternSyntaxException;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@SuppressWarnings("nls")
|
||||
@WholeClassCompilation
|
||||
public class Matcher2Test {
|
||||
@Test
|
||||
public void test_toString() {
|
||||
|
|
|
@ -42,9 +42,11 @@ import java.util.regex.Pattern;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@SuppressWarnings("nls")
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class MatcherTest {
|
||||
String[] testPatterns = {
|
||||
"(a|b)*abb",
|
||||
|
|
|
@ -41,12 +41,14 @@ import java.util.regex.PatternSyntaxException;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
/**
|
||||
* Tests Pattern compilation modes and modes triggered in pattern strings
|
||||
*/
|
||||
@SuppressWarnings("nls")
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class ModeTest {
|
||||
@Test
|
||||
public void testCase() throws PatternSyntaxException {
|
||||
|
|
|
@ -38,12 +38,14 @@ import junit.framework.TestCase;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
/**
|
||||
* Tests simple Pattern compilation and Matcher methods
|
||||
*/
|
||||
@SuppressWarnings("nls")
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class Pattern2Test extends TestCase {
|
||||
@Test
|
||||
public void testSimpleMatch() throws PatternSyntaxException {
|
||||
|
|
|
@ -37,12 +37,14 @@ import java.util.regex.Pattern;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
/**
|
||||
* Test boundary and error conditions in java.util.regex.Pattern
|
||||
*/
|
||||
@SuppressWarnings("nls")
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class PatternErrorTest {
|
||||
@Test
|
||||
public void testCompileErrors() throws Exception {
|
||||
|
|
|
@ -39,12 +39,14 @@ import java.util.regex.PatternSyntaxException;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
/**
|
||||
* TODO Type description
|
||||
*/
|
||||
@SuppressWarnings("nls")
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class PatternSyntaxExceptionTest {
|
||||
@Test
|
||||
public void testCase() {
|
||||
|
|
|
@ -44,8 +44,10 @@ import java.util.regex.PatternSyntaxException;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class PatternTest {
|
||||
String[] testPatterns = {
|
||||
"(a|b)*abb",
|
||||
|
|
|
@ -39,8 +39,10 @@ import java.util.regex.PatternSyntaxException;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class ReplaceTest {
|
||||
|
||||
@Test
|
||||
|
|
|
@ -40,8 +40,10 @@ import java.util.regex.PatternSyntaxException;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.teavm.junit.TeaVMTestRunner;
|
||||
import org.teavm.junit.WholeClassCompilation;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@WholeClassCompilation
|
||||
public class SplitTest {
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue
Block a user