- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for test_get_credentials (0.06 sec)
-
tests/test_dependency_paramless.py
@app.get( "/parameterless-without-scopes", dependencies=[Security(process_auth)], ) def get_parameterless_without_scopes(): return {"status": "ok"} client = TestClient(app) def test_get_credentials(): response = client.get("/get-credentials", headers={"authorization": "Bearer token"}) assert response.status_code == 200, response.text assert response.json() == {"token": "token", "scopes": ["a", "b"]}
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 2.3K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
when(mockDelegate.getDfs()).thenReturn(mockDfsResolver); assertEquals(mockDfsResolver, cifsContextWrapper.getDfs()); verify(mockDelegate).getDfs(); } @Test void testGetCredentials() { // Test getCredentials() method Credentials mockCredentials = mock(Credentials.class); when(mockDelegate.getCredentials()).thenReturn(mockCredentials);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/context/AbstractCIFSContextTest.java
assertTrue(wrappedContext.getCredentials() instanceof NtlmPasswordAuthenticator); assertTrue(wrappedContext.getCredentials().isGuest()); } @Test void testGetCredentials() { assertEquals(mockCredentials, context.getCredentials()); } @Test void testHasDefaultCredentials_withNonAnonymous() { when(mockCredentials.isAnonymous()).thenReturn(false);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java
assertEquals(mockCredentials, wrapper.getCredentials(), "Initial credentials should be set by constructor"); } @Test @DisplayName("Should return the credentials provided in the constructor") void testGetCredentials() { assertEquals(mockCredentials, wrapper.getCredentials(), "getCredentials should return the initially set credentials"); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/CIFSContextTest.java
// Then assertEquals(mockResolver, resolver); verify(mockContext).getSIDResolver(); } @Test @DisplayName("Should get Credentials") void testGetCredentials() { // Given Credentials mockCreds = mock(Credentials.class); when(mockContext.getCredentials()).thenReturn(mockCreds); // WhenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0)