Last Sync for now

This commit is contained in:
Speiger 2026-05-14 21:33:31 +02:00
parent e56e136459
commit 8ff1d4f0b5

View File

@ -12,6 +12,9 @@ import com.google.common.collect.testing.features.CollectionSize;
import com.google.common.collect.testing.features.SetFeature; import com.google.common.collect.testing.features.SetFeature;
import com.google.common.collect.testing.features.Feature; import com.google.common.collect.testing.features.Feature;
#if TYPE_OBJECT #if TYPE_OBJECT
import com.google.common.collect.testing.testers.CollectionAddTester;
import com.google.common.collect.testing.testers.CollectionAddAllTester;
import com.google.common.collect.testing.testers.CollectionCreationTester;
import com.google.common.collect.testing.features.CollectionFeature; import com.google.common.collect.testing.features.CollectionFeature;
#endif #endif
import junit.framework.Test; import junit.framework.Test;
@ -122,6 +125,9 @@ public class SET_TESTS extends TestCase
#ignore #ignore
.withFeatures(getSizes(size)).withFeatures(features); .withFeatures(getSizes(size)).withFeatures(features);
if(nullValues) builder.withFeatures(CollectionFeature.ALLOWS_NULL_VALUES); if(nullValues) builder.withFeatures(CollectionFeature.ALLOWS_NULL_VALUES);
builder.suppressing(CollectionAddTester.getAddNullUnsupportedMethod(), CollectionAddTester.getAddNullSupportedMethod());
builder.suppressing(CollectionAddAllTester.getAddAllNullUnsupportedMethod());
builder.suppressing(CollectionCreationTester.getCreateWithNullUnsupportedMethod());
#endignore #endignore
return builder.createTestSuite(); return builder.createTestSuite();
} }