Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for AsMap (0.04 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/problems/ReceivedProblem.groovy

                    this.data = [:]
                } else {
                    def d = data.findAll { k, v -> v != null }
                    // GeneralData already contains asMap property; it is removed for clarity
                    if (d['asMap'] instanceof Map) {
                        this.data = d['asMap'] as Map<String, Object>
                    } else {
                        this.data = d
                    }
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 12:45:23 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractIntegrationSpec.groovy

            }
            if (problem.additionalData?.asMap.size() == 1) {
                println "    additionalData.asMap == [ '${problem.additionalData.asMap.keySet().iterator().next()}' : '${problem.additionalData.asMap.values().iterator().next()}' ]"
            } else if (problem.additionalData?.asMap.size() > 1) {
                println "    additionalData.asMap == ["
                problem.additionalData.asMap.each { key, value ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:07:53 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  3. platforms/jvm/plugins-java-library/src/integTest/groovy/org/gradle/java/JavaLibraryDocumentationIntegrationTest.groovy

                contextualLabel == 'Cannot locate tasks that match \':a:javadocJar\' as task \'javadocJar\' not found in project \':a\'. Some candidates are: \'javadoc\'.'
                additionalData.asMap == [ 'requestedPath' : ':a:javadocJar']
            }
    
            when:
            buildFile << '''
                subprojects {
                    java { withJavadocJar() }
                }
            '''
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileProblemsIntegrationTest.groovy

                assertProblem(it, "ERROR", false)
                fqid == 'compilation:java:java-compilation-error'
                details == 'warnings found and -Werror specified'
                solutions.empty
                additionalData.asMap == ["formatted": "error: warnings found and -Werror specified"]
            }
    
            // Based on the Java version, the types in the lint message will differ...
            String expectedType
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 16:15:29 UTC 2024
    - 24K bytes
    - Viewed (0)
  5. platforms/core-runtime/daemon-protocol/src/main/java/org/gradle/tooling/internal/provider/serialization/ClassLoaderCache.java

            }
        }
    
        /**
         * Clears all entries in the cache.
         */
        public void clear() {
            lock.lock();
            try {
                for (ClassLoader classLoader : classLoaderDetails.asMap().keySet()) {
                    ClassLoaderUtils.tryClose(classLoader);
                }
                classLoaderDetails.invalidateAll();
                classLoaderIds.invalidateAll();
            } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 00:13:09 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r89/ProblemProgressEventCrossVersionTest.groovy

                (locations[1] as LineInFileLocation).path == "build file '$buildFile.path'"
                additionalData instanceof GeneralData
                additionalData.asMap['type'] == 'USER_CODE_DIRECT'
            }
        }
    
        def "Problems expose details via Tooling API events with failure"() {
            given:
            withReportProblemTask """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/loader/CachingToolingImplementationLoader.java

            }
        }
    
        @Override
        public void close() {
            try {
                CompositeStoppable.stoppable(connections.asMap().values()).stop();
            } finally {
                connections.invalidateAll();
            }
        }
    
        @NonNullApi
        private class ConsumerConnectionCreator implements Callable<ConsumerConnection> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 09:39:07 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MapsTest.java

        Map<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
        assertEquals(ImmutableMap.of("one", 3, "two", 3, "three", 5), map);
        assertEquals(Integer.valueOf(3), map.remove("two"));
        assertThat(strings).containsExactly("one", "three").inOrder();
      }
    
      public void testAsMapEmpty() {
        Set<String> strings = ImmutableSet.of();
        Map<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 67.1K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/configurations/ResolveConfigurationResolutionBuildOperationResult.java

            }
    
            @Override
            public ImmutableAttributes asImmutable() {
                return getDesugared();
            }
    
            @Override
            public Map<Attribute<?>, ?> asMap() {
                return getDesugared().asMap();
            }
    
            @Override
            public <T> AttributeValue<T> findEntry(Attribute<T> key) {
                return getDesugared().findEntry(key);
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:29:40 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/phases/certs/certlist_test.go

    		},
    		{
    			name:  "Cert list less etcd",
    			certs: GetCertsWithoutEtcd(),
    		},
    	}
    
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    
    			certMap := test.certs.AsMap()
    
    			for _, cert := range test.certs {
    				if cert.CAName != "" && certMap[cert.CAName] == nil {
    					t.Errorf("Certificate %q references nonexistent CA %q", cert.Name, cert.CAName)
    				}
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top