- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 82 for stubs (0.02 sec)
-
fastapi/security/http.py
return HTTPAuthorizationCredentials(scheme=scheme, credentials=credentials) class HTTPDigest(HTTPBase): """ HTTP Digest authentication. **Warning**: this is only a stub to connect the components with OpenAPI in FastAPI, but it doesn't implement the full Digest scheme, you would need to to subclass it and implement it in your code.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
when(fd.getTree()).thenReturn(tree); when(tree.isSMB2()).thenReturn(false); when(tree.getConfig()).thenReturn(config); when(config.getPid()).thenReturn(1234); // Stub send to populate the provided response instance via reflection Mockito.doAnswer(inv -> { Object resp = inv.getArgument(1);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameQueryResponseTest.java
private NameQueryResponse nameQueryResponse; @BeforeEach void setUp() { // Mock the OEM encoding configuration with lenient stubbing // since not all tests need this stub lenient().when(mockConfig.getOemEncoding()).thenReturn("UTF-8"); // Initialize NameQueryResponse before each test nameQueryResponse = new NameQueryResponse(mockConfig); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
@SuppressWarnings("unchecked") Request<CommonServerMessageBlockResponse> req = mock(Request.class); CommonServerMessageBlockResponse resp = mock(CommonServerMessageBlockResponse.class); // Stub tree send for varargs when(treeConnection.send(eq(resourceLoc), any(CommonServerMessageBlockRequest.class), isNull(), any(RequestParam[].class))) .thenReturn(resp);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDCacheImplTest.java
// Prepare input SIDs SID s1 = sid("S-1-5-21-1-2-3-1001"); SID s2 = sid("S-1-5-21-1-2-3-1002"); jcifs.SID[] in = new jcifs.SID[] { s1, s2 }; // Stub sendrecv to emulate successful RPC response doAnswer(inv -> { // Capture the outgoing RPC and populate result fields as the server would Object msg = inv.getArgument(0);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java
private MavenSession newMavenSession() throws Exception { return createMavenSession(null); } @Override protected String getProjectsDirectory() { // TODO Auto-generated method stub return null; } public static class Mojo { URI uri; Path path; String uriString; String uriAsciiString; String pathString; }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Mar 26 19:31:34 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
@Test @DisplayName("read(): returns -1 when underlying read reports EOF") void read_returnsMinusOne_onEOF() throws Exception { SmbRandomAccessFile raf = spy(newInstance("r", false, false, false)); // Stub the 3-arg read to signal EOF doReturn(-1).when(raf).read(any(byte[].class), anyInt(), eq(1)); assertEquals(-1, raf.read()); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/NullPointerTester.java
* that {@link NullPointerTester} may misbehave under Android when used on classes that rely on * type-use annotations. * * <p>Under j2objc, the necessary APIs exist, but some (perhaps all) return stub values, like * empty arrays. Presumably {@link NullPointerTester} could likewise misbehave under j2objc, but I * don't know that anyone uses it there, anyway. */ private enum NullnessAnnotationReader {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 25.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/NullPointerTester.java
* that {@link NullPointerTester} may misbehave under Android when used on classes that rely on * type-use annotations. * * <p>Under j2objc, the necessary APIs exist, but some (perhaps all) return stub values, like * empty arrays. Presumably {@link NullPointerTester} could likewise misbehave under j2objc, but I * don't know that anyone uses it there, anyway. */ private enum NullnessAnnotationReader {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 24.9K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java
} @Test void testPluginManagementInheritance() throws Exception { PomTestWrapper pom = this.buildPom("plugin-management-inheritance"); assertEquals( "0.1-stub-SNAPSHOT", pom.getValue("build/pluginManagement/plugins[@artifactId='maven-compiler-plugin']/version")); } @Test void testProfilePlugins() throws Exception {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 94.8K bytes - Viewed (0)