- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 3,913 for getA (0.04 sec)
-
fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/OpenSearchDataService.java
target.setMethod(getFieldValue(fields.get("method"), String.class)); target.setMimeType(getFieldValue(fields.get("mimeType"), String.class)); target.setSessionId(getFieldValue(fields.get("sessionId"), String.class)); target.setUrl(getFieldValue(fields.get("url"), String.class));
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Nov 07 04:44:10 UTC 2024 - 8.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java
assertThat(multimap.keySet()).containsExactly("a", "b", "c").inOrder(); assertThat(multimap.values()).containsExactly(1, 3, 2, 4).inOrder(); assertThat(multimap.get("a")).containsExactly(1, 3).inOrder(); assertThat(multimap.get("b")).containsExactly(2); assertThat(multimap.get("c")).containsExactly(4); } public void testEmptyMultimapReads() { ImmutableListMultimap<String, Integer> multimap = ImmutableListMultimap.of();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 23.8K bytes - Viewed (0) -
tests/test_security_http_basic_realm_description.py
security = HTTPBasic(realm="simple", description="HTTPBasic scheme") @app.get("/users/me") def read_current_user(credentials: HTTPBasicCredentials = Security(security)): return {"username": credentials.username, "password": credentials.password} client = TestClient(app) def test_security_http_basic(): response = client.get("/users/me", auth=("john", "secret")) assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.8K bytes - Viewed (0) -
tests/test_security_http_bearer_optional.py
client = TestClient(app) def test_security_http_bearer(): response = client.get("/users/me", headers={"Authorization": "Bearer foobar"}) assert response.status_code == 200, response.text assert response.json() == {"scheme": "Bearer", "credentials": "foobar"} def test_security_http_bearer_no_credentials(): response = client.get("/users/me") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.1K bytes - Viewed (0) -
tests/test_security_oauth2_authorization_code_bearer_description.py
tokenUrl="token", description="OAuth2 Code Bearer", auto_error=True, ) @app.get("/items/") async def read_items(token: Optional[str] = Security(oauth2_scheme)): return {"token": token} client = TestClient(app) def test_no_token(): response = client.get("/items") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.4K bytes - Viewed (0) -
tests/test_security_oauth2_password_bearer_optional.py
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/token", auto_error=False) @app.get("/items/") async def read_items(token: Optional[str] = Security(oauth2_scheme)): if token is None: return {"msg": "Create an account first"} return {"token": token} client = TestClient(app) def test_no_token(): response = client.get("/items") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.1K bytes - Viewed (0) -
tests/test_openapi_examples.py
response = client.get("/path_examples/foo") assert response.status_code == 200, response.text response = client.get("/query_examples/") assert response.status_code == 200, response.text response = client.get("/header_examples/") assert response.status_code == 200, response.text response = client.get("/cookie_examples/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 06 15:57:43 UTC 2024 - 17.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/es/config/bsbhv/BsDataConfigBhv.java
result.setAvailable(DfTypeUtil.toBoolean(source.get("available"))); result.setBoost(DfTypeUtil.toFloat(source.get("boost"))); result.setCreatedBy(DfTypeUtil.toString(source.get("createdBy"))); result.setCreatedTime(DfTypeUtil.toLong(source.get("createdTime"))); result.setDescription(DfTypeUtil.toString(source.get("description")));
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 10.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/sso/aad/AzureAdAuthenticatorTest.java
assertEquals("******@****.***", list.get(0)); assertEquals("test", list.get(1)); list.clear(); authenticator.addGroupOrRoleName(list, "******@****.***", false); assertEquals(1, list.size()); assertEquals("******@****.***", list.get(0)); list.clear(); authenticator.addGroupOrRoleName(list, "******@****.***@hoge.com", true); assertEquals(2, list.size());
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 2K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/validation/DefaultModelValidatorTest.java
assertViolations(result, 0, 4, 0); assertTrue(result.getErrors().get(0).contains("+invalid-id")); assertTrue(result.getErrors().get(1).contains("-invalid-id")); assertTrue(result.getErrors().get(2).contains("!invalid-id")); assertTrue(result.getErrors().get(3).contains("?invalid-id")); } public void testDuplicateProfileId() throws Exception {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 32.8K bytes - Viewed (0)