- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 202 for throwing (1.77 sec)
-
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
verify(tree, atLeastOnce()).release(); } @ParameterizedTest @ValueSource(strings = { "", " ", "*", "?" }) @DisplayName("Supports various wildcard values without throwing (edge cases)") void wildcardEdgeCases(String wildcard) throws Exception { // minimal successful first response with a single entry
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
void connectWrapException_wrapsToSmbException(SmbResourceLocatorImpl loc, Exception thrown) throws Exception { // Arrange: spy on instance to force connect() failure with specific exception CIFSContext ctx = mock(CIFSContext.class); SmbTreeConnectionTrace trace = Mockito.spy(new SmbTreeConnectionTrace(ctx)); doThrow(thrown).when(trace).connect(loc);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/jcifs/SmbPipeHandleTest.java
* Tests related to the lifecycle management of the handle (e.g., closing). */ @Nested public class LifecycleManagementTest { /** * Verifies that the close method can be called without throwing an exception. * @throws CIFSException if an error occurs during close. */ @Test public void testClose() throws CIFSException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/EmptyIteratorTest.java
// This is a design choice for this specific implementation assertNull(emptyIterator.next(), "This implementation returns null instead of throwing"); // Verify remove can be called (even though no-op) assertDoesNotThrow(() -> emptyIterator.remove(), "remove() should be safe to call"); // Verify still empty after operationsRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
transport.getRequestSecurityMode(firstReq)); } @Test @DisplayName("toString contains key fields without throwing") void toStringContainsInfo() { String s = transport.toString(); assertNotNull(s); assertTrue(s.contains("state=")); assertTrue(s.contains(":445")); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcHandleTest.java
doThrow(expectedException).when(spyHandle).sendrecv(any(DcerpcMessage.class)); // When/Then: Should propagate IOException IOException thrown = assertThrows(IOException.class, () -> spyHandle.bind()); assertEquals("Test IO Exception", thrown.getMessage()); } } @Nested @DisplayName("Send/Receive Tests") class SendReceiveTests { @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.3K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/FileTransformer.java
* the maximum number of duplicated paths to attempt, and the character set for encoding the file path. * </p> * * <p> * It handles potential exceptions during file creation and storage, throwing * {@link org.codelibs.fess.crawler.exception.CrawlerSystemException} in case of errors. * </p> * * <p> * The {@link #storeData(ResponseData, ResultData)} method is the main entry point for storingRegistered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Aug 07 02:55:08 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java
} @Test @DisplayName("Should handle null configuration gracefully") void testNullConfiguration() { // When - constructor accepts null config without throwing Smb2TreeDisconnectResponse responseWithNull = new Smb2TreeDisconnectResponse(null); // Then - response is created successfully assertNotNull(responseWithNull); } @TestRegistered: 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/io/Smb2ReadResponseTest.java
} @Test @DisplayName("Should handle null configuration gracefully") void testNullConfiguration() { // When - constructor accepts null config without throwing Smb2ReadResponse responseWithNull = new Smb2ReadResponse(null, outputBuffer, outputBufferOffset); // Then - response is created successfully assertNotNull(responseWithNull); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbSession.java
* specified by the <code>UniAddress</code> parameter. If the credentials are * not accepted, an <code>SmbAuthException</code> will be thrown. If an error * occurs an <code>SmbException</code> will be thrown. If the credentials are * valid, the method will return without throwing an exception. See the * last <a href="../../../faq.html">FAQ</a> question. * <p>
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 20.7K bytes - Viewed (0)