- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for Instantiate (4.07 sec)
-
guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java
() -> tester.instantiate(FactoryMethodReturnsNullAndAnnotated.class)); } public void testInstantiate_factoryMethodAcceptsNull() throws Exception { assertNull(tester.instantiate(FactoryMethodAcceptsNull.class).name); } public void testInstantiate_factoryMethodDoesNotAcceptNull() throws Exception { assertNotNull(tester.instantiate(FactoryMethodDoesNotAcceptNull.class).name); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Nov 16 15:12:31 GMT 2023 - 36.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
} /** * Instantiates {@code cls} by invoking one of its non-private constructors or non-private static * factory methods with the parameters automatically provided using dummy values. * * @return The instantiated instance, or {@code null} if the class has no non-private constructor * or factory method to be constructed. */ <T> @Nullable T instantiate(Class<T> cls)
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 08 17:31:55 GMT 2024 - 33K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ClassSanityTester.java
} /** * Instantiates {@code cls} by invoking one of its non-private constructors or non-private static * factory methods with the parameters automatically provided using dummy values. * * @return The instantiated instance, or {@code null} if the class has no non-private constructor * or factory method to be constructed. */ <T> @Nullable T instantiate(Class<T> cls)
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Feb 08 17:31:55 GMT 2024 - 33K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
} /** * Instantiate a random access file from a {@link SmbFile} * * @param file * @param mode * @throws SmbException */ public SmbRandomAccessFile ( SmbFile file, String mode ) throws SmbException { this(file, mode, SmbConstants.DEFAULT_SHARING, false); } /** * Instantiate a random access file from a {@link SmbFile} *
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Wed Jan 08 12:01:33 GMT 2020 - 18.5K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/lifecycle/mapping/DefaultLifecycleMapping.java
private Map<String, LifecyclePhase> phases; /** * Default ctor for plexus compatibility: lifecycles are most commonly defined in Plexus XML, that does field * injection. Still, for Plexus to be able to instantiate this class, default ctor is needed. * * @deprecated Should not be used in Java code. */ @Deprecated public DefaultLifecycleMapping() {} /**
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Wed Feb 28 07:46:36 GMT 2024 - 4K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/InetAddressesTest.java
InetAddresses.getCompatIPv4Address((Inet6Address) ip)); } } public void testMappedIPv4Addresses() throws UnknownHostException { /* * Verify that it is not possible to instantiate an Inet6Address * from an "IPv4 mapped" IPv6 address. Our String-based method can * at least identify them, however. */ String mappedStr = "::ffff:192.168.0.1";
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 31.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
findClassesToTest(loadClassesInPackage(), SERIALIZABLE_TEST_METHOD_NAMES)) { if (Serializable.class.isAssignableFrom(classToTest)) { try { Object instance = tester.instantiate(classToTest); if (instance != null) { if (isEqualsDefined(classToTest)) { SerializableTester.reserializeAndAssert(instance); } else {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri May 12 19:22:18 GMT 2023 - 17.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
findClassesToTest(loadClassesInPackage(), SERIALIZABLE_TEST_METHOD_NAMES)) { if (Serializable.class.isAssignableFrom(classToTest)) { try { Object instance = tester.instantiate(classToTest); if (instance != null) { if (isEqualsDefined(classToTest)) { SerializableTester.reserializeAndAssert(instance); } else {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri May 12 19:22:18 GMT 2023 - 17.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/InetAddressesTest.java
InetAddresses.getCompatIPv4Address((Inet6Address) ip)); } } public void testMappedIPv4Addresses() throws UnknownHostException { /* * Verify that it is not possible to instantiate an Inet6Address * from an "IPv4 mapped" IPv6 address. Our String-based method can * at least identify them, however. */ String mappedStr = "::ffff:192.168.0.1";
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 31.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/TestThread.java
import junit.framework.AssertionFailedError; import org.checkerframework.checker.nullness.qual.Nullable; /** * A helper for concurrency testing. One or more {@code TestThread} instances are instantiated in a * test with reference to the same "lock-like object", and then their interactions with that object * are choreographed via the various methods on this class. *
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Apr 26 20:07:17 GMT 2023 - 10.9K bytes - Viewed (0)