- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for ClassSanityTester (0.18 sec)
-
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
* * <pre> * new ClassSanityTester() * .forAllPublicStaticMethods(Books.class) * .thatReturn(Book.class) * .testEquals(); // or testNulls(), testSerializable() etc. * </pre> * * @author Ben Yu * @since 14.0 */ @GwtIncompatible @J2ktIncompatible public final class ClassSanityTester { private static final Ordering<Invokable<?, ?>> BY_METHOD_NAME =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:18:12 UTC 2024 - 32.7K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/RelationshipTesterTest.java
import junit.framework.TestCase; /** * Tests for {@link RelationshipTester}. * * @author Ben Yu */ public class RelationshipTesterTest extends TestCase { public void testNulls() { new ClassSanityTester() .setDefault(ItemReporter.class, new ItemReporter()) .testNulls(RelationshipTester.class); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Apr 21 02:27:51 UTC 2017 - 1K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashCodeTest.java
HASH_ABCD.writeBytesTo(dest, 0, 2); assertTrue(Arrays.equals(new byte[] {(byte) 0xaa, (byte) 0xbb, (byte) 0x00}, dest)); } private static ClassSanityTester.FactoryMethodReturnValueTester sanityTester() { return new ClassSanityTester() .setDefault(byte[].class, new byte[] {1, 2, 3, 4}) .setDistinctValues(byte[].class, new byte[] {1, 2, 3, 4}, new byte[] {5, 6, 7, 8})
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 13.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/SuppliersTest.java
import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import com.google.common.collect.Lists; import com.google.common.testing.ClassSanityTester; import com.google.common.testing.EqualsTester; import java.io.NotSerializableException; import java.io.Serializable; import java.time.Duration; import java.util.ArrayList; import java.util.List;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 17.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/SuppliersTest.java
import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import com.google.common.collect.Lists; import com.google.common.testing.ClassSanityTester; import com.google.common.testing.EqualsTester; import java.io.NotSerializableException; import java.io.Serializable; import java.time.Duration; import java.util.ArrayList; import java.util.List;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 17.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/EnumMultisetTest.java
import com.google.common.collect.testing.google.MultisetTestSuiteBuilder; import com.google.common.collect.testing.google.TestEnumMultisetGenerator; import com.google.common.testing.ClassSanityTester; import com.google.common.testing.NullPointerTester; import com.google.common.testing.SerializableTester; import com.google.errorprone.annotations.Keep; import java.util.Collection; import java.util.EnumSet;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 5.9K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/RelationshipTesterTest.java
import junit.framework.TestCase; /** * Tests for {@link RelationshipTester}. * * @author Ben Yu */ public class RelationshipTesterTest extends TestCase { public void testNulls() { new ClassSanityTester() .setDefault(ItemReporter.class, new ItemReporter()) .testNulls(RelationshipTester.class); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Sep 15 13:47:32 UTC 2016 - 1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/HashCodeTest.java
HASH_ABCD.writeBytesTo(dest, 0, 2); assertTrue(Arrays.equals(new byte[] {(byte) 0xaa, (byte) 0xbb, (byte) 0x00}, dest)); } private static ClassSanityTester.FactoryMethodReturnValueTester sanityTester() { return new ClassSanityTester() .setDefault(byte[].class, new byte[] {1, 2, 3, 4}) .setDistinctValues(byte[].class, new byte[] {1, 2, 3, 4}, new byte[] {5, 6, 7, 8})
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 13.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
suffix("Test").or(suffix("Tests")).or(suffix("TestCase")).or(suffix("TestSuite")); private final Logger logger = Logger.getLogger(getClass().getName()); private final ClassSanityTester tester = new ClassSanityTester(); private Visibility visibility = Visibility.PACKAGE; private Predicate<Class<?>> classFilter = (Class<?> cls) -> visibility.isVisible(cls.getModifiers()); /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 19:43:49 UTC 2024 - 17.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
suffix("Test").or(suffix("Tests")).or(suffix("TestCase")).or(suffix("TestSuite")); private final Logger logger = Logger.getLogger(getClass().getName()); private final ClassSanityTester tester = new ClassSanityTester(); private Visibility visibility = Visibility.PACKAGE; private Predicate<Class<?>> classFilter = (Class<?> cls) -> visibility.isVisible(cls.getModifiers()); /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 19:43:49 UTC 2024 - 17.9K bytes - Viewed (0)