mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 00:04:10 -08:00
Update test annotations
This commit is contained in:
parent
db4418ae1d
commit
d850780d94
|
@ -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() {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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 = ""
|
||||
|
|
|
@ -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 =
|
||||
|
|
|
@ -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('.', '-');
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"));
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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"));
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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 {
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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 {
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
Loading…
Reference in New Issue
Block a user