Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 151 for testAdd (0.1 sec)

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

        assertTrue(iterator.hasNext());
        assertEquals("a", iterator.next());
        assertThrows(UnsupportedOperationException.class, () -> iterator.remove());
      }
    
      @SuppressWarnings("DoNotCall")
      public void testAdd() {
        ListIterator<String> iterator = create();
    
        assertTrue(iterator.hasNext());
        assertEquals("a", iterator.next());
        assertEquals("b", iterator.next());
        assertEquals("b", iterator.previous());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/SLinkedListTest.java

            assertThat(list.getLast(), is("1"));
            list.getLastEntry().remove();
            assertThat(list.size(), is(0));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testAdd() throws Exception {
            list.addLast("1");
            list.addLast("2");
            list.addLast("3");
            list.add(1, "4");
            assertThat(list.get(1), is("4"));
            assertThat(list.get(2), is("2"));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java

            target.add(4);
            C addThenFilter = filter(createUnfiltered(target), EVEN);
    
            assertThat(filterThenAdd).containsExactlyElementsIn(addThenFilter);
          }
        }
    
        public void testAdd() {
          for (List<Integer> contents : SAMPLE_INPUTS) {
            for (int toAdd = 0; toAdd < 10; toAdd++) {
              boolean expectedResult = createUnfiltered(contents).add(toAdd);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/IntMathTest.java

          for (RoundingMode mode : ALL_ROUNDING_MODES) {
            assertThrows(ArithmeticException.class, () -> IntMath.divide(p, 0, mode));
          }
        }
      }
    
      public void testMod() {
        for (int x : ALL_INTEGER_CANDIDATES) {
          for (int m : POSITIVE_INTEGER_CANDIDATES) {
            assertEquals(valueOf(x).mod(valueOf(m)).intValue(), IntMath.mod(x, m));
          }
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/IntMathTest.java

          for (RoundingMode mode : ALL_ROUNDING_MODES) {
            assertThrows(ArithmeticException.class, () -> IntMath.divide(p, 0, mode));
          }
        }
      }
    
      public void testMod() {
        for (int x : ALL_INTEGER_CANDIDATES) {
          for (int m : POSITIVE_INTEGER_CANDIDATES) {
            assertEquals(valueOf(x).mod(valueOf(m)).intValue(), IntMath.mod(x, m));
          }
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  6. cni/pkg/plugin/cnieventclient_test.go

    	err := PushCNIEvent(cniC, fakeCmdArgs, []*cniv1.IPConfig{&fakePrevResultIPConfig}, "testpod", "testns")
    
    	assert.Error(t, err)
    	assert.Equal(t, strings.Contains(err.Error(), fmt.Sprintf("unable to push CNI event (status code %d)", http.StatusInternalServerError)), true)
    }
    
    func TestPushCNIAddEventGoodPayload(t *testing.T) {
    	testPod := "testpod"
    	testNS := "testns"
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Jul 02 18:48:50 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. .teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt

        }
    }
    
    data class Scenario(val className: String, val scenario: String) {
        companion object {
            fun fromTestId(testId: String): Scenario {
                val dotBeforeScenarioName = testId.lastIndexOf('.')
                return Scenario(testId.substring(0, dotBeforeScenarioName), testId.substring(dotBeforeScenarioName + 1))
            }
        }
    
        override
        fun toString(): String =
            "$className.$scenario"
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Feb 19 11:22:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/utils/Os.java

         * OS family that can be tested for. {@value}
         */
        private static final String FAMILY_OS2 = "os/2";
    
        /**
         * OS family that can be tested for. {@value}
         */
        private static final String FAMILY_NETWARE = "netware";
    
        /**
         * OS family that can be tested for. {@value}
         */
        private static final String FAMILY_DOS = "dos";
    
        /**
         * OS family that can be tested for. {@value}
         */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. dbflute_fess/dfprop/sourceCopyright.dfprop

    # sourceCopyright: (NotRequired - Default '')
    #
    # The copyright for all class sources.
    # This property is NOT map style.
    # You should specify before your first generating.
    #
    #/*
    # * Copyright(c) DBFlute TestCo.,TestLtd. All Rights Reserved.
    # */
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 31 23:35:14 UTC 2015
    - 344 bytes
    - Viewed (0)
  10. .teamcity/performance-tests-ci.json

        "testId" : "org.gradle.performance.experiment.declarativedsl.DeclarativeDslFirstUsePerformanceTest.clean checkout",
        "groups" : [ {
          "testProject" : "largeEmptyMultiProjectDeclarativeDsl",
          "coverage" : {
            "per_day" : [ "linux", "macOs", "windows" ]
          }
        } ]
      }, {
        "testId" : "org.gradle.performance.experiment.declarativedsl.DeclarativeDslFirstUsePerformanceTest.cold daemon",
        "groups" : [ {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Sep 12 14:38:24 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top