- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 81 for Stub (0.24 sec)
-
src/test/java/jcifs/smb/SmbSessionInternalTest.java
assertTrue(ex.getMessage().contains("invalid")); verify(session).getSmbTree(eq(share), eq(service)); } // Edge: unknown service returns null per stub @Test @DisplayName("getSmbTree unknown service returns null as stubbed") void getSmbTree_unknownService() { when(session.getSmbTree(eq("share"), eq("UNKNOWN"))).thenReturn(null);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/project/ProjectBuilder.java
* @param allowStubModel A flag controlling the case of a missing POM artifact. If {@code true} and the specified * POM artifact does not exist, a simple stub model will be returned. If {@code false}, an exception will * be thrown. * @param request The project building request that holds further parameters, must not be {@code null}.Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jul 23 10:13:56 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SSPContextTest.java
} @Test @DisplayName("Never calculates MIC when integrity unsupported") void testNoMicCalculationWhenIntegrityUnsupported() throws Exception { // Only stub supportsIntegrity - isEstablished won't be called due to short-circuit when(mockCtx.supportsIntegrity()).thenReturn(false); // A small consumer that only uses MIC if advertised as availableRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.2K bytes - Viewed (0) -
cmd/kms-handlers_test.go
}, // APIs test { name: "apis as root want success", method: http.MethodGet, path: kmsAPIsPath, asRoot: true, wantStatusCode: http.StatusOK, wantResp: []string{"stub/path"}, }, { name: "apis as user with no policy want forbidden", method: http.MethodGet, path: kmsAPIsPath, asRoot: false, wantStatusCode: http.StatusForbidden,Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 22.3K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcLookupSidsTest.java
// Arrange jcifs.SID mockSid1 = mock(jcifs.SID.class); jcifs.SID mockSid2 = mock(jcifs.SID.class); when(mockSid1.unwrap(sid_t.class)).thenReturn(mockSidT); // Don't stub mockSid2 since it won't be reached due to NPE on null element testSids = new jcifs.SID[] { mockSid1, null, mockSid2 }; // Act & Assert - This should throw an exception when LsarSidArrayX tries to process nullRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.6K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4Test.java
assertEquals(mojo.pathString, path.toString()); } @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.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryTest.java
// --- Mockito-based interaction tests --- @Test @DisplayName("Mocked FileEntry returns stubbed values and verifies interactions") void mockedEntry_happyPath_and_interactions() { // Arrange: stub all methods with representative values when(mockEntry.getName()).thenReturn("file.txt"); when(mockEntry.getType()).thenReturn(1); when(mockEntry.getAttributes()).thenReturn(0x20);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10K 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) -
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/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)