- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 193 for delegates (0.67 sec)
-
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
// Assert assertEquals(7, r); verify(mockOut).write(eq(buf), eq(2), eq(4)); verify(mockIn).read(eq(recv)); } @Test @DisplayName("recv delegates to input.readDirect with args") void recv_delegates_readDirect() throws Exception { SmbPipeHandleImpl handle = newHandleWithBasicStubs(0, "\\\\pipe\\\\y"); // Mock the stream directlyRegistered: 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/smb/SmbSessionImplTest.java
void testGettersAndState() { SmbSessionImpl session = newSession(); // Basic getters assertSame(configuration, session.getConfig(), "getConfig delegates to transportContext"); assertEquals("EXAMPLE", session.getTargetDomain()); assertEquals("server.example", session.getTargetHost()); assertTrue(session.isInUse(), "New session starts in-use (usageCount=1)");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K bytes - Viewed (1) -
src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java
properties.put("Accept", Collections.singletonList("application/json")); when(mockConnection.getRequestProperties()).thenReturn(properties); // Need to mock getRequestProperty as well since it delegates to wrapped connection when(mockConnection.getRequestProperty("Accept")).thenReturn("application/json"); // Act ntlmConnection = new NtlmHttpURLConnection(mockConnection, mockCifsContext);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmUtilTest.java
assertEquals(16 + clientData.length, result.length); assertArrayEquals(clientData, Arrays.copyOfRange(result, 16, 16 + clientData.length)); } @Test @DisplayName("getLMv2Response(byte[]): delegates to computeResponse") void testGetLMv2Response_bytes_delegates() { // Arrange byte[] key = hex("000102030405060708090A0B0C0D0E0F"); byte[] server = hex("0102030405060708");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12K bytes - Viewed (1) -
src/test/java/jcifs/config/DelegatingConfigurationTest.java
// Then assertTrue(smb2Only, "Should delegate SMB2 only negotiation"); assertFalse(secureNegotiate, "Should delegate secure negotiate requirement"); assertTrue(ntlmTargetName, "Should delegate NTLM target name setting"); assertFalse(port139Failover, "Should delegate port 139 failover setting"); assertTrue(dfsStrictView, "Should delegate DFS strict view setting");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
when(s.isClosed()).thenReturn(true); assertTrue(transport.isDisconnected()); assertTrue(transport.isFailed()); } @Test @DisplayName("capability query delegates to negotiation state") void hasCapability_delegates() throws Exception { // Arrange SmbNegotiationResponse nego = mock(SmbNegotiationResponse.class); setField(transport, "negotiated", nego);
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/smb/SmbWatchHandleImplTest.java
verify(tree).send(reqCap.capture(), any(), any(), any()); assertTrue(reqCap.getValue() instanceof Smb2ChangeNotifyRequest); } // call() should delegate to watch() and return the same list @Test @DisplayName("call() delegates to watch() and returns same result") void call_delegatesToWatch() throws Exception { List<FileNotifyInformation> info = new ArrayList<>();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
watchHandle.watch(); }); assertEquals("Watch operation failed", thrown.getMessage()); verify(watchHandle, times(1)).watch(); } /** * Test call() method delegates to watch() */ @Test void testCall() throws CIFSException { // Setup mock behavior when(watchHandle.call()).thenReturn(mockNotifications); // Execute
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (1) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
long offVal = offField.getLong(req); assertEquals(2L, offVal, "Request offset should match skipped bytes"); } @Test @DisplayName("read(byte[]) delegates to read(byte[],off,len)") void readArrayDelegates() throws Exception { SmbFileInputStream in = newStream(); Smb2ReadResponse smb2Resp = mock(Smb2ReadResponse.class);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0)