diff options
Diffstat (limited to 'android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java')
-rw-r--r-- | android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java b/android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java index 4d988365f..b0d0fab5c 100644 --- a/android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java +++ b/android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java @@ -20,6 +20,7 @@ import static com.google.common.truth.Truth.assertThat; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; +import com.google.common.annotations.J2ktIncompatible; import com.google.common.collect.ImmutableList; import com.google.common.collect.ObjectArrays; import com.google.common.collect.testing.ListTestSuiteBuilder; @@ -40,8 +41,11 @@ import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; -/** @author Kevin Bourrillion */ +/** + * @author Kevin Bourrillion + */ @GwtCompatible(emulated = true) +@ElementTypesAreNonnullByDefault public class ImmutableDoubleArrayTest extends TestCase { // Test all creation paths very lazily: by assuming asList() works @@ -399,6 +403,7 @@ public class ImmutableDoubleArrayTest extends TestCase { assertActuallyTrims(underSized); } + @J2ktIncompatible @GwtIncompatible // SerializableTester public void testSerialization() { assertThat(reserialize(ImmutableDoubleArray.of())).isSameInstanceAs(ImmutableDoubleArray.of()); @@ -423,6 +428,7 @@ public class ImmutableDoubleArrayTest extends TestCase { assertThat(iia.trimmed()).isSameInstanceAs(iia); } + @J2ktIncompatible @GwtIncompatible // suite public static Test suite() { List<ListTestSuiteBuilder<Double>> builders = @@ -454,6 +460,7 @@ public class ImmutableDoubleArrayTest extends TestCase { return suite; } + @J2ktIncompatible @GwtIncompatible // used only from suite private static ImmutableDoubleArray makeArray(Double[] values) { return ImmutableDoubleArray.copyOf(Arrays.asList(values)); @@ -462,6 +469,7 @@ public class ImmutableDoubleArrayTest extends TestCase { // Test generators. To let the GWT test suite generator access them, they need to be public named // classes with a public default constructor (not that we run these suites under GWT yet). + @J2ktIncompatible @GwtIncompatible // used only from suite public static final class ImmutableDoubleArrayAsListGenerator extends TestDoubleListGenerator { @Override @@ -470,6 +478,7 @@ public class ImmutableDoubleArrayTest extends TestCase { } } + @J2ktIncompatible @GwtIncompatible // used only from suite public static final class ImmutableDoubleArrayHeadSubListAsListGenerator extends TestDoubleListGenerator { @@ -481,6 +490,7 @@ public class ImmutableDoubleArrayTest extends TestCase { } } + @J2ktIncompatible @GwtIncompatible // used only from suite public static final class ImmutableDoubleArrayTailSubListAsListGenerator extends TestDoubleListGenerator { @@ -492,6 +502,7 @@ public class ImmutableDoubleArrayTest extends TestCase { } } + @J2ktIncompatible @GwtIncompatible // used only from suite public static final class ImmutableDoubleArrayMiddleSubListAsListGenerator extends TestDoubleListGenerator { @@ -504,11 +515,13 @@ public class ImmutableDoubleArrayTest extends TestCase { } } + @J2ktIncompatible @GwtIncompatible // used only from suite private static Double[] concat(Double[] a, Double[] b) { return ObjectArrays.concat(a, b, Double.class); } + @J2ktIncompatible @GwtIncompatible // used only from suite public abstract static class TestDoubleListGenerator implements TestListGenerator<Double> { @Override @@ -544,6 +557,7 @@ public class ImmutableDoubleArrayTest extends TestCase { } } + @J2ktIncompatible @GwtIncompatible // used only from suite public static class SampleDoubles extends SampleElements<Double> { public SampleDoubles() { |