Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for fail (0.12 sec)

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

        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertSize(3);
        try {
          table.put(null, 2, cellValue('d'));
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          table.put("cat", null, cellValue('d'));
          fail();
        } catch (NullPointerException expected) {
        }
        if (supportsNullValues()) {
          assertNull(table.put("cat", 2, null));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/TablesTransformValuesTest.java

      @Override
      public void testNullPointerInstance() {}
    
      // put() and putAll() aren't supported.
      @Override
      public void testPut() {
        try {
          table.put("foo", 1, 'a');
          fail("Expected UnsupportedOperationException");
        } catch (UnsupportedOperationException expected) {
        }
        assertSize(0);
      }
    
      @Override
      public void testPutAllTable() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/HashBasedTableTest.java

      }
    
      public void testCreateWithInvalidSizes() {
        try {
          HashBasedTable.create(100, -5);
          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          HashBasedTable.create(-5, 20);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCreateCopy() {
        Table<String, Integer, Character> original =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/EnumMultisetTest.java

        assertEquals(2, ms.count(Color.RED));
      }
    
      public void testIllegalCreate() {
        Collection<Color> empty = EnumSet.noneOf(Color.class);
        try {
          EnumMultiset.create(empty);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCreateEmptyWithClass() {
        Multiset<Color> ms = EnumMultiset.create(ImmutableList.<Color>of(), Color.class);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MoreCollectorsTest.java

        try {
          stream.collect(MoreCollectors.toOptional());
          fail("Expected NullPointerException");
        } catch (NullPointerException expected) {
        }
      }
    
      public void testToOptionalMultiple() {
        try {
          Stream.of(1, 2).collect(MoreCollectors.toOptional());
          fail("Expected IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/AbstractTableTest.java

        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertSize(3);
        try {
          table.put(null, 2, cellValue('d'));
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          table.put("cat", null, cellValue('d'));
          fail();
        } catch (NullPointerException expected) {
        }
        if (supportsNullValues()) {
          assertNull(table.put("cat", 2, null));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/TopKSelectorTest.java

      public void testNegativeK() {
        try {
          TopKSelector.<String>least(-1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          TopKSelector.<String>greatest(-1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          TopKSelector.least(-1, Ordering.natural());
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/AbstractSequentialIteratorTest.java

        Iterator<Object> empty = new EmptyAbstractSequentialIterator<>();
        assertFalse(empty.hasNext());
        try {
          empty.next();
          fail();
        } catch (NoSuchElementException expected) {
        }
        try {
          empty.remove();
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testBroken() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 17:19:08 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/MapMakerTest.java

       * anywhere else
       */
    
      public void testInitialCapacity_negative() {
        MapMaker maker = new MapMaker();
        try {
          maker.initialCapacity(-1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      // TODO(cpovirk): enable when ready (apparently after a change to our GWT emulation)
      public void xtestInitialCapacity_setTwice() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/AbstractSequentialIteratorTest.java

        Iterator<Object> empty = new EmptyAbstractSequentialIterator<>();
        assertFalse(empty.hasNext());
        try {
          empty.next();
          fail();
        } catch (NoSuchElementException expected) {
        }
        try {
          empty.remove();
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testBroken() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 17:19:08 GMT 2024
    - 4.7K bytes
    - Viewed (0)
Back to top