- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for a2 (0.17 sec)
-
src/test/java/jcifs/smb/StaticJAASConfigurationTest.java
AppConfigurationEntry[] a2 = cfg.getAppConfigurationEntry("y"); // Assert assertNotSame(a1, a2, "Arrays should be different instances"); assertEquals(1, a1.length); assertEquals(1, a2.length); AppConfigurationEntry e1 = a1[0]; AppConfigurationEntry e2 = a2[0]; assertNotSame(e1, e2, "Entries should be different instances");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbSessionTest.java
NtlmPasswordAuthentication a2 = new NtlmPasswordAuthentication("DOM", "user", "pwd"); SmbSession s1 = new SmbSession(addr, 445, inet, 0, a1); SmbSession s2 = new SmbSession(addr, 445, inet, 0, a2); // same auth instance => matches assertTrue(s1.matches(a1)); // different instance but equal content => matches assertTrue(s1.matches(a2)); // not equal => no match
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDTest.java
void testEqualsAndHashCode() throws Exception { SID a1 = new SID("S-1-5-21-1-2-3-4"); SID a2 = new SID("S-1-5-21-1-2-3-4"); SID b = new SID("S-1-5-21-1-2-3-5"); assertEquals(a1, a2); assertEquals(a1.hashCode(), a2.hashCode()); assertNotEquals(a1, b); assertNotEquals(a1.hashCode(), b.hashCode());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
// Host with root path -> possibleNTDomainOrWorkgroup=true UniAddress a2 = mock(UniAddress.class); UniAddress a3 = mock(UniAddress.class); when(nsc.getAllByName("server", true)).thenReturn(new Address[] { a2, a3 }); SmbResourceLocatorImpl l3 = locator("smb://server/"); assertSame(a2, l3.getAddress()); verify(nsc, times(1)).getAllByName("server", true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterators.java
* * {@snippet : * PeekingIterator<String> peekingIterator = * Iterators.peekingIterator(Iterators.forArray("a", "b")); * String a1 = peekingIterator.peek(); // returns "a" * String a2 = peekingIterator.peek(); // also returns "a" * String a3 = peekingIterator.next(); // also returns "a" * } * * <p>Any structural changes to the underlying iteration (aside from those performed by the
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 50.5K bytes - Viewed (0)