Search Options

Results per page
Sort
Preferred Languages
Advance

Results 451 - 460 of 825 for assertequal (0.1 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/AbstractListIndexOfTester.java

      public void testFind_yes() {
        assertEquals(
            getMethodName() + "(firstElement) should return 0", 0, find(getOrderedElements().get(0)));
      }
    
      public void testFind_no() {
        assertEquals(getMethodName() + "(notPresent) should return -1", -1, find(e3()));
      }
    
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      public void testFind_nullNotContainedButSupported() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/SortedSetNavigationTester.java

      }
    
      @CollectionSize.Require(ONE)
      public void testSingletonSetFirst() {
        assertEquals(a, sortedSet.first());
      }
    
      @CollectionSize.Require(ONE)
      public void testSingletonSetLast() {
        assertEquals(a, sortedSet.last());
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testFirst() {
        assertEquals(a, sortedSet.first());
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testLast() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        return suite;
      }
    
      // Creation tests
    
      public void testEmptyBuilder() {
        ImmutableBiMap<String, Integer> map = new Builder<String, Integer>().build();
        assertEquals(Collections.<String, Integer>emptyMap(), map);
        assertEquals(Collections.<Integer, String>emptyMap(), map.inverse());
        assertSame(ImmutableBiMap.of(), map);
      }
    
      public void testSingletonBuilder() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

        assertFalse(table.containsValue(null));
      }
    
      public void testGet() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertEquals((Character) 'a', table.get("foo", 1));
        assertEquals((Character) 'b', table.get("bar", 1));
        assertEquals((Character) 'c', table.get("foo", 3));
        assertNull(table.get("foo", 2));
        assertNull(table.get("bar", 3));
        assertNull(table.get("cat", 1));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/EnumTest.java

                    assertNotNull(names);
                    assertEquals(3, names.length);
                    Arrays.sort(names);
                    Assert.assertArrayEquals(new String[] {
                        "a", "b", "c"
                    }, names);
    
                    SmbFile[] files = f.listFiles();
                    assertNotNull(files);
                    assertEquals(3, files.length);
    
                    for ( SmbFile cf : files ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 25.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/util/RenderDataUtilTest.java

            RenderData data = new RenderData();
    
            RenderDataUtil.register(data, "key1", null);
            assertNull(data.getDataMap().get("key1"));
    
            RenderDataUtil.register(data, "key5", "");
            assertEquals(data.getDataMap().get("key5"), "");
    
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/ResourcesTest.java

                return collector;
              }
            };
        List<String> result = Resources.readLines(resource, US_ASCII, collectAndLowercaseAndTrim);
        assertEquals(3600, result.size());
        assertEquals("ALICE'S ADVENTURES IN WONDERLAND", result.get(0));
        assertEquals("THE END", result.get(result.size() - 1));
      }
    
      public void testCopyToOutputStream() throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

        FreshValueGenerator generator = new FreshValueGenerator();
        generator.addSampleInstances(String.class, ImmutableList.of("a", "b"));
        assertEquals("a", generator.generateFresh(String.class));
        assertEquals("b", generator.generateFresh(String.class));
        assertEquals("a", generator.generateFresh(String.class));
      }
    
      public void testAddSampleInstances_oneInstance() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 18.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/EnumMultisetTest.java

        ms.add(Color.YELLOW);
        ms.add(Color.RED);
        assertEquals(0, ms.count(Color.BLUE));
        assertEquals(1, ms.count(Color.YELLOW));
        assertEquals(2, ms.count(Color.RED));
      }
    
      public void testCollectionCreate() {
        Multiset<Color> ms = EnumMultiset.create(asList(Color.RED, Color.YELLOW, Color.RED));
        assertEquals(0, ms.count(Color.BLUE));
        assertEquals(1, ms.count(Color.YELLOW));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/convert/IntegerConversionUtilTest.java

        /**
         * @throws Exception
         */
        public void testToInteger() throws Exception {
            assertEquals(new Integer("1000"), IntegerConversionUtil.toInteger("1,000"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveInt() throws Exception {
            assertEquals(1000, IntegerConversionUtil.toPrimitiveInt("1,000"));
        }
    
        /**
         * @throws Exception
         */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top