Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 165 for expects (0.34 sec)

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

          fail("Expected NullPointerException");
        } catch (NullPointerException expected) {
        }
        collector =
            TableCollectors.toImmutableTable(Cell::getRowKey, Cell::getColumnKey, Cell::getValue);
        try {
          Stream.of(immutableCell("one", "uno", 1), immutableCell("one", "uno", (Integer) null))
              .collect(collector);
          fail("Expected NullPointerException");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 16:03:18 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/OrderingTest.java

        try {
          comparator.compare(1, null);
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          comparator.compare(null, 2);
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          comparator.compare(null, null);
          fail();
        } catch (NullPointerException expected) {
        }
        assertSame(comparator, reserialize(comparator));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        try {
          comparator.compare(1, null);
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          comparator.compare(null, 2);
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          comparator.compare(null, null);
          fail();
        } catch (NullPointerException expected) {
        }
        assertSame(comparator, reserialize(comparator));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/StreamsTest.java

                        .spliterator())
            .expect(ImmutableList.of());
        SpliteratorTester.of(
                () ->
                    Streams.mapWithIndex(
                            collectionImpl.apply(ImmutableList.of("a", "b", "c", "d", "e")),
                            (str, i) -> str + ":" + i)
                        .spliterator())
            .expect("a:0", "b:1", "c:2", "d:3", "e:4");
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 20K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

                });
        Map<String, Boolean> expected = ImmutableMap.of("a", true, "b", false);
        assertMapsEqual(expected, map);
        assertEquals(expected.get("a"), map.get("a"));
        assertEquals(expected.containsKey("a"), map.containsKey("a"));
        assertEquals(expected.get("b"), map.get("b"));
        assertEquals(expected.containsKey("b"), map.containsKey("b"));
        assertEquals(expected.get("c"), map.get("c"));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ObjectArraysTest.java

      }
    
      private static void checkArrayEquals(Object[] expected, Object[] actual) {
        assertTrue(
            "expected("
                + expected.getClass()
                + "): "
                + Arrays.toString(expected)
                + " actual("
                + actual.getClass()
                + "): "
                + Arrays.toString(actual),
            arrayEquals(expected, actual));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/IterablesTest.java

        List<String> actual = newArrayList(result);
        List<String> expected = asList("1", "2", "null", "3");
        assertEquals(expected, actual);
      }
    
      // Far less exhaustive than the tests in IteratorsTest
      public void testCycle() {
        Iterable<String> cycle = Iterables.cycle("a", "b");
    
        int howManyChecked = 0;
        for (String string : cycle) {
          String expected = (howManyChecked % 2 == 0) ? "a" : "b";
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  8. maven-core/src/test/java/org/apache/maven/project/ProjectModelResolverTest.java

            UnresolvableModelException e = assertThrows(
                    UnresolvableModelException.class,
                    () -> newModelResolver().resolveModel(parent.getDelegate(), new AtomicReference<>()),
                    "Expected 'UnresolvableModelException' not thrown.");
            assertNotNull(e.getMessage());
            assertThat(e.getMessage(), containsString("Could not find artifact org.apache:apache:pom:0 in central"));
        }
    
        @Test
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Apr 03 17:49:40 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  9. maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java

            List<String> expected = new ArrayList<>();
            expected.add("maven-it-plugin-error");
            expected.add("maven-it-plugin-configuration");
            expected.add("maven-it-plugin-dependency-resolution");
            expected.add("maven-it-plugin-packaging");
            expected.add("maven-it-plugin-log-file");
            expected.add("maven-it-plugin-expression");
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 93.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/net/InternetDomainNameTest.java

        } catch (IllegalStateException expected) {
        }
      }
    
      public void testChild() {
        InternetDomainName domain = InternetDomainName.from("foo.com");
    
        assertEquals("www.foo.com", domain.child("www").toString());
    
        try {
          domain.child("www.");
          fail("www..google.com should have been invalid");
        } catch (IllegalArgumentException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
Back to top