Search Options

Results per page
Sort
Preferred Languages
Advance

Results 511 - 520 of 3,052 for get2 (0.02 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java

        assertNull(getMap().inverse().get(v0()));
        assertEquals(1, getMap().size());
        assertTrue(getMap().containsKey(k0()));
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(ONE)
      public void testForcePutValuePresent() {
        getMap().forcePut(k1(), v0());
        expectContents(mapEntry(k1(), v0()));
        assertEquals(k1(), getMap().inverse().get(v0()));
        assertEquals(1, getMap().size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java

        int size = multimap().size();
        List<V> oldValues = new ArrayList<>(multimap().get(k0()));
        List<V> values = asList(v0(), v3(), v0());
        assertEquals(oldValues, new ArrayList<V>(multimap().replaceValues(k0(), values)));
        assertEquals(size - oldValues.size() + multimap().get(k0()).size(), multimap().size());
        assertTrue(multimap().get(k0()).containsAll(values));
      }
    
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. cmd/kms-handlers.go

    		return
    	}
    	allKeys, _, err := GlobalKMS.ListKeys(ctx, &kms.ListRequest{
    		Prefix: r.Form.Get("pattern"),
    	})
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	// Get the cred and owner for checking authz below.
    	cred, owner, s3Err := validateAdminSignature(ctx, r, "")
    	if s3Err != ErrNone {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java

        assertEqualInOrder(values, multimap().get(key));
    
        if (!values.isEmpty()) {
          assertEqualInOrder(values, multimap().asMap().get(key));
          assertFalse(multimap().isEmpty());
        } else {
          assertNull(multimap().asMap().get(key));
        }
    
        assertEquals(values.size(), multimap().get(key).size());
        assertEquals(values.size() > 0, multimap().containsKey(key));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_separate_openapi_schemas/test_tutorial002_py310.py

    @needs_py310
    @needs_pydanticv2
    def test_openapi_schema(client: TestClient) -> None:
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/items/": {
                    "get": {
                        "summary": "Read Items",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  6. tests/test_custom_swagger_ui_redirect.py

    swagger_ui_oauth2_redirect_url = "/docs/redirect"
    
    app = FastAPI(swagger_ui_oauth2_redirect_url=swagger_ui_oauth2_redirect_url)
    
    
    @app.get("/items/")
    async def read_items():
        return {"id": "foo"}
    
    
    client = TestClient(app)
    
    
    def test_swagger_ui():
        response = client.get("/docs")
        assert response.status_code == 200, response.text
        assert response.headers["content-type"] == "text/html; charset=utf-8"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Apr 08 04:37:38 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/repository/ArtifactTransferResource.java

        String getName();
    
        /**
         * Gets the full URL of the artifact.
         *
         * @return The full URL of the artifact, never {@code null}.
         */
        String getUrl();
    
        /**
         * The size of the artifact in bytes.
         *
         * @return The of the artifact in bytes or a negative value if unknown.
         */
        long getContentLength();
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/es/config/bsbhv/BsBadWordBhv.java

                result.setCreatedBy(DfTypeUtil.toString(source.get("createdBy")));
                result.setCreatedTime(DfTypeUtil.toLong(source.get("createdTime")));
                result.setSuggestWord(DfTypeUtil.toString(source.get("suggestWord")));
                result.setTargetLabel(DfTypeUtil.toString(source.get("targetLabel")));
                result.setTargetRole(DfTypeUtil.toString(source.get("targetRole")));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. .teamcity/src/main/kotlin/common/VersionedSettingsBranch.kt

                    }
                }
            }
        }
    
        val isMainBranch: Boolean
            get() = isMaster || isRelease
        val isMaster: Boolean
            get() = branchName == MASTER_BRANCH
        val isRelease: Boolean
            get() = branchName == RELEASE_BRANCH
        val isExperimental: Boolean
            get() = branchName == EXPERIMENTAL_BRANCH
    
        fun vcsRootId() = DslContext.settingsRoot.id.toString()
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Aug 26 12:59:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. cmd/object-lambda-handlers.go

    		}
    	}
    }
    
    func fwdStatusToAPIError(resp *http.Response) *APIError {
    	if status := resp.Header.Get(xhttp.AmzFwdStatus); status != "" && StatusCode(status) > -1 {
    		apiErr := &APIError{
    			HTTPStatusCode: StatusCode(status),
    			Description:    resp.Header.Get(xhttp.AmzFwdErrorMessage),
    			Code:           resp.Header.Get(xhttp.AmzFwdErrorCode),
    		}
    		if apiErr.HTTPStatusCode == http.StatusOK {
    			return nil
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 22 07:04:48 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top