Mark some tests with @WholeClassCompilation

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

View File

@ -37,11 +37,13 @@ import org.teavm.jso.JSObject;
import org.teavm.jso.browser.Window;
import org.teavm.jso.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<>();

View File

@ -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();

View File

@ -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() {

View File

@ -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 {

View File

@ -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;

View File

@ -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() {

View File

@ -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;

View File

@ -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();

View File

@ -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 = ""

View File

@ -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 =

View File

@ -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('.', '-');

View File

@ -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 {

View File

@ -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;

View File

@ -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() {

View File

@ -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;

View File

@ -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;

View File

@ -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();

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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

View File

@ -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"));

View File

@ -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;

View File

@ -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"));

View File

@ -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() {

View File

@ -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;

View File

@ -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;

View File

@ -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() {

View File

@ -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;

View File

@ -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

View File

@ -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;

View File

@ -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() {

View File

@ -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

View File

@ -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() {

View File

@ -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> {

View File

@ -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<>();

View File

@ -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() {

View File

@ -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",

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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() {

View File

@ -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",

View File

@ -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

View File

@ -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