- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 120 for 012345 (0.16 sec)
-
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java
void testPrepareWithoutReceivedDoesNotPropagate() { Smb2SessionSetupResponse resp = newResponse(); // Set a sessionId, but do not mark as received via decode resp.setSessionId(0x1234L); CIFSContext mockCtx = mock(CIFSContext.class); when(mockCtx.getConfig()).thenReturn(mock(Configuration.class));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SSPContextTest.java
class ParameterizedInit { static Stream<Arguments> validRanges() { byte[] src = new byte[] { 0, 1, 2, 3 }; return Stream.of(Arguments.of(src, 0, 0, new byte[] {}), Arguments.of(src, 0, 4, new byte[] { 0, 1, 2, 3 }), Arguments.of(src, 1, 2, new byte[] { 1, 2 }), Arguments.of(src, 3, 1, new byte[] { 3 })); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java
@DisplayName("Read array delegates to read with offset and length") void readArrayDelegatesToReadWithOffsetAndLength() throws IOException { // Create message with data byte[] data = new byte[] { 1, 2, 3, 4, 5 }; InputStream in = new ByteArrayInputStream(concat(messageHeader(5), data)); SocketInputStream sis = new SocketInputStream(in); // Read using array-only methodRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/util/IgnoreCloseInputStreamTest.java
byte[] buffer = new byte[10]; int bytesRead = stream.read(buffer, 2, 5); assertEquals(5, bytesRead); assertEquals("01234", new String(buffer, 2, 5)); } public void test_available_delegatesToUnderlying() throws IOException { // Test that available() delegates to underlying stream byte[] data = "Test data".getBytes();Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sat Nov 22 13:28:22 UTC 2025 - 6.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandleTest.java
} @Test void constructor_shouldThrowSmbExceptionOnRpcError() throws IOException { // Arrange String server = "testServer"; int access = 123; int errorCode = 12345; doAnswer(invocation -> { MsrpcLsarOpenPolicy2 rpc = invocation.getArgument(0); rpc.retval = errorCode; // Simulate RPC error return null;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComFindClose2Test.java
*</p> */ @ExtendWith(MockitoExtension.class) class SmbComFindClose2Test { @Mock private Configuration mockConfig; private SmbComFindClose2 instance; private final int TEST_SID = 0x1234; // 4660 decimal @BeforeEach void setUp() { instance = new SmbComFindClose2(mockConfig, TEST_SID); } @Test void testConstructorAndToString() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/HandlerTest.java
void testUrlCreationWithHandler() throws Exception { // Act - Create various SMB URLs using the handler URL url1 = new URL(null, "smb://host/share", handler); URL url2 = new URL(null, "smb://host:1234/share/file.txt", handler); URL url3 = new URL(null, "smb://user:pass@host/share", handler); // Assert - Verify URL components assertEquals("smb", url1.getProtocol());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java
@Mock private Configuration mockConfig; private TransPeekNamedPipe transPeekNamedPipe; private static final String TEST_PIPE_NAME = "\\PIPE\\testpipe"; private static final int TEST_FID = 0x1234; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test @DisplayName("Constructor should initialize with correct values") void testConstructor() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
} @Test @DisplayName("getPipeType and getPipe delegate to SmbNamedPipe") void pipeType_and_getPipe() { when(pipe.getPipeType()).thenReturn(12345); SmbPipeHandleImpl handle = new SmbPipeHandleImpl(pipe); assertEquals(12345, handle.getPipeType()); assertSame(pipe, handle.getPipe()); } @Test @DisplayName("isOpen/isStale reflect handle validity and lifecycle")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 16.7K bytes - Viewed (0) -
src/test/java/jcifs/config/BaseConfigurationTest.java
void testInitDefaultsWithPresetFlags() throws CIFSException { BaseConfiguration testConfig = new BaseConfiguration(false); testConfig.flags2 = 0x1234; testConfig.capabilities = 0x5678; testConfig.initDefaults(); assertEquals(0x1234, testConfig.getFlags2()); assertEquals(0x5678, testConfig.getCapabilities()); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 20.6K bytes - Viewed (0)