- Sort Score
- Result 10 results
- Languages All
Results 591 - 600 of 2,319 for execution (0.04 sec)
-
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
// When & Then SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> response.readBytesWireFormat(buffer, 0)); assertEquals("Expected structureSize = 9", exception.getMessage()); } @Test @DisplayName("Should handle empty notification list") void testEmptyNotificationList() throws Exception { // Given
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
@Mock SmbFileHandleImpl handle; @Mock SmbTreeHandleImpl tree; // Prepare SMB2 flow with a given response private void setupSmb2(NotifyResponse resp, byte[] fileId) throws Exception { when(handle.isValid()).thenReturn(true); when(handle.getTree()).thenReturn(tree); when(tree.isSMB2()).thenReturn(true); when(tree.getConfig()).thenReturn(mock(Configuration.class));Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java
void testServerInfo1GetTypeWorkgroup() throws Exception { NetServerEnum2Response.ServerInfo1 server = response.new ServerInfo1(); server.type = 0x80000000; // SV_TYPE_DOMAIN_ENUM flag assertEquals(SmbConstants.TYPE_WORKGROUP, server.getType()); } @Test @DisplayName("Test ServerInfo1 getType for server") void testServerInfo1GetTypeServer() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java
assertEquals(unicodeFileName, notifications.get(0).getFileName()); } @Test @DisplayName("Test readParametersWireFormat with non-aligned nextEntryOffset throws exception") void testReadParametersWireFormatNonAlignedOffset() throws Exception { ByteBuffer buffer = ByteBuffer.allocate(100); buffer.order(ByteOrder.LITTLE_ENDIAN); // Create notification with non-aligned nextEntryOffset
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.7K bytes - Viewed (0) -
src/test/java/jcifs/http/HandlerTest.java
class HandlerTest { @Mock private CIFSContext mockCifsContext; private Handler handler; private Properties originalSystemProperties; @BeforeEach void setUp() throws Exception { // Backup system properties to restore them after each test originalSystemProperties = (Properties) System.getProperties().clone(); // Reset static state of the Handler class before each test for isolationRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/net/URLUtilTest.java
* */ public class URLUtilTest extends TestCase { /** * @throws Exception */ public void testEncode() throws Exception { assertEquals("Program+Files", URLUtil.encode("Program Files", "UTF-8")); } /** * @throws Exception */ public void testDecode() throws Exception { assertEquals("Program Files", URLUtil.decode("Program+Files", "UTF-8")); }Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CloseablesTest.java
// make sure that no exception is thrown if 'swallowException' is true // when the mock does throw an exception. setupCloseable(true); doClose(mockCloseable, true); } public void testClose_closeableWithThrownException() throws IOException { // make sure that the exception is thrown if 'swallowException' is false // when the mock does throw an exception. setupCloseable(true);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/transport/TransportException.java
package jcifs.smb1.util.transport; import java.io.IOException; import java.io.PrintWriter; import java.io.StringWriter; /** * Exception thrown when transport-level errors occur in JCIFS SMB communication. */ public class TransportException extends IOException { /** The root cause exception */ private Throwable rootCause; /** * Constructs a new TransportException with no detail message. */Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.8K bytes - Viewed (0) -
src/test/java/org/codelibs/core/exception/SRuntimeExceptionTest.java
final ClRuntimeException ex = new ClRuntimeException("ECL0001", asArray("hoge")); assertThat(ex.getMessageCode(), is("ECL0001")); assertThat(ex.getArgs().length, is(1)); assertThat(ex.getArgs()[0], is((Object) "hoge")); System.out.println(ex.getMessage()); } /** * @throws Exception */ @Test public void testGetCause() throws Exception {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessApiFailureHookTest.java
} // Test with different exception types public void test_exceptionTypes() { // Test RuntimeException RuntimeException runtimeEx = new RuntimeException("Runtime error"); assertEquals("Runtime error", runtimeEx.getMessage()); // Test Exception Exception generalEx = new Exception("General error");Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7K bytes - Viewed (0)