Update test annotations

This commit is contained in:
Alexey Andreev 2023-10-01 21:37:23 +02:00
parent db4418ae1d
commit d850780d94
183 changed files with 122 additions and 293 deletions

View File

@ -43,11 +43,9 @@ 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() {

View File

@ -23,10 +23,8 @@ 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 {

View File

@ -30,10 +30,8 @@ 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;

View File

@ -20,10 +20,8 @@ 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() {

View File

@ -26,10 +26,8 @@ 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 CharArrayReaderTest {
char[] hw = { 'H', 'e', 'l', 'l', 'o', 'W', 'o', 'r', 'l', 'd' };
CharArrayReader cr;

View File

@ -25,10 +25,8 @@ 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();

View File

@ -31,10 +31,8 @@ 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 = ""

View File

@ -28,10 +28,8 @@ 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 =

View File

@ -37,10 +37,8 @@ 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('.', '-');

View File

@ -22,10 +22,8 @@ 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 {

View File

@ -22,10 +22,8 @@ import java.io.InputStream;
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 InputStreamTest {
@Test
@SuppressWarnings("resource")

View File

@ -45,10 +45,8 @@ 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;

View File

@ -24,9 +24,11 @@ import java.io.PipedOutputStream;
import org.junit.After;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.teavm.junit.EachTestCompiledSeparately;
import org.teavm.junit.TeaVMTestRunner;
@RunWith(TeaVMTestRunner.class)
@EachTestCompiledSeparately
public class PipedInputStreamTest {
static class PWriter implements Runnable {
PipedOutputStream pos;

View File

@ -25,9 +25,11 @@ import java.io.PipedOutputStream;
import org.junit.After;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.teavm.junit.EachTestCompiledSeparately;
import org.teavm.junit.TeaVMTestRunner;
@RunWith(TeaVMTestRunner.class)
@EachTestCompiledSeparately
public class PipedOutputStreamTest {
static class PReader implements Runnable {
PipedInputStream reader;

View File

@ -47,10 +47,8 @@ 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() {

View File

@ -41,11 +41,9 @@ 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;

View File

@ -26,10 +26,8 @@ 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;

View File

@ -23,10 +23,8 @@ 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();

View File

@ -20,9 +20,7 @@ import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@WholeClassCompilation
@RunWith(TeaVMTestRunner.class)
public class ByteTest {
@Test

View File

@ -23,9 +23,11 @@ import java.io.InputStream;
import java.io.InputStreamReader;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.teavm.junit.EachTestCompiledSeparately;
import org.teavm.junit.TeaVMTestRunner;
@RunWith(TeaVMTestRunner.class)
@EachTestCompiledSeparately
public class ClassLoaderTest {
@Test
public void loadsResources() {

View File

@ -20,9 +20,11 @@ import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.teavm.junit.EachTestCompiledSeparately;
import org.teavm.junit.TeaVMTestRunner;
@RunWith(TeaVMTestRunner.class)
@EachTestCompiledSeparately
public class EnumTest {
private enum Foo {
A, B, C

View File

@ -21,10 +21,8 @@ import static org.junit.Assert.assertTrue;
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 IntegerTest {
@Test
public void testRightUnsignedShift() {

View File

@ -21,10 +21,8 @@ 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 LongTest {
@Test

View File

@ -22,9 +22,11 @@ import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.teavm.junit.EachTestCompiledSeparately;
import org.teavm.junit.TeaVMTestRunner;
@RunWith(TeaVMTestRunner.class)
@EachTestCompiledSeparately
public class ObjectTest {
@Test
public void objectCreated() {

View File

@ -20,9 +20,7 @@ import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@WholeClassCompilation
@RunWith(TeaVMTestRunner.class)
public class ShortTest {
@Test

View File

@ -19,10 +19,8 @@ import static org.junit.Assert.assertEquals;
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 StringBuilderTest {
@Test
public void integerAppended() {

View File

@ -24,9 +24,13 @@ import static org.junit.Assert.assertTrue;
import java.io.UnsupportedEncodingException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.teavm.junit.EachTestCompiledSeparately;
import org.teavm.junit.SkipPlatform;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.TestPlatform;
@RunWith(TeaVMTestRunner.class)
@EachTestCompiledSeparately
public class StringTest {
@Test
public void charsExtracted() {
@ -102,7 +106,7 @@ public class StringTest {
}
@Test
public void endsWithWorkds() {
public void endsWithWorks() {
assertTrue("12345".endsWith("45"));
}
@ -310,12 +314,14 @@ public class StringTest {
}
@Test
@SkipPlatform({ TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI })
public void interns() {
assertSame("xabc".substring(1).intern(), "abcx".substring(0, 3).intern());
assertSame("xabc".substring(1).intern(), "abc");
}
@Test
@SkipPlatform({ TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI })
public void internsConstants() {
assertSame("abc", ("a" + "bc").intern());
}

View File

@ -25,10 +25,12 @@ import java.io.PrintStream;
import java.util.Properties;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.teavm.junit.EachTestCompiledSeparately;
import org.teavm.junit.SkipJVM;
import org.teavm.junit.TeaVMTestRunner;
@RunWith(TeaVMTestRunner.class)
@EachTestCompiledSeparately
public class SystemTest {
@Test
public void copiesArray() {

View File

@ -23,9 +23,11 @@ import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.teavm.junit.EachTestCompiledSeparately;
import org.teavm.junit.TeaVMTestRunner;
@RunWith(TeaVMTestRunner.class)
@EachTestCompiledSeparately
public class ThreadTest {
@Test
public void sleeps() throws InterruptedException {

View File

@ -19,9 +19,11 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.teavm.junit.EachTestCompiledSeparately;
import org.teavm.junit.TeaVMTestRunner;
@RunWith(TeaVMTestRunner.class)
@EachTestCompiledSeparately
public class ThrowableTest {
@Test
public void causeWorks() {

View File

@ -23,9 +23,11 @@ import java.lang.reflect.Method;
import java.util.function.Function;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.teavm.junit.EachTestCompiledSeparately;
import org.teavm.junit.TeaVMTestRunner;
@RunWith(TeaVMTestRunner.class)
@EachTestCompiledSeparately
public class SerializedLambdaTest {
@Test
public void serializableLambdaHasWriteReplaceMethod() throws NoSuchMethodException, InvocationTargetException,

View File

@ -25,11 +25,13 @@ import java.util.concurrent.ArrayBlockingQueue;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.teavm.junit.EachTestCompiledSeparately;
import org.teavm.junit.SkipJVM;
import org.teavm.junit.TeaVMTestRunner;
@RunWith(TeaVMTestRunner.class)
@SkipJVM
@EachTestCompiledSeparately
public class WeakReferenceTest {
private Node lastNode;

View File

@ -20,9 +20,11 @@ import static org.junit.Assert.assertEquals;
import java.lang.reflect.Array;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.teavm.junit.EachTestCompiledSeparately;
import org.teavm.junit.TeaVMTestRunner;
@RunWith(TeaVMTestRunner.class)
@EachTestCompiledSeparately
public class ArrayTest {
@Test
public void createsNewInstance() {

View File

@ -25,9 +25,11 @@ import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.teavm.classlib.support.Reflectable;
import org.teavm.junit.EachTestCompiledSeparately;
import org.teavm.junit.TeaVMTestRunner;
@RunWith(TeaVMTestRunner.class)
@EachTestCompiledSeparately
public class ConstructorTest {
@Test
public void constructorsEnumerated() {

View File

@ -21,10 +21,12 @@ import java.lang.reflect.Field;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.teavm.classlib.support.Reflectable;
import org.teavm.junit.EachTestCompiledSeparately;
import org.teavm.junit.SkipJVM;
import org.teavm.junit.TeaVMTestRunner;
@RunWith(TeaVMTestRunner.class)
@EachTestCompiledSeparately
public class FieldTest {
@Test
public void fieldsEnumerated() {

View File

@ -24,9 +24,11 @@ import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.teavm.classlib.support.Reflectable;
import org.teavm.junit.EachTestCompiledSeparately;
import org.teavm.junit.TeaVMTestRunner;
@RunWith(TeaVMTestRunner.class)
@EachTestCompiledSeparately
public class MethodTest {
@Test
public void methodsEnumerated() {

View File

@ -42,10 +42,8 @@ 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

View File

@ -47,10 +47,8 @@ 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

View File

@ -45,10 +45,8 @@ 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

View File

@ -44,10 +44,8 @@ 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

View File

@ -45,10 +45,8 @@ 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

View File

@ -42,10 +42,8 @@ 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

View File

@ -42,10 +42,8 @@ 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

View File

@ -43,10 +43,8 @@ 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

View File

@ -44,10 +44,8 @@ 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.

View File

@ -42,10 +42,8 @@ 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.

View File

@ -43,10 +43,8 @@ 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

View File

@ -41,10 +41,8 @@ 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

View File

@ -43,10 +43,8 @@ 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

View File

@ -43,10 +43,8 @@ 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

View File

@ -42,10 +42,8 @@ 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

View File

@ -43,10 +43,8 @@ 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.

View File

@ -42,10 +42,8 @@ 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

View File

@ -42,10 +42,8 @@ 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.

View File

@ -41,10 +41,8 @@ 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

View File

@ -41,10 +41,8 @@ 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

View File

@ -24,10 +24,8 @@ 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

View File

@ -24,10 +24,8 @@ 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

View File

@ -31,10 +31,8 @@ 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;

View File

@ -31,10 +31,8 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import org.teavm.classlib.java.lang.DoubleTest;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class ByteBufferTest {
@Test
public void allocatesDirect() {

View File

@ -27,10 +27,8 @@ 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() {

View File

@ -28,10 +28,8 @@ 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() {

View File

@ -27,10 +27,8 @@ 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() {

View File

@ -27,10 +27,8 @@ 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() {

View File

@ -28,10 +28,8 @@ 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() {

View File

@ -27,10 +27,8 @@ 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() {

View File

@ -27,10 +27,8 @@ 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() {

View File

@ -20,10 +20,8 @@ import java.nio.charset.StandardCharsets;
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 AsciiTest {
private static String hex = CharsetTestCommon.bytesToHex(convert(CharsetTestCommon.asciiText));

View File

@ -22,10 +22,8 @@ import java.nio.charset.StandardCharsets;
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 Iso8859Test {
private static String hex = CharsetTestCommon.bytesToHex(convert(CharsetTestCommon.asciiText));

View File

@ -20,10 +20,8 @@ import java.nio.charset.StandardCharsets;
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 UTF16Test {
private static String hexLE = CharsetTestCommon.bytesToHex(convertLE(CharsetTestCommon.text));
private static String hexBE = CharsetTestCommon.bytesToHex(convertBE(CharsetTestCommon.text));

View File

@ -26,10 +26,8 @@ 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 String hex = ""
+ "D097D0B4D0B5D181D18C20D0B220D0BCD0BED0B5D0BC20D0BED0B1D18AD18FD181D0BDD0B5D0BDD0B8D0B820D18F20D0BED"

View File

@ -26,10 +26,8 @@ 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"));

View File

@ -24,12 +24,14 @@ import java.text.ParseException;
import java.util.Locale;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.teavm.junit.EachTestCompiledSeparately;
import org.teavm.junit.TeaVMProperties;
import org.teavm.junit.TeaVMProperty;
import org.teavm.junit.TeaVMTestRunner;
@RunWith(TeaVMTestRunner.class)
@TeaVMProperties(@TeaVMProperty(key = "java.util.Locale.available", value = "en, en_US, en_GB, ru, ru_RU"))
@EachTestCompiledSeparately
public class DecimalFormatParseTest {
private static DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.ENGLISH);

View File

@ -30,11 +30,9 @@ import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMProperties;
import org.teavm.junit.TeaVMProperty;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
@RunWith(TeaVMTestRunner.class)
@TeaVMProperties(@TeaVMProperty(key = "java.util.Locale.available", value = "en, en_US, en_GB, ru, ru_RU"))
@WholeClassCompilation
public class DecimalFormatTest {
private static DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.ENGLISH);

View File

@ -39,10 +39,8 @@ 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;

View File

@ -21,6 +21,7 @@ import java.util.Currency;
import java.util.Locale;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.teavm.junit.EachTestCompiledSeparately;
import org.teavm.junit.SkipJVM;
import org.teavm.junit.TeaVMProperties;
import org.teavm.junit.TeaVMProperty;
@ -28,6 +29,7 @@ import org.teavm.junit.TeaVMTestRunner;
@RunWith(TeaVMTestRunner.class)
@TeaVMProperties(@TeaVMProperty(key = "java.util.Locale.available", value = "en, en_US, en_GB, ru, ru_RU"))
@EachTestCompiledSeparately
public class NumberFormatTest {
@Test
public void formatsNumber() {

View File

@ -27,10 +27,8 @@ 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"));

View File

@ -52,7 +52,6 @@ import java.time.Instant;
import java.time.ZoneId;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.annotations.Test;
/**
@ -60,7 +59,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestClock {
static class MockInstantClock extends Clock {

View File

@ -55,7 +55,6 @@ import java.time.ZoneId;
import java.time.ZoneOffset;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.annotations.Test;
/**
@ -63,7 +62,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestClockFixed extends AbstractTest {
private static final ZoneId MOSCOW = ZoneId.of("Europe/Moscow");

View File

@ -56,7 +56,6 @@ import java.time.ZoneId;
import java.time.ZoneOffset;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.annotations.Test;
/**
@ -64,7 +63,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestClockOffset extends AbstractTest {
private static final ZoneId MOSCOW = ZoneId.of("Europe/Moscow");

View File

@ -55,7 +55,6 @@ import java.time.ZoneId;
import java.time.ZoneOffset;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.annotations.Test;
/**
@ -63,7 +62,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestClockSystem extends AbstractTest {
private static final ZoneId MOSCOW = ZoneId.of("Europe/Moscow");

View File

@ -57,7 +57,6 @@ import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.annotations.Test;
/**
@ -65,7 +64,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestClockTick extends AbstractTest {
private static final ZoneId MOSCOW = ZoneId.of("Europe/Moscow");

View File

@ -49,7 +49,6 @@ package org.teavm.classlib.java.time;
import static org.testng.Assert.assertEquals;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import org.threeten.bp.jdk8.Jdk8Methods;
@ -59,7 +58,6 @@ import org.threeten.bp.jdk8.Jdk8Methods;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestDateTimesImplementation {
//-----------------------------------------------------------------------

View File

@ -70,7 +70,6 @@ import java.util.List;
import java.util.Locale;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@ -80,7 +79,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestDayOfWeek extends AbstractDateTimeTest {
@BeforeMethod

View File

@ -65,7 +65,6 @@ import java.time.temporal.TemporalUnit;
import java.util.Locale;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@ -74,7 +73,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestDuration extends AbstractTest {
//-----------------------------------------------------------------------

View File

@ -74,7 +74,6 @@ import java.util.List;
import java.util.Locale;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@ -83,7 +82,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestInstant extends AbstractDateTimeTest {
private static final long MIN_SECOND = Instant.MIN.getEpochSecond();

View File

@ -100,7 +100,6 @@ import java.util.List;
import org.junit.runner.RunWith;
import org.teavm.classlib.java.time.temporal.MockFieldNoValue;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@ -110,7 +109,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestLocalDate extends AbstractDateTimeTest {
private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1);

View File

@ -116,7 +116,6 @@ import java.util.List;
import org.junit.runner.RunWith;
import org.teavm.classlib.java.time.temporal.MockFieldNoValue;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@ -126,7 +125,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestLocalDateTime extends AbstractDateTimeTest {
private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1);

View File

@ -108,7 +108,6 @@ import java.util.List;
import org.junit.runner.RunWith;
import org.teavm.classlib.java.time.temporal.MockFieldNoValue;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@ -118,7 +117,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestLocalTime extends AbstractDateTimeTest {
private LocalTime test12x30x40x987654321;

View File

@ -69,7 +69,6 @@ import java.util.List;
import java.util.Locale;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@ -78,7 +77,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestMonth extends AbstractDateTimeTest {
private static final int MAX_LENGTH = 12;

View File

@ -111,7 +111,6 @@ import java.util.Arrays;
import java.util.List;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@ -121,7 +120,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestOffsetDateTime extends AbstractDateTimeTest {
private static final ZoneId ZONE_PARIS = ZoneId.of("Europe/Paris");

View File

@ -57,7 +57,6 @@ import java.time.Year;
import java.time.ZoneOffset;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.annotations.Test;
/**
@ -65,7 +64,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestOffsetDateTimeInstants {
private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1);

View File

@ -96,7 +96,6 @@ import java.util.Arrays;
import java.util.List;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@ -106,7 +105,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestOffsetTime extends AbstractDateTimeTest {
private static final ZoneOffset OFFSET_PONE = ZoneOffset.ofHours(1);

View File

@ -53,7 +53,6 @@ import java.time.Period;
import org.junit.Ignore;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@ -62,7 +61,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestPeriod extends AbstractTest {
//-----------------------------------------------------------------------
// factories

View File

@ -70,7 +70,6 @@ import java.util.SimpleTimeZone;
import java.util.TimeZone;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Ignore;
import org.testng.annotations.Test;
@ -80,7 +79,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestZoneId extends AbstractTest {
private static final ZoneId ZONE_PARIS = ZoneId.of("Europe/Paris");

View File

@ -70,7 +70,6 @@ import java.util.Arrays;
import java.util.List;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.annotations.Test;
/**
@ -78,7 +77,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestZoneOffset extends AbstractDateTimeTest {
//-----------------------------------------------------------------------

View File

@ -113,7 +113,6 @@ import java.util.List;
import org.junit.runner.RunWith;
import org.teavm.classlib.java.time.temporal.MockFieldNoValue;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@ -123,7 +122,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestZonedDateTime extends AbstractDateTimeTest {
private static final ZoneOffset OFFSET_0100 = ZoneOffset.ofHours(1);

View File

@ -72,7 +72,6 @@ import java.util.Locale;
import java.util.Map;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@ -82,7 +81,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestChronoLocalDate {
//-----------------------------------------------------------------------
// regular data factory for names and descriptions of available calendars

View File

@ -73,7 +73,6 @@ import java.util.Locale;
import java.util.Map;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@ -83,7 +82,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestChronoLocalDateTime {
//-----------------------------------------------------------------------
// regular data factory for names and descriptions of available calendars

View File

@ -74,7 +74,6 @@ import java.util.Locale;
import java.util.Map;
import org.junit.runner.RunWith;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.WholeClassCompilation;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@ -84,7 +83,6 @@ import org.testng.annotations.Test;
*/
@Test
@RunWith(TeaVMTestRunner.class)
@WholeClassCompilation
public class TestChronoZonedDateTime {
//-----------------------------------------------------------------------
// regular data factory for names and descriptions of available calendars

Some files were not shown because too many files have changed in this diff Show More