- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 522 for stub (0.03 seconds)
-
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}.Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jul 23 10:13:56 GMT 2025 - 5.5K bytes - Click Count (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
f.setAccessible(true); f.set(target, value); } catch (Exception e) { throw new RuntimeException(e); } } // Simple FileEntry stub for tests private static final class FE implements FileEntry { private final String name; FE(String name) { this.name = name; } @Override
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.7K bytes - Click Count (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 availableCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.2K bytes - Click Count (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,Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 22.3K bytes - Click Count (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 nullCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.6K bytes - Click Count (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);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10K bytes - Click Count (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; }
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Mar 26 19:31:34 GMT 2025 - 19.3K bytes - Click Count (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);
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (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.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 13.2K bytes - Click Count (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); } @TestCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.4K bytes - Click Count (0)