- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 903 for inrange (0.06 seconds)
-
src/test/java/jcifs/NameServiceClientTest.java
@Mock private NameServiceClient nameServiceClient; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test void testGetLocalHost() { // Arrange NetbiosAddress expectedAddress = mock(NetbiosAddress.class); when(nameServiceClient.getLocalHost()).thenReturn(expectedAddress); // ActCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/SIDCacheImplTest.java
DcerpcHandle handle = mock(DcerpcHandle.class); LsaPolicyHandle policy = mock(LsaPolicyHandle.class); jcifs.SID[] sids = new jcifs.SID[] { sid("S-1-1-0") }; // Arrange a minimal response with given retval doAnswer(inv -> { jcifs.dcerpc.msrpc.MsrpcLookupSids rpc = inv.getArgument(0); rpc.retval = ret; // Provide empty arrays to satisfy code paths
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcLookupSidsTest.java
@BeforeEach void setUp() { // Setup is minimal - mocks are configured per test as needed } @Test void constructor_shouldInitializeWithValidParameters() { // Arrange jcifs.SID mockSid1 = mock(jcifs.SID.class); jcifs.SID mockSid2 = mock(jcifs.SID.class); when(mockSid1.unwrap(sid_t.class)).thenReturn(mockSidT);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java
assertEquals("\\PIPE\\", trans.name); } @Test @DisplayName("Test writeSetupWireFormat writes correct data") void testWriteSetupWireFormat() { // Arrange TransTransactNamedPipe trans = new TransTransactNamedPipe(mockConfig, TEST_FID, TEST_DATA, TEST_OFFSET, TEST_LENGTH); byte[] dst = new byte[10]; int dstIndex = 0; // Act
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java
// FID is written in writeSetupWireFormat, verify it there } @Test @DisplayName("writeSetupWireFormat should write correct bytes") void testWriteSetupWireFormat() { // Arrange transPeekNamedPipe = new TransPeekNamedPipe(mockConfig, TEST_PIPE_NAME, TEST_FID); byte[] buffer = new byte[10]; int offset = 2; // ActCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java
// Arrange byte[] dst = new byte[100]; int dstIndex = 0; // Act int result = response.writeParametersWireFormat(dst, dstIndex); // Assert assertEquals(0, result); } @Test @DisplayName("writeParametersWireFormat with offset should return 0") void testWriteParametersWireFormatWithOffset() { // ArrangeCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java
@Mock SmbTreeHandleImpl tree; @Mock SmbNamedPipe pipe; @Mock SmbFileHandleImpl fileHandle; private SmbPipeOutputStream newStream() throws CIFSException { // Arrange common constructor collaborators to avoid touching network/state when(handle.getPipe()).thenReturn(pipe); when(tree.isSMB2()).thenReturn(true); when(tree.getSendBufferSize()).thenReturn(4096);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java
} @Test @DisplayName("Default ctor: null message/cause; toString is class name; type hierarchy") void defaultConstructor_hasNullMessageAndCause_andTypeHierarchy() { // Arrange & Act SMBProtocolDowngradeException ex = new SMBProtocolDowngradeException(); // Assert - message and cause are null assertNull(ex.getMessage(), "Default constructor should have null message");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbNamedPipeTest.java
@DisplayName("Accepts IPC$ URLs (happy path)") @ValueSource(strings = { "smb://server/IPC$/foo", "smb://server/IPC$/PIPE/foo" }) void constructsWithIpcShare(String url) throws Exception { // Arrange & Act SmbNamedPipe pipe = new SmbNamedPipe(url, SmbPipeResource.PIPE_TYPE_RDWR, ctx()); // Assert: type is named pipe and pipe type preservedCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/HandlerTest.java
// Arrange & Act Handler handler = newHandler(); URL url = new URL(null, spec, handler); // Assert assertEquals(expectedPort, url.getPort()); } @Test @DisplayName("parseURL with null spec throws NullPointerException") void testParseURL_NullSpec() throws MalformedURLException {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.8K bytes - Click Count (0)