Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 97 for testAdd (1.62 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 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 Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 13.1K 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java

                    }
                }
            };
            ComponentUtil.register(dictionaryManager, "dictionaryManager");
    
            // Initialize ProtwordsFile
            protwordsFile = new ProtwordsFile("test_id", testFile.getAbsolutePath(), new Date());
            protwordsFile.manager(dictionaryManager);
        }
    
        @Override
        public void tearDown() throws Exception {
            if (testFile != null && testFile.exists()) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/HashingTest.java

     * tests to reference them from there.
     *
     * @author Dimitris Andreou
     * @author Kurt Alfred Kluever
     */
    @NullUnmarked
    public class HashingTest extends TestCase {
      public void testMd5() {
        HashTestUtils.checkAvalanche(Hashing.md5(), 100, 0.4);
        HashTestUtils.checkNo2BitCharacteristics(Hashing.md5());
        HashTestUtils.checkNoFunnels(Hashing.md5());
        HashTestUtils.assertInvariants(Hashing.md5());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 26.4K bytes
    - Viewed (2)
  7. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

                assertTrue(generator.generate("test_id", outputFile));
            } finally {
                outputFile.delete();
            }
        }
    
        public void test_generate_outputFile_null() throws Exception {
            generator.setCommandList(Collections.singletonList("echo test"));
            try {
                generator.generate("test_id", null);
                fail("Should throw exception for null output file");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/job/CrawlJobTest.java

            assertSame(crawlJob, result);
        }
    
        // Test webConfigIds setter
        public void test_webConfigIds() {
            String[] testIds = { "web1", "web2", "web3" };
            CrawlJob result = crawlJob.webConfigIds(testIds);
            assertArrayEquals(testIds, crawlJob.webConfigIds);
            assertSame(crawlJob, result);
    
            // Test with null
            result = crawlJob.webConfigIds(null);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 25K bytes
    - Viewed (0)
  9. android/pom.xml

                        <version>24</version>
                        <vendor>temurin</vendor>
                      </jdk>
                      <testJdk>
                        <version>${surefire.toolchain.version}</version>
                        <vendor>temurin</vendor>
                      </testJdk>
                    </toolchains>
                  </configuration>
                </execution>
              </executions>
            </plugin>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Sep 04 21:35:58 UTC 2025
    - 24.3K bytes
    - Viewed (0)
  10. pom.xml

                        <version>24</version>
                        <vendor>temurin</vendor>
                      </jdk>
                      <testJdk>
                        <version>${surefire.toolchain.version}</version>
                        <vendor>temurin</vendor>
                      </testJdk>
                    </toolchains>
                  </configuration>
                </execution>
              </executions>
            </plugin>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Sep 04 21:35:58 UTC 2025
    - 23.9K bytes
    - Viewed (0)
Back to top