Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testAddLast (0.45 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/DefaultArtifactRepositoryContainerTest.groovy

            container.collect { it } == [repo2, repo1]
            container.matching { true } == [repo2, repo1]
            container.matching { true }.collect { it } == [repo2, repo1]
        }
    
        def testAddLast() {
            given:
            def repo1 = Mock(ArtifactRepository) { getName() >> "a" }
            def repo2 = Mock(ArtifactRepository) { getName() >> "b" }
    
            when:
            container.addLast(repo1)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/SLinkedListTest.java

            list.addFirst("1");
            list.addFirst("2");
            assertThat(list.getFirst(), is("2"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testAddLast() throws Exception {
            list.addLast("1");
            list.addLast("2");
            assertThat(list.getLast(), is("2"));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top