- Sort Score
- Result 10 results
- Languages All
Results 1591 - 1600 of 1,947 for threw (0.02 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java
public void testRemove_occurrences_unsupported_absent() { // notice: we don't care whether it succeeds, or fails with UOE try { assertEquals( "multiset.remove(absent, 2) didn't return 0 or throw an exception", 0, getMultiset().remove(e3(), 2)); } catch (UnsupportedOperationException ok) { } } @CollectionFeature.Require(SUPPORTS_REMOVE)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 7K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Hasher.java
* resulting {@link HashCode} is dependent only on the bytes inserted, and the order in which they * were inserted, not how those bytes were chunked into discrete put() operations. For example, the * following three expressions all generate colliding hash codes: * * {@snippet : * newHasher().putByte(b1).putByte(b2).putByte(b3).hash() * newHasher().putByte(b1).putBytes(new byte[] { b2, b3 }).hash()
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 5.5K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java
case 2: k1 ^= (long) toUnsignedInt(bb.get(1)) << 8; // fall through case 1: k1 ^= (long) toUnsignedInt(bb.get(0)); break; default: throw new AssertionError("Should never get here."); } h1 ^= mixK1(k1); h2 ^= mixK2(k2); } @Override protected HashCode makeHash() { h1 ^= length; h2 ^= length;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 16:36:11 UTC 2025 - 5.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java
public void testRemove_occurrences_unsupported_absent() { // notice: we don't care whether it succeeds, or fails with UOE try { assertEquals( "multiset.remove(absent, 2) didn't return 0 or throw an exception", 0, getMultiset().remove(e3(), 2)); } catch (UnsupportedOperationException ok) { } } @CollectionFeature.Require(SUPPORTS_REMOVE)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/SmbPipeHandleTest.java
* @throws CIFSException if an error occurs during close. */ @Test public void testClose() throws CIFSException { assertDoesNotThrow(() -> smbPipeHandle.close(), "close() should not throw an exception on a mock object."); // Verify that the close method was called Mockito.verify(smbPipeHandle).close(); } /**
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/smb/SmbResourceLocatorInternalTest.java
assertFalse(locator.overlaps(other)); verify(locator, times(2)).overlaps(other); verifyNoMoreInteractions(locator); } // Error path: overlaps may throw a CIFSException per signature @Test @DisplayName("overlaps throws CIFSException when implementation fails") void overlapsThrowsCifsException() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java
} @Test void testClose_SmbExceptionOnClose() throws IOException { // Test case: close() with non-zero retval from MsrpcSamrCloseHandle, should throw SmbException String server = "testServer"; int access = 123; int errorRetval = 12345; // Simulate an error code // Setup for successful constructor
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
guava/src/com/google/common/escape/Escaper.java
* <ul> * <li>{@link UnicodeEscaper} handles <a href="http://en.wikipedia.org/wiki/UTF-16">UTF-16</a> * correctly, including surrogate character pairs. If the input is badly formed the escaper * should throw {@link IllegalArgumentException}. * <li>{@link CharEscaper} handles Java characters independently and does not verify the input * for well formed characters. A {@code CharEscaper} should not be used in situations where
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 15:45:16 UTC 2025 - 4.7K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/ProtoSession.java
return topDirectory; } @Override public Path getRootDirectory() { if (rootDirectory == null) { throw new IllegalStateException("root directory not set"); } return rootDirectory; } } }
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Thu Jul 03 14:18:26 UTC 2025 - 7.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java
// For now, just return the file object return file; } catch (Exception e) { log.warn("Failed to create SmbFile for {}: {}", filePath, e.getMessage()); throw new IOException("Failed to create SmbFile: " + e.getMessage(), e); } } /** * Get the CIFS context * * @return CIFS context */ public CIFSContext getContext() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 12.3K bytes - Viewed (0)