- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 130 for gracefully (1.64 sec)
-
src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java
assertEquals(0, buffer.getNumReferrals()); assertEquals(10, buffer.getTflags()); } @Test @DisplayName("Should handle referral decode failure gracefully") void testReferralDecodeFailure() { // Create buffer with invalid referral data byte[] testBuffer = new byte[20];
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0) -
src/test/java/jcifs/SmbSessionTest.java
}, "Multiple close() calls should not throw exceptions"); verify(mockSession, times(2)).close(); } @Test @DisplayName("Should handle close with exception gracefully") void shouldHandleCloseExceptionGracefully() throws Exception { SmbSession mockSession = mock(SmbSession.class); Exception testException = new Exception("Test close exception");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.1K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/RobotsTxtHelper.java
* It will parse valid directives and ignore invalid ones, ensuring that partial * content can be extracted even from poorly formatted files.</p> * * <p>The following errors are handled gracefully (line is skipped, parsing continues):</p> * <ul> * <li>Invalid directive formats</li> * <li>Unknown directives</li> * <li>Invalid crawl-delay values (non-numeric, negative)</li>Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Fri Nov 14 12:52:01 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
for (int i = 0; i < 10; i++) { assertEquals(4, SMBUtil.readInt2(buffer, i * 10)); } } @Test @DisplayName("Should handle null configuration gracefully in response creation") void testCreateResponseWithNullConfig() { // Given Configuration mockConfig = mock(Configuration.class);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java
// Then assertEquals(0, bytesWritten); assertArrayEquals(originalBuffer, buffer); // Buffer should remain unchanged } @Test @DisplayName("Should handle null configuration gracefully") void testNullConfiguration() { // When - constructor accepts null config without throwing Smb2TreeDisconnectResponse responseWithNull = new Smb2TreeDisconnectResponse(null);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java
void testReadMethodsWithNullBuffer() { trans2QueryFSInfo = new Trans2QueryFSInformation(config, FileSystemInformation.SMB_INFO_ALLOCATION); // All read methods should handle null buffer gracefully by returning 0 assertEquals(0, trans2QueryFSInfo.readSetupWireFormat(null, 0, 0)); assertEquals(0, trans2QueryFSInfo.readParametersWireFormat(null, 0, 0));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
void testReadMethodsWithNullBuffer() { trans2SetFileInfo = new Trans2SetFileInformation(config, TEST_FID, mockFileInfo); // All read methods should handle null buffer gracefully assertEquals(0, trans2SetFileInfo.readSetupWireFormat(null, 0, 0)); assertEquals(0, trans2SetFileInfo.readParametersWireFormat(null, 0, 0));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.8K bytes - Viewed (0) -
fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java
assertEquals(4, attemptCount.get()); } /** * Test: Null safety in connect() when targetIndices is null * Verifies that connect() handles null targetIndices gracefully */ @Test public void testConnectWithNullTargetIndices() { final AdminClient mockAdminClient = mock(AdminClient.class);
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 20 08:44:44 UTC 2025 - 17K bytes - Viewed (0) -
internal/ioutil/ioutil.go
// Run runs the given function, passing it a stopper channel. If the deadline passes before // the function finishes executing, Run returns context.DeadlineExceeded to the caller. // channel so that the work function can attempt to exit gracefully. // Multiple calls to Run will run independently of each other. func (d *DeadlineWorker) Run(work func() error) error {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Feb 18 16:25:55 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/netbios/LmhostsTest.java
} when(mockConfig.getLmHostsFileName()).thenReturn(lmhostsFile.getAbsolutePath()); if (!isWindows) { // Should handle IOException gracefully and return null NbtAddress result = lmhosts.getByName("ANYHOST", mockContext); assertNull(result); } // Cleanup lmhostsFile.setReadable(true); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.2K bytes - Viewed (0)