- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,601 for Instance (0.09 sec)
-
src/test/java/jcifs/smb1/util/LogStreamTest.java
// Test getInstance when no instance has been set // Should default to System.err LogStream instance = LogStream.getInstance(); assertNotNull(instance); // Getting instance again should return the same instance LogStream instance2 = LogStream.getInstance(); assertSame(instance, instance2); } @Test void testSetInstanceAndGetInstance() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java
SmbShareInfo instance3 = new SmbShareInfo("SHARE2", 0, "remark1"); Object notAShareInfo = new Object(); assertTrue(instance1.equals(instance2)); // Should be equal based on netName assertFalse(instance1.equals(instance3)); // Should not be equal assertFalse(instance1.equals(notAShareInfo)); // Should not be equal to other types
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/container/StandardCrawlerContainer.java
* @param instance the component instance * @param initializer the initializer function (can be null) * @param container the container instance for dependency injection */ protected ComponentDef(final T instance, final Consumer<T> initializer, final StandardCrawlerContainer container) { this.instance = instance; this.initializer = initializer;Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 14.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/DiscreteDomain.java
BigInteger offset(BigInteger origin, long distance) { checkNonnegative(distance, "distance"); return origin.add(BigInteger.valueOf(distance)); } @Override public long distance(BigInteger start, BigInteger end) { return end.subtract(start).max(MIN_LONG).min(MAX_LONG).longValue(); } private Object readResolve() { return INSTANCE; } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 10.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
for (Invokable<?, ?> factory : getFactoriesToTest()) { Object instance = instantiate(factory); if (instance != null && packagesToTest.contains(Reflection.getPackageName(instance.getClass()))) { try { nullPointerTester.testAllPublicInstanceMethods(instance); } catch (AssertionError e) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 32.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbNegotiationTest.java
} @Test @DisplayName("getRequest should return the same request instance") void testGetRequest() { // Verify getRequest returns the exact same instance SmbNegotiationRequest request = negotiation.getRequest(); assertSame(mockRequest, request); // Verify multiple calls return the same instance assertSame(request, negotiation.getRequest()); } @TestRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
api/maven-api-xml/src/main/java/org/apache/maven/api/xml/XmlNode.java
/** * Creates a new XmlNode instance with the specified name. * * @param name the name for the new node * @return a new XmlNode instance * @throws NullPointerException if name is null */ static XmlNode newInstance(String name) { return newBuilder().name(name).build(); } /** * Creates a new XmlNode instance with the specified name and value. *Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Sat Jul 19 11:09:56 UTC 2025 - 18.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/Interner.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 2K bytes - Viewed (0) -
src/test/java/jcifs/context/SingletonContextTest.java
// Use reflection to reset the singleton instance between tests @BeforeEach @AfterEach void resetSingleton() { try { Field instance = SingletonContext.class.getDeclaredField("INSTANCE"); instance.setAccessible(true); instance.set(null, null); } catch (NoSuchFieldException | IllegalAccessException e) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/NullPointerTester.java
* this parameter is marked nullable, this method does nothing. * * @param instance the instance to invoke {@code method} on, or null if {@code method} is static */ public void testMethodParameter(@Nullable Object instance, Method method, int paramIndex) { method.setAccessible(true); testParameter(instance, invokable(instance, method), paramIndex, method.getDeclaringClass()); } /**Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 24.9K bytes - Viewed (0)