Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 101 for singletonList (0.2 sec)

  1. maven-core/src/test/java/org/apache/maven/graph/ProjectSelectorTest.java

            final MavenProject child = createMavenProject("maven-core-child");
            mavenProject.setCollectedProjects(Collections.singletonList(child));
            final List<MavenProject> listOfProjects = Collections.singletonList(mavenProject);
    
            final Set<MavenProject> requiredProjectsBySelectors =
                    sut.getRequiredProjectsBySelectors(mavenExecutionRequest, listOfProjects, selectors);
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 8.6K bytes
    - Viewed (0)
  2. maven-api-impl/src/test/java/org/apache/maven/internal/impl/model/MavenModelMergerTest.java

            model = Model.newBuilder()
                    .profiles(Collections.singletonList(modelProfile))
                    .build();
            builder = Model.newBuilder(model);
            modelMerger.mergeModel_Prerequisites(builder, model, parent, false, null);
            assertEquals(Collections.singletonList(modelProfile), builder.build().getProfiles());
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/SingletonImmutableList.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static java.util.Collections.singletonList;
    
    import java.util.List;
    
    /**
     * GWT emulated version of {@link SingletonImmutableList}.
     *
     * @author Hayward Chan
     */
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  4. maven-core/src/test/java/org/apache/maven/execution/DefaultBuildResumptionAnalyzerTest.java

    import org.apache.maven.project.MavenProject;
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    
    import static java.util.Arrays.asList;
    import static java.util.Collections.singletonList;
    import static org.hamcrest.MatcherAssert.assertThat;
    import static org.hamcrest.Matchers.is;
    
    class DefaultBuildResumptionAnalyzerTest {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sat Apr 15 17:24:20 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  5. maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java

            // multi projects build entry point
            List<ProjectBuildingResult> results = getContainer()
                    .lookup(org.apache.maven.project.ProjectBuilder.class)
                    .build(Collections.singletonList(pomFile), false, configuration);
            assertEquals(1, results.size());
            MavenProject mavenProject = results.get(0).getProject();
            assertEquals(1, mavenProject.getArtifacts().size());
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Nov 28 17:17:10 GMT 2023
    - 18.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ListsTest.java

      public void testPartition_1_1() {
        List<Integer> source = Collections.singletonList(1);
        List<List<Integer>> partitions = Lists.partition(source, 1);
        assertEquals(1, partitions.size());
        assertEquals(Collections.singletonList(1), partitions.get(0));
      }
    
      public void testPartition_1_2() {
        List<Integer> source = Collections.singletonList(1);
        List<List<Integer>> partitions = Lists.partition(source, 2);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
  7. maven-compat/src/test/java/org/apache/maven/project/artifact/DefaultMavenMetadataCacheTest.java

            DefaultMavenMetadataCache.CacheKey k1 =
                    new DefaultMavenMetadataCache.CacheKey(a1, false, lr1, Collections.singletonList(rr1));
            DefaultMavenMetadataCache.CacheKey k2 =
                    new DefaultMavenMetadataCache.CacheKey(a2, false, lr2, Collections.singletonList(rr2));
    
            assertEquals(k1.hashCode(), k2.hashCode());
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 3K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java

    import static com.google.common.collect.testing.features.CollectionSize.ZERO;
    import static com.google.common.collect.testing.features.ListFeature.SUPPORTS_ADD_WITH_INDEX;
    import static java.util.Collections.singletonList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.MinimalCollection;
    import com.google.common.collect.testing.features.CollectionFeature;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (1)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

      private List<Entry<K, V>> containsNullKey;
      private List<Entry<K, V>> containsNullValue;
    
      @Override
      public void setUp() throws Exception {
        super.setUp();
        containsNullKey = singletonList(entry(null, v3()));
        containsNullValue = singletonList(entry(k3(), null));
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAll_supportedNothing() {
        getMap().putAll(emptyMap());
        expectUnchanged();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7K bytes
    - Viewed (0)
  10. maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExceptionTest.java

            parameter.setName("toAddresses");
    
            parameter.setRequired(true);
    
            PluginParameterException exception =
                    new PluginParameterException(mojoDescriptor, Collections.singletonList(parameter));
    
            assertEquals(
                    "One or more required plugin parameters are invalid/missing for 'goalPrefix:goal'" + LS
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 6.7K bytes
    - Viewed (0)
Back to top