Search Options

Results per page
Sort
Preferred Languages
Advance

Results 321 - 330 of 880 for assertEquals (0.06 sec)

  1. guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java

      // If this test fails, all bets are off
      public void testReallySimpleFingerprints() {
        assertEquals(8581389452482819506L, fingerprint("test".getBytes(UTF_8)));
        // 32 characters long
        assertEquals(-4196240717365766262L, fingerprint(Strings.repeat("test", 8).getBytes(UTF_8)));
        // 256 characters long
        assertEquals(3500507768004279527L, fingerprint(Strings.repeat("test", 64).getBytes(UTF_8)));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java

          return delegate;
        }
      }
    
      public void testPutIfAbsent() {
        TestMap map = new TestMap();
        map.put("foo", 1);
        assertEquals(Integer.valueOf(1), map.putIfAbsent("foo", 2));
        assertEquals(Integer.valueOf(1), map.get("foo"));
        assertNull(map.putIfAbsent("bar", 3));
        assertEquals(Integer.valueOf(3), map.get("bar"));
      }
    
      public void testRemove() {
        TestMap map = new TestMap();
        map.put("foo", 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.4K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/util/PrunedTagTest.java

            assertEquals(1, tags.length);
            assertEquals("PrunedTag [tag=a, id=null, css=null, attrName=target, attrValue=_blank]", tags[0].toString());
    
            tags = PrunedTag.parse("a.link,div#123");
            assertEquals(2, tags.length);
            assertEquals("PrunedTag [tag=a, id=null, css=link, attrName=null, attrValue=null]", tags[0].toString());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java

        expectMissing(mapEntry(k0(), v0()));
        assertEquals(getNumElements() - 1, multimap().size());
        assertFalse(multimap().containsEntry(k0(), v0()));
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRetainAllPropagatesToMultimap() {
        multimap().entries().retainAll(singleton(mapEntry(k0(), v0())));
        assertEquals(getSubjectGenerator().create(mapEntry(k0(), v0())), multimap());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/ContextConfigTest.java

            NtlmPasswordAuthenticator setCredsNtlm = setCreds.unwrap(NtlmPasswordAuthenticator.class);
            assertEquals("TEST", setCredsNtlm.getUserDomain());
            assertEquals("test-user", setCredsNtlm.getUsername());
            assertEquals("test-pw", setCredsNtlm.getPassword());
            assertThat("anonymous", setCredsNtlm.isAnonymous(), CoreMatchers.is(false));
        }
    
    
        @Test
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        multiset.add("foo", 2);
        multiset.add("bar");
        assertEquals(3, multiset.size());
        assertEquals(2, multiset.count("foo"));
        assertEquals("[foo x 2, bar]", multiset.toString());
      }
    
      public void testCreateFromIterable() {
        Multiset<String> multiset = TreeMultiset.create(asList("foo", "bar", "foo"));
        assertEquals(3, multiset.size());
        assertEquals(2, multiset.count("foo"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/app/pager/BoostDocPagerTest.java

            boostdocpager.clear();
            assertEquals(0, boostdocpager.getAllRecordCount());
            assertEquals(0, boostdocpager.getAllPageCount());
            assertEquals(false, boostdocpager.isExistPrePage());
            assertEquals(false, boostdocpager.isExistNextPage());
            assertEquals(25, boostdocpager.getPageSize());
            assertEquals(1, boostdocpager.getCurrentPageNumber());
            assertNull(boostdocpager.id);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/app/pager/CrawlingInfoPagerTest.java

            crawlinginfopage.clear();
            assertEquals(0, crawlinginfopage.getAllRecordCount());
            assertEquals(0, crawlinginfopage.getAllPageCount());
            assertEquals(false, crawlinginfopage.isExistPrePage());
            assertEquals(false, crawlinginfopage.isExistNextPage());
            assertEquals(25, crawlinginfopage.getPageSize());
            assertEquals(1, crawlinginfopage.getCurrentPageNumber());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/app/pager/DuplicateHostPagerTest.java

            duplicatehostpager.clear();
            assertEquals(0, duplicatehostpager.getAllRecordCount());
            assertEquals(0, duplicatehostpager.getAllPageCount());
            assertEquals(false, duplicatehostpager.isExistPrePage());
            assertEquals(false, duplicatehostpager.isExistNextPage());
            assertEquals(25, duplicatehostpager.getPageSize());
            assertEquals(1, duplicatehostpager.getCurrentPageNumber());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/app/web/admin/design/AdminDesignActionTest.java

        public void test_decodeJsp() {
            assertEquals("&lt;% a %&gt;", AdminDesignAction.decodeJsp("<% a %>"));
            assertEquals("&lt;%= a %&gt;", AdminDesignAction.decodeJsp("<%= a %>"));
            assertEquals("&lt;% a\nb %&gt;", AdminDesignAction.decodeJsp("<% a\nb %>"));
            assertEquals("&lt;%= a\nb %&gt;", AdminDesignAction.decodeJsp("<%= a\nb %>"));
            assertEquals("<% a", AdminDesignAction.decodeJsp("<% a"));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sun Jul 28 09:03:48 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top