| /* |
| * Copyright 2008 Google Inc. |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| * use this file except in compliance with the License. You may obtain a copy of |
| * the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| * License for the specific language governing permissions and limitations under |
| * the License. |
| */ |
| package com.google.gwt.emultest; |
| |
| import com.google.gwt.emultest.java.internal.CoercionsTest; |
| import com.google.gwt.emultest.java.io.ByteArrayInputStreamTest; |
| import com.google.gwt.emultest.java.io.ByteArrayOutputStreamTest; |
| import com.google.gwt.emultest.java.io.FilterInputStreamTest; |
| import com.google.gwt.emultest.java.io.FilterOutputStreamTest; |
| import com.google.gwt.emultest.java.io.InputStreamTest; |
| import com.google.gwt.emultest.java.io.OutputStreamTest; |
| import com.google.gwt.emultest.java.lang.BooleanTest; |
| import com.google.gwt.emultest.java.lang.ByteTest; |
| import com.google.gwt.emultest.java.lang.CharacterTest; |
| import com.google.gwt.emultest.java.lang.CompilerConstantStringTest; |
| import com.google.gwt.emultest.java.lang.DoubleTest; |
| import com.google.gwt.emultest.java.lang.FloatTest; |
| import com.google.gwt.emultest.java.lang.IntegerTest; |
| import com.google.gwt.emultest.java.lang.JsExceptionTest; |
| import com.google.gwt.emultest.java.lang.LongTest; |
| import com.google.gwt.emultest.java.lang.MathTest; |
| import com.google.gwt.emultest.java.lang.NullPointerExceptionTest; |
| import com.google.gwt.emultest.java.lang.ObjectTest; |
| import com.google.gwt.emultest.java.lang.ShortTest; |
| import com.google.gwt.emultest.java.lang.StringBufferTest; |
| import com.google.gwt.emultest.java.lang.StringTest; |
| import com.google.gwt.emultest.java.lang.SystemTest; |
| import com.google.gwt.emultest.java.lang.ThrowableStackTraceEmulTest; |
| import com.google.gwt.emultest.java.lang.ThrowableTest; |
| import com.google.gwt.emultest.java.lang.TypeTest; |
| import com.google.gwt.emultest.java.math.MathContextTest; |
| import com.google.gwt.emultest.java.math.MathContextWithObfuscatedEnumsTest; |
| import com.google.gwt.emultest.java.math.RoundingModeTest; |
| import com.google.gwt.emultest.java.nio.charset.CharsetTest; |
| import com.google.gwt.emultest.java.nio.charset.StandardCharsetsTest; |
| import com.google.gwt.emultest.java.security.MessageDigestTest; |
| import com.google.gwt.emultest.java.sql.SqlDateTest; |
| import com.google.gwt.emultest.java.sql.SqlTimeTest; |
| import com.google.gwt.emultest.java.sql.SqlTimestampTest; |
| import com.google.gwt.junit.tools.GWTTestSuite; |
| |
| import junit.framework.Test; |
| |
| /** |
| * Test JRE emulations. |
| */ |
| public class EmulSuite { |
| |
| /** |
| * Note: due to compiler error, only can use one Test Case at a time. |
| */ |
| public static Test suite() { |
| GWTTestSuite suite = new GWTTestSuite("Tests for com.google.gwt.emul.java"); |
| |
| // $JUnit-BEGIN$ |
| suite.addTestSuite(CoercionsTest.class); |
| //-- java.io |
| suite.addTestSuite(ByteArrayInputStreamTest.class); |
| suite.addTestSuite(ByteArrayOutputStreamTest.class); |
| suite.addTestSuite(FilterInputStreamTest.class); |
| suite.addTestSuite(FilterOutputStreamTest.class); |
| suite.addTestSuite(InputStreamTest.class); |
| suite.addTestSuite(OutputStreamTest.class); |
| //-- java.lang |
| suite.addTestSuite(BooleanTest.class); |
| suite.addTestSuite(ByteTest.class); |
| suite.addTestSuite(CharacterTest.class); |
| suite.addTestSuite(CompilerConstantStringTest.class); |
| suite.addTestSuite(DoubleTest.class); |
| suite.addTestSuite(FloatTest.class); |
| suite.addTestSuite(IntegerTest.class); |
| suite.addTestSuite(JsExceptionTest.class); |
| suite.addTestSuite(LongTest.class); |
| suite.addTestSuite(MathTest.class); |
| suite.addTestSuite(NullPointerExceptionTest.class); |
| suite.addTestSuite(ObjectTest.class); |
| suite.addTestSuite(ShortTest.class); |
| suite.addTestSuite(StringBufferTest.class); |
| suite.addTestSuite(StringTest.class); |
| suite.addTestSuite(SystemTest.class); |
| suite.addTestSuite(ThrowableTest.class); |
| suite.addTestSuite(ThrowableStackTraceEmulTest.class); |
| suite.addTestSuite(TypeTest.class); |
| //-- java.math |
| // BigDecimal is tested in {@link BigDecimalSuite} |
| // BigInteger is tested in {@link BigIntegerSuite} |
| suite.addTestSuite(RoundingModeTest.class); |
| suite.addTestSuite(MathContextTest.class); |
| suite.addTestSuite(MathContextWithObfuscatedEnumsTest.class); |
| |
| //-- java.nio |
| suite.addTestSuite(CharsetTest.class); |
| suite.addTestSuite(StandardCharsetsTest.class); |
| |
| //-- java.security |
| suite.addTestSuite(MessageDigestTest.class); |
| |
| //-- java.sql |
| suite.addTestSuite(SqlDateTest.class); |
| suite.addTestSuite(SqlTimeTest.class); |
| suite.addTestSuite(SqlTimestampTest.class); |
| // $JUnit-END$ |
| |
| return suite; |
| } |
| } |