- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 99 for lenient (0.06 sec)
-
src/test/java/jcifs/dcerpc/DcerpcBindTest.java
when(mockHandle.getMaxRecv()).thenReturn(maxRecv); // Use lenient stubbing to handle multiple calls lenient().doNothing().when(mockBuffer).enc_ndr_short(anyInt()); lenient().doNothing().when(mockBuffer).enc_ndr_long(anyInt()); lenient().doNothing().when(mockBuffer).enc_ndr_small(anyInt());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.7K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/Type1MessageTest.java
@BeforeEach void setUp() { // Setup mock context with lenient stubbing to avoid UnnecessaryStubbingException lenient().when(mockContext.getConfig()).thenReturn(mockConfig); lenient().when(mockContext.getNameServiceClient()).thenReturn(mockNameServiceClient); lenient().when(mockNameServiceClient.getLocalHost()).thenReturn(mockLocalHost); lenient().when(mockLocalHost.getHostName()).thenReturn("localhost");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/Type3MessageTest.java
mockRandom.nextBytes(machineId); lenient().when(mockConfig.getDefaultDomain()).thenReturn("TESTDOMAIN"); lenient().when(mockConfig.isUseUnicode()).thenReturn(true); lenient().when(mockConfig.getOemEncoding()).thenReturn("UTF-8"); lenient().when(mockConfig.getRandom()).thenReturn(mockRandom); lenient().when(mockConfig.getLanManCompatibility()).thenReturn(3); // Default NTLMv2
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/DfsTest.java
lenient().when(UniAddress.getByName("domain.com", true)).thenReturn(uniAddress); lenient().when(SmbTransport.getSmbTransport(uniAddress, 0)).thenReturn(smbTransport); DfsReferral referral = new DfsReferral(); referral.server = "dc1.domain.com"; referral.next = referral;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcMessageTest.java
lenient().doNothing().when(mockBuffer).advance(anyInt()); lenient().doNothing().when(mockBuffer).enc_ndr_long(anyInt()); lenient().doNothing().when(mockBuffer).enc_ndr_short(anyInt()); lenient().doNothing().when(mockBuffer).enc_ndr_small(anyInt()); lenient().doNothing().when(mockBuffer).setIndex(anyInt());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java
mockContext = mock(CIFSContext.class); testFileId = new byte[16]; Arrays.fill(testFileId, (byte) 0xAB); // Use lenient stubbing for default configuration values lenient().when(mockConfig.getNotifyBufferSize()).thenReturn(8192); lenient().when(mockContext.getConfig()).thenReturn(mockConfig); request = new Smb2ChangeNotifyRequest(mockConfig, testFileId); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/CredentialsInternalTest.java
tc.getConfig(); tc.getCredentials(); // Minimal behavior: return a mock SSPContext with lenient stubbing SSPContext ctx = mock(SSPContext.class); lenient().when(ctx.isEstablished()).thenReturn(false); return ctx; } @Override public Subject getSubject() { return this.subject;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
// Setup mock behavior for GSSManager with lenient matchers lenient().when(gssManager.createName(anyString(), any(), any())).thenReturn(serviceName); lenient().when(gssManager.createName(anyString(), any())).thenReturn(serviceName); lenient().when(gssManager.createContext(any(), any(), any(), anyInt())).thenReturn(gssContext);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java
MockitoAnnotations.openMocks(this); // Set the deferred field directly since it's a public field, not a method mockNdrBuffer.deferred = mockDeferredBuffer; lenient().when(mockNdrBuffer.derive(anyInt())).thenReturn(mockDeferredBuffer); lenient().when(mockDeferredBuffer.derive(anyInt())).thenReturn(mockDeferredBuffer); } @Test void testGetSyntax() { String syntax = srvsvc.getSyntax();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
when(pipe.openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(fh); when(fh.acquire()).thenReturn(fh); lenient().when(fh.isValid()).thenReturn(true); lenient().when(fh.getTree()).thenReturn(tree); lenient().when(tree.getReceiveBufferSize()).thenReturn(4096); // Mock the streams SmbPipeInputStream mockIn = mock(SmbPipeInputStream.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 16.7K bytes - Viewed (0)