- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 193 for delegates (0.94 sec)
-
src/test/java/jcifs/internal/smb1/com/SmbComSetInformationResponseTest.java
byte[] arr = new byte[12]; assertEquals(0, response.readBytesWireFormat(arr, idx)); } } @Test @DisplayName("toString contains class name and delegates to superclass") void toStringMatches() { String s = response.toString(); assertNotNull(s); assertTrue(s.startsWith("SmbComSetInformationResponse[")); assertTrue(s.endsWith("]"));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
verify(tree).send(captor.capture(), any()); assertNotNull(captor.getValue()); } @Test @DisplayName("recv delegates to input.readDirect and returns its value") void testRecvDelegation() throws Exception { SmbPipeHandleImpl spyTarget = spy(target); SmbPipeInputStream in = mock(SmbPipeInputStream.class);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java
import org.junit.jupiter.params.provider.ValueSource; import org.mockito.junit.jupiter.MockitoExtension; /** * Unit tests for {@link NdrHyper}. * <p> * The class only contains an encode/decode pair that delegates to * {@link NdrBuffer#enc_ndr_hyper(long)} and {@link NdrBuffer#dec_ndr_hyper()}. * The tests verify that: * <ul> * <li>encoding and decoding round‑trip correctly handle typical, zero,Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
// This test primarily ensures that the wrapper correctly handles the MalformedURLException // and delegates the SmbFile creation. // When a valid URL is provided, it should not throw an exception. assertNotNull(cifsContextWrapper.get(url)); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java
} }; // When/Then assertThrows(CIFSException.class, () -> iterator.close(), "Should propagate exception from delegate close"); } /** * Test remove method delegates to underlying iterator. */ @Test void testRemove() { // Given when(mockDelegate.hasNext()).thenReturn(true, false);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.4K bytes - Viewed (0) -
src/main/java/jcifs/context/CIFSContextWrapper.java
* * @param delegate * context to delegate non-override methods to * */ public CIFSContextWrapper(final CIFSContext delegate) { this.delegate = delegate; } /** * {@inheritDoc} * * @throws CIFSException if the URL is malformed or there is an error creating the SMB resource * * @see jcifs.CIFSContext#get(java.lang.String) */ @OverrideRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java
void emptyIterator() { when(delegate.hasNext()).thenReturn(false); TestIterator iterator = new TestIterator(null); assertFalse(iterator.hasNext()); assertNull(iterator.next()); } @Test @DisplayName("Close delegates to underlying iterator") void closeDelegation() throws CIFSException { when(delegate.hasNext()).thenReturn(false);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/http/NtlmHttpServletRequestTest.java
import jakarta.servlet.http.HttpServletRequest; @ExtendWith(MockitoExtension.class) public class NtlmHttpServletRequestTest { @Test @DisplayName("constructor stores principal and delegates properly") void testHappyPath(@Mock HttpServletRequest mockRequest, @Mock Principal mockPrincipal) { when(mockPrincipal.getName()).thenReturn("user1");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
void calculateMIC_nullData() { assertThrows(NullPointerException.class, () -> ctx.calculateMIC(null)); } @Test @DisplayName("verifyMIC delegates to GSS and succeeds") void verifyMIC_success() throws Exception { byte[] data = new byte[] { 1, 2 }; byte[] mic = new byte[] { 3 }; // No exception means success
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/CredentialsInternalTest.java
class CredentialsInternalTest { @Mock CIFSContext mockContext; /** * Simple in-test implementation of CredentialsInternal to exercise the API surface. * It validates inputs, records calls, and delegates some behavior to collaborators * so we can verify interactions. */ static class TestCredentials implements CredentialsInternal { private final String domain; private final boolean anonymous;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0)