Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 161 - 170 of 1,396 for putA (0.02 seconds)

  1. android/guava-tests/test/com/google/common/collect/HashMultimapTest.java

        multimap.put("foo", 1);
        multimap.put("bar", 2);
        multimap.put("foo", 3);
        assertEquals(ImmutableSet.of(1, 3), multimap.get("foo"));
        assertEquals(2, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromMultimap() {
        HashMultimap<String, Integer> multimap = HashMultimap.create();
        multimap.put("foo", 1);
        multimap.put("bar", 2);
        multimap.put("foo", 3);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/HashMultimapTest.java

        multimap.put("foo", 1);
        multimap.put("bar", 2);
        multimap.put("foo", 3);
        assertEquals(ImmutableSet.of(1, 3), multimap.get("foo"));
        assertEquals(2, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromMultimap() {
        HashMultimap<String, Integer> multimap = HashMultimap.create();
        multimap.put("foo", 1);
        multimap.put("bar", 2);
        multimap.put("foo", 3);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  3. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/type/DefaultType.java

            Map<String, String> properties = new HashMap<>();
            properties.put(ArtifactProperties.TYPE, id);
            properties.put(ArtifactProperties.LANGUAGE, language.id());
            properties.put(MavenArtifactProperties.INCLUDES_DEPENDENCIES, Boolean.toString(includesDependencies));
            properties.put(
                    MavenArtifactProperties.CONSTITUTES_BUILD_PATH,
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  4. tests/test_tutorial/test_body_multiple_params/test_tutorial003.py

        mod = importlib.import_module(f"docs_src.body_multiple_params.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    def test_post_body_valid(client: TestClient):
        response = client.put(
            "/items/5",
            json={
                "importance": 2,
                "item": {"name": "Foo", "price": 50.5},
                "user": {"username": "Dave"},
            },
        )
        assert response.status_code == 200
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/collect/FilteredMultimapTest.java

        unfiltered.put("foo", 55556);
        unfiltered.put("badkey", 1);
        return Multimaps.filterEntries(unfiltered, ENTRY_PREDICATE);
      }
    
      private static final Predicate<String> KEY_PREDICATE = key -> !Objects.equals(key, "badkey");
    
      public void testFilterKeys() {
        Multimap<String, Integer> unfiltered = HashMultimap.create();
        unfiltered.put("foo", 55556);
        unfiltered.put("badkey", 1);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Feb 12 03:49:18 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java

                bb.putShort((short) 24); // altPathOffset
                bb.putShort((short) 28); // nodeOffset
    
                // Add path string at offset 20 (8 + 20 = 28)
                bb.position(28);
                bb.put("\\test\0".getBytes(StandardCharsets.UTF_16LE));
    
                int bytesDecoded = buffer.decode(testBuffer, 0, testBuffer.length);
    
                assertEquals(42, bytesDecoded); // 8 header + 34 referral
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategy.java

            // Clean lifecycle aliases
            phaseUpgrades.put("pre-clean", Lifecycle.BEFORE + Lifecycle.Phase.CLEAN);
            phaseUpgrades.put("post-clean", Lifecycle.AFTER + Lifecycle.Phase.CLEAN);
    
            // Default lifecycle aliases
            phaseUpgrades.put("pre-integration-test", Lifecycle.BEFORE + Lifecycle.Phase.INTEGRATION_TEST);
            phaseUpgrades.put("post-integration-test", Lifecycle.AFTER + Lifecycle.Phase.INTEGRATION_TEST);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  8. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/GAVUtilsTest.java

                Document childDoc = Document.of(childPomXml);
    
                Map<Path, Document> pomMap = new HashMap<>();
                pomMap.put(Paths.get("/project/pom.xml"), parentDoc);
                pomMap.put(Paths.get("/project/child/pom.xml"), childDoc);
    
                UpgradeContext context = createMockContext();
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 17.3K bytes
    - Click Count (0)
  9. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractorTest.java

                for (Dependency dep : getDependencies()) {
                    ret.put(dep.getArtifactId(), dep);
                }
                return ret;
            }
    
            // ${project.artifactMap(g:a:v)}
            public void addArtifact(Artifact a) {
                artifactMap.put(a.getGroupId() + ":" + a.getArtifactId() + ":" + a.getClassifier(), a);
            }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 16.9K bytes
    - Click Count (0)
  10. tests/test_tutorial/test_additional_status_codes/test_tutorial001.py

        return client
    
    
    def test_update(client: TestClient):
        response = client.put("/items/foo", json={"name": "Wrestlers"})
        assert response.status_code == 200, response.text
        assert response.json() == {"name": "Wrestlers", "size": None}
    
    
    def test_create(client: TestClient):
        response = client.put("/items/red", json={"name": "Chillies"})
        assert response.status_code == 201, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 993 bytes
    - Click Count (0)
Back to Top