Skip to content

Commit

Permalink
Stop building collection-test-suite-builder code for J2KT.
Browse files Browse the repository at this point in the history
RELNOTES=n/a
PiperOrigin-RevId: 707907388
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed Dec 19, 2024
1 parent d9ed9b9 commit c8bb798
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
@ElementTypesAreNonnullByDefault
public class HashBiMapTest extends TestCase {

@J2ktIncompatible
public static final class HashBiMapGenerator extends TestStringBiMapGenerator {
@Override
protected BiMap<String, String> create(Entry<String, String>[] entries) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public static Test suite() {
return suite;
}

@J2ktIncompatible
private static TestStringMultisetGenerator hashMultisetGenerator() {
return new TestStringMultisetGenerator() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
@GwtCompatible(emulated = true)
@ElementTypesAreNonnullByDefault
public class ImmutableEnumMapTest extends TestCase {
@J2ktIncompatible
public static class ImmutableEnumMapGenerator extends TestEnumMapGenerator {
@Override
protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
@GwtCompatible(emulated = true)
@ElementTypesAreNonnullByDefault
public class ImmutableListMultimapTest extends TestCase {
@J2ktIncompatible
public static class ImmutableListMultimapGenerator extends TestStringListMultimapGenerator {
@Override
protected ListMultimap<String, String> create(Entry<String, String>[] entries) {
Expand All @@ -63,6 +64,7 @@ protected ListMultimap<String, String> create(Entry<String, String>[] entries) {
}
}

@J2ktIncompatible
public static class ImmutableListMultimapCopyOfEntriesGenerator
extends TestStringListMultimapGenerator {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
@GwtCompatible(emulated = true)
@ElementTypesAreNonnullByDefault
public class ImmutableSetMultimapTest extends TestCase {
@J2ktIncompatible
private static final class ImmutableSetMultimapGenerator extends TestStringSetMultimapGenerator {
@Override
protected SetMultimap<String, String> create(Entry<String, String>[] entries) {
Expand All @@ -62,6 +63,7 @@ protected SetMultimap<String, String> create(Entry<String, String>[] entries) {
}
}

@J2ktIncompatible
private static final class ImmutableSetMultimapCopyOfEntriesGenerator
extends TestStringSetMultimapGenerator {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public static Test suite() {
return suite;
}

@J2ktIncompatible
private static TestStringMultisetGenerator linkedHashMultisetGenerator() {
return new TestStringMultisetGenerator() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,22 @@
@ElementTypesAreNonnullByDefault
public class TableCollectionTest extends TestCase {

@J2ktIncompatible
private static final Feature<?>[] COLLECTION_FEATURES = {
CollectionSize.ANY, CollectionFeature.ALLOWS_NULL_QUERIES
};

@J2ktIncompatible
private static final Feature<?>[] COLLECTION_FEATURES_ORDER = {
CollectionSize.ANY, CollectionFeature.KNOWN_ORDER, CollectionFeature.ALLOWS_NULL_QUERIES
};

@J2ktIncompatible
private static final Feature<?>[] COLLECTION_FEATURES_REMOVE = {
CollectionSize.ANY, CollectionFeature.SUPPORTS_REMOVE, CollectionFeature.ALLOWS_NULL_QUERIES
};

@J2ktIncompatible
private static final Feature<?>[] COLLECTION_FEATURES_REMOVE_ORDER = {
CollectionSize.ANY,
CollectionFeature.KNOWN_ORDER,
Expand Down Expand Up @@ -680,6 +684,7 @@ private static void populateForValues(
}
}

@J2ktIncompatible
private abstract static class TestCellSetGenerator
implements TestSetGenerator<Cell<String, Integer, Character>> {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
@ElementTypesAreNonnullByDefault
public class HashBiMapTest extends TestCase {

@J2ktIncompatible
public static final class HashBiMapGenerator extends TestStringBiMapGenerator {
@Override
protected BiMap<String, String> create(Entry<String, String>[] entries) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public static Test suite() {
return suite;
}

@J2ktIncompatible
private static TestStringMultisetGenerator hashMultisetGenerator() {
return new TestStringMultisetGenerator() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
@GwtCompatible(emulated = true)
@ElementTypesAreNonnullByDefault
public class ImmutableEnumMapTest extends TestCase {
@J2ktIncompatible
public static class ImmutableEnumMapGenerator extends TestEnumMapGenerator {
@Override
protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
@GwtCompatible(emulated = true)
@ElementTypesAreNonnullByDefault
public class ImmutableListMultimapTest extends TestCase {
@J2ktIncompatible
public static class ImmutableListMultimapGenerator extends TestStringListMultimapGenerator {
@Override
protected ListMultimap<String, String> create(Entry<String, String>[] entries) {
Expand All @@ -71,6 +72,7 @@ protected ListMultimap<String, String> create(Entry<String, String>[] entries) {
}
}

@J2ktIncompatible
public static class ImmutableListMultimapCopyOfEntriesGenerator
extends TestStringListMultimapGenerator {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
@GwtCompatible(emulated = true)
@ElementTypesAreNonnullByDefault
public class ImmutableSetMultimapTest extends TestCase {
@J2ktIncompatible
private static final class ImmutableSetMultimapGenerator extends TestStringSetMultimapGenerator {
@Override
protected SetMultimap<String, String> create(Entry<String, String>[] entries) {
Expand All @@ -70,6 +71,7 @@ protected SetMultimap<String, String> create(Entry<String, String>[] entries) {
}
}

@J2ktIncompatible
private static final class ImmutableSetMultimapCopyOfEntriesGenerator
extends TestStringSetMultimapGenerator {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public static Test suite() {
return suite;
}

@J2ktIncompatible
private static TestStringMultisetGenerator linkedHashMultisetGenerator() {
return new TestStringMultisetGenerator() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,22 @@
@ElementTypesAreNonnullByDefault
public class TableCollectionTest extends TestCase {

@J2ktIncompatible
private static final Feature<?>[] COLLECTION_FEATURES = {
CollectionSize.ANY, CollectionFeature.ALLOWS_NULL_QUERIES
};

@J2ktIncompatible
private static final Feature<?>[] COLLECTION_FEATURES_ORDER = {
CollectionSize.ANY, CollectionFeature.KNOWN_ORDER, CollectionFeature.ALLOWS_NULL_QUERIES
};

@J2ktIncompatible
private static final Feature<?>[] COLLECTION_FEATURES_REMOVE = {
CollectionSize.ANY, CollectionFeature.SUPPORTS_REMOVE, CollectionFeature.ALLOWS_NULL_QUERIES
};

@J2ktIncompatible
private static final Feature<?>[] COLLECTION_FEATURES_REMOVE_ORDER = {
CollectionSize.ANY,
CollectionFeature.KNOWN_ORDER,
Expand Down Expand Up @@ -680,6 +684,7 @@ private static void populateForValues(
}
}

@J2ktIncompatible
private abstract static class TestCellSetGenerator
implements TestSetGenerator<Cell<String, Integer, Character>> {
@Override
Expand Down

0 comments on commit c8bb798

Please sign in to comment.