- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 2,425 for WHEN (1.68 sec)
-
android/guava/src/com/google/common/io/Closer.java
* to close resources will be thrown from the finally block. The throwable from the try block * will be thrown. * <li>If no exceptions or errors were thrown in the try block, the <i>first</i> exception thrown * by an attempt to close a resource will be thrown. * <li>Any exception caught when attempting to close a resource that is <i>not</i> thrown (because
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java
headerStartField.setAccessible(true); headerStartField.set(response, 0); // When int bytesRead = response.readBytesWireFormat(buffer, bodyStart); // Then // When dataLength is 0, it returns max(16, dataOffset + 0 - bodyStart) = max(16, 80) = 80 assertEquals(80, bytesRead); assertEquals(0, response.getDataLength());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/WebSocketListener.kt
} /** Invoked when a binary (type `0x2`) message has been received. */ open fun onMessage( webSocket: WebSocket, bytes: ByteString, ) { } /** * Invoked when the remote peer has indicated that no more incoming messages will be transmitted. */ open fun onClosing( webSocket: WebSocket, code: Int, reason: String, ) { } /**
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java
lenient().when(mockNdrBuffer.derive(anyInt())).thenReturn(mockDeferredNdrBuffer); lenient().when(mockDeferredNdrBuffer.derive(anyInt())).thenReturn(mockDeferredNdrBuffer); // Set up lenient stubs for common operations to avoid unnecessary stubbing exceptions lenient().when(mockNdrBuffer.getIndex()).thenReturn(0); lenient().when(mockDeferredNdrBuffer.getIndex()).thenReturn(0);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 60.8K bytes - Viewed (0) -
src/test/java/jcifs/BufferCacheTest.java
doNothing().when(mockBufferCache).releaseBuffer(buffer); // When & Then assertDoesNotThrow(() -> { mockBufferCache.releaseBuffer(buffer); }, "releaseBuffer should handle valid buffers"); } @Test @DisplayName("getBuffer should return buffers for use") void testGetBufferBasicUsage() { // When byte[] buffer1 = testCache.getBuffer();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/witness/WitnessClientTest.java
lenient().when(mockContext.getConfig()).thenReturn(mockConfig); lenient().when(mockConfig.getWitnessHeartbeatTimeout()).thenReturn(120000L); lenient().when(mockConfig.getWitnessRegistrationTimeout()).thenReturn(300000L); lenient().when(mockConfig.getWitnessReconnectDelay()).thenReturn(1000L); lenient().when(mockConfig.isWitnessServiceDiscovery()).thenReturn(true); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/util/HMACT64Test.java
try (MockedStatic<Crypto> mockedCrypto = mockStatic(Crypto.class)) { mockedCrypto.when(Crypto::getMD5).thenReturn(mockMd5); byte[] innerDigest = "inner_digest".getBytes(); byte[] finalDigest = "final_digest".getBytes(); when(mockMd5.digest()).thenReturn(innerDigest); when(mockMd5.digest(any(byte[].class))).thenReturn(finalDigest);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.6K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/ResponseTest.java
// Simulate granted credits when(mockResponse.getGrantedCredits()).thenReturn(100); assertEquals(100, mockResponse.getGrantedCredits()); // Verify the method was called verify(mockResponse, times(1)).getGrantedCredits(); } @Test void testGetErrorCode() { // Simulate error code when(mockResponse.getErrorCode()).thenReturn(-1);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.5K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/PropertyMetaDataTest.groovy
when: def p = propertyMetaData.overriddenProperty then: p == null } def hasNoOverriddenPropertyWhenGetterAndSetterDoNotOverrideAnything() { when: def p = propertyMetaData.overriddenProperty then: p == null } def "is deprecated when @Deprecated is attached to property"() {Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java
void testMessageConstructor() { // Given & When CIFSUnsupportedCryptoException exception = new CIFSUnsupportedCryptoException(CRYPTO_ERROR_MESSAGE); // Then assertEquals(CRYPTO_ERROR_MESSAGE, exception.getMessage(), "Message should be preserved"); assertNull(exception.getCause(), "Cause should be null when not specified"); } @ParameterizedTest
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0)