- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 44 for Invocation (0.05 sec)
-
src/test/java/jcifs/http/NtlmHttpFilterTest.java
when(filterConfig.getInitParameterNames()).thenReturn(Collections.enumeration(initParams.keySet())); when(filterConfig.getInitParameter(anyString())).thenAnswer(invocation -> initParams.get(invocation.getArgument(0))); assertDoesNotThrow(() -> filter.init(filterConfig)); } @Test void testInit_withMinimalConfig() throws ServletException {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerEnumIteratorTest.java
// Mock successful but empty response when(treeHandle.send(any(), any(), (RequestParam[]) any())).thenAnswer(invocation -> { // The response is the second argument Object response = invocation.getArgument(1); // Return it unchanged (which will have default values = empty results) return response; });Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
byte[] buf = new byte[4280]; // Use maxRecv size // Mock initial receive with valid PDU header when(mockSmbPipeHandleInternal.recv(buf, 0, buf.length)).thenAnswer(invocation -> { byte[] buffer = invocation.getArgument(0); buffer[0] = 5; // Valid PDU version buffer[1] = 0; // Valid PDU type Encdec.enc_uint16le((short) 50, buffer, 8); // Fragment length
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java
when(mockClearScrollBuilder.addScrollId(any(String.class))).thenReturn(mockClearScrollBuilder); doAnswer(invocation -> { ActionListener<ClearScrollResponse> listener = invocation.getArgument(0); listener.onResponse(mock(ClearScrollResponse.class)); return null; }).when(mockClearScrollBuilder).execute(any(ActionListener.class));
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 20 08:44:44 UTC 2025 - 17K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbTreeTest.java
// Mock transport.connect() to succeed doNothing().when(transport).connect(); // Setup response for tree connect doAnswer(invocation -> { ServerMessageBlock request = invocation.getArgument(0); ServerMessageBlock response = invocation.getArgument(1); if (request instanceof SmbComTreeConnectAndX && response instanceof SmbComTreeConnectAndXResponse) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java
if (lmCompatibility == 3 || lmCompatibility == 4 || lmCompatibility == 5) { // For LM compatibility 3-5, only 16 bytes are used doAnswer(invocation -> { byte[] dest = invocation.getArgument(2); int offset = invocation.getArgument(3); System.arraycopy(new byte[16], 0, dest, offset, 16); return null;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmServletTest.java
lenient().when(servletConfig.getInitParameterNames()).thenReturn(Collections.enumeration(initParams.keySet())); lenient().when(servletConfig.getInitParameter(anyString())).thenAnswer(invocation -> initParams.get(invocation.getArgument(0))); // Mock HTTP method for request - this is required for HttpServlet.service() lenient().when(request.getMethod()).thenReturn("GET");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/util/HMACT64Test.java
when(mockMd5.digest()).thenReturn(innerDigest); when(mockMd5.digest(buffer, 0, expectedOutput.length)).thenAnswer(invocation -> { byte[] b = invocation.getArgument(0); int off = invocation.getArgument(1); int l = invocation.getArgument(2); System.arraycopy(expectedOutput, 0, b, off, l); return l; });Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.6K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractService.java
protected AbstractService() {} /** * This method is called by {@link #startAsync} to initiate service startup. The invocation of * this method should cause a call to {@link #notifyStarted()}, either during this method's run, * or after it has returned. If startup fails, the invocation should cause a call to {@link * #notifyFailed(Throwable)} instead. *
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 20.3K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AbstractService.java
protected AbstractService() {} /** * This method is called by {@link #startAsync} to initiate service startup. The invocation of * this method should cause a call to {@link #notifyStarted()}, either during this method's run, * or after it has returned. If startup fails, the invocation should cause a call to {@link * #notifyFailed(Throwable)} instead. *
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 20.7K bytes - Viewed (0)