- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 130 for gracefully (0.04 sec)
-
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
// but we can verify the context behaves correctly after wiping) // After wiping, operations that require keys should fail // Attempting to use the context after wiping should handle gracefully // Note: The actual implementation might throw an exception or handle differently } @Test @DisplayName("Should securely wipe keys when closing context")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
System.arraycopy(buffer, offset + 8, copiedFileId, 0, 16); assertArrayEquals(testFileId, copiedFileId); } @Test @DisplayName("writeBytesWireFormat with null file ID should handle gracefully") void testWriteBytesWireFormatWithNullFileId() { Smb2FlushRequest requestWithNull = new Smb2FlushRequest(mockConfig, null); byte[] buffer = new byte[256];
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java
d.parameterCount = 0; d.dataCount = 0; d.headerStart = 0; byte[] buf = new byte[100]; int result = d.readBytesWireFormat(buf, 0); // Should handle empty read gracefully assertEquals(0, result, "Should return 0 for no data"); assertTrue(d.getParametersDone(), "parametersDone should be true when total is 0");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/transport/Transport.java
final String msg = ex.getMessage(); final boolean timeout = msg != null && msg.equals("Read timed out"); /* If just a timeout, try to disconnect gracefully */ final boolean hard = !timeout; if (!timeout && LogStream.level >= 3) { ex.printStackTrace(log); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
} } @Nested @DisplayName("Edge Cases and Error Handling") class EdgeCasesTests { @Test @DisplayName("Should handle malformed buffer gracefully") void testReadDataWireFormatMalformedBuffer() { byte[] buffer = new byte[3]; // Too small for valid DFS referral assertThrows(ArrayIndexOutOfBoundsException.class, () -> {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java
of the local repository. This is especially troublesome during snapshot resolution so we try to handle that gracefully. */ if (versioning != null && repository instanceof LocalRepositoryRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jan 10 08:42:00 UTC 2025 - 20.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java
*/ public void test_destroyObject_nullPooledObject() { try { factory.destroyObject(null); // Should not throw NPE - implementation should handle gracefully or throw } catch (NullPointerException e) { // Acceptable behavior assertTrue(true); } catch (Exception e) { // Other exceptions might be acceptableRegistered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 20 13:07:01 UTC 2025 - 36.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java
void testSetNullFileId() { // Given RequestWithFileId request = new Smb2CloseRequest(mockConfig, testFileId); // When & Then - should handle null gracefully (implementation dependent) assertDoesNotThrow(() -> request.setFileId(null), "Should handle null file ID without throwing exception"); } @Test @DisplayName("Should handle empty file ID")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java
constructor.setAccessible(true); SmbComNtCancel cancel = constructor.newInstance(config, 1); byte[] emptyArray = new byte[0]; // When & Then - should handle gracefully Method writeParams = SmbComNtCancel.class.getDeclaredMethod("writeParameterWordsWireFormat", byte[].class, int.class); writeParams.setAccessible(true);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/UUIDTest.java
assertEquals((byte) 0x00, uuid.node[5]); // Missing data defaults to 0 } @Test @DisplayName("Constructor with empty node array in rpc.uuid_t should handle gracefully") void testConstructorWithEmptyNode() { // Arrange rpc.uuid_t rpcUuid = new rpc.uuid_t(); rpcUuid.time_low = TIME_LOW; rpcUuid.time_mid = TIME_MID;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0)