Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 741 - 750 of 2,047 for collection (0.06 seconds)

  1. guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java

      }
    
      @CollectionFeature.Require(value = {SUPPORTS_ADD, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
      public void testAdd_supportedNullPresent() {
        E[] array = createArrayWithNullElement();
        collection = getSubjectGenerator().create(array);
        assertTrue("add(nullPresent) should return true", getList().add(null));
    
        List<E> expected = copyToList(array);
        expected.add(null);
        expectContents(expected);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  2. compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

        // Helper method for containsExactlyInAnyOrder assertion
        private static <T> void assertContainsExactlyInAnyOrder(Collection<T> actual, T... expected) {
            assertEquals(expected.length, actual.size(), "Collection size mismatch");
            for (T item : expected) {
                assertTrue(actual.contains(item), "Collection should contain: " + item);
            }
        }
    
        @Test
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 30.9K bytes
    - Click Count (0)
  3. guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java

        }
    
        TestSuite suite = new TestSuite(name);
        for (Feature<?> collectionSize : sizesToTest) {
          String oneSizeName =
              Platform.format(
                  "%s [collection size: %s]", name, collectionSize.toString().toLowerCase());
          OneSizeGenerator<T, E> oneSizeGenerator =
              new OneSizeGenerator<>(getSubjectGenerator(), (CollectionSize) collectionSize);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/math/MathPreconditions.java

    package com.google.common.math;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.math.BigInteger;
    import java.math.RoundingMode;
    
    /**
     * A collection of preconditions for math functions.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    final class MathPreconditions {
      @CanIgnoreReturnValue
      static int checkPositive(String role, int x) {
        if (x <= 0) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 3.2K bytes
    - Click Count (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/LayeredMavenOptions.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.cling.invoker.mvn;
    
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.List;
    import java.util.Objects;
    import java.util.Optional;
    import java.util.function.UnaryOperator;
    
    import org.apache.maven.api.cli.mvn.MavenOptions;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jun 11 13:14:09 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/CallLimitsTest.kt

            .build(),
        )
        val call = client.newCall(Request(url = server.url("/")))
        assertFailsWith<IOException> {
          call.execute()
        }
      }
    
      /** A collection of headers that collectively exceed the limits. */
      @Test
      fun largeResponseHeadersList() {
        server.enqueue(
          MockResponse
            .Builder()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 3.5K bytes
    - Click Count (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/ArtifactRepositoryMetadata.java

            return null;
        }
    
        @Override
        public void setRepository(ArtifactRepository remoteRepository) {
            /*
             * NOTE: Metadata at the g:a level contains a collection of available versions. After merging, we can't tell
             * which repository provides which version so the metadata manager must not restrict the artifact resolution to
             * the repository with the most recent updates.
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  8. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/RepositorySystemTest.java

    import java.util.Arrays;
    import java.util.List;
    
    import org.eclipse.aether.artifact.Artifact;
    import org.eclipse.aether.artifact.DefaultArtifact;
    import org.eclipse.aether.collection.CollectRequest;
    import org.eclipse.aether.collection.CollectResult;
    import org.eclipse.aether.graph.Dependency;
    import org.eclipse.aether.graph.DependencyNode;
    import org.eclipse.aether.resolution.ArtifactDescriptorRequest;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java

    import com.google.common.collect.testing.features.ListFeature;
    import java.util.List;
    import org.junit.Ignore;
    
    /**
     * A generic JUnit test which tests {@code addAll(int, Collection)} operations on a list. Can't be
     * invoked directly; please see {@link com.google.common.collect.testing.ListTestSuiteBuilder}.
     *
     * @author Chris Povirk
     */
    @GwtCompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 6.4K bytes
    - Click Count (0)
  10. compat/maven-model/src/test/java/org/apache/maven/model/v4/ModelXmlTest.java

            assertEquals("", myConfig.prefix());
            assertEquals("myConfig", myConfig.name());
            String config = node.toString();
            assertFalse(config.isEmpty(), "Expected collection to not be empty but was empty");
        }
    
        String toXml(Model model) throws IOException, XMLStreamException {
            StringWriter sw = new StringWriter();
            MavenStaxWriter writer = new MavenStaxWriter();
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 4K bytes
    - Click Count (0)
Back to Top