Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 271 - 280 of 785 for EXPECTED (0.49 seconds)

  1. android/guava-testlib/test/com/google/common/testing/TearDownStackTest.java

        try {
          stack.runTearDown();
          fail("runTearDown should have thrown an exception");
        } catch (RuntimeException expected) {
          assertThat(expected).hasMessageThat().isEqualTo("two");
          assertThat(getOnlyElement(asList(expected.getSuppressed())))
              .hasMessageThat()
              .isEqualTo("one");
        }
    
        assertEquals(true, tearDownOne.ran);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

        } catch (UnsupportedOperationException expected) {
        }
      }
    
      private void assertSetCountDecreasingFailure(E element, int count) {
        try {
          setCountNoCheckReturnValue(element, count);
          fail("a call to multiset.setCount() to decrease an element's count should throw");
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      // Unconditional setCount no-ops.
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 13K bytes
    - Click Count (0)
  3. guava-testlib/test/com/google/common/testing/TearDownStackTest.java

        try {
          stack.runTearDown();
          fail("runTearDown should have thrown an exception");
        } catch (RuntimeException expected) {
          assertThat(expected).hasMessageThat().isEqualTo("two");
          assertThat(getOnlyElement(asList(expected.getSuppressed())))
              .hasMessageThat()
              .isEqualTo("one");
        }
    
        assertEquals(true, tearDownOne.ran);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/reflect/TypeVisitorTest.java

        try {
          visitor.visit(type);
          fail("Type not visited");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          visitor.visit(new Type[] {type});
          fail("Type not visited");
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      private static class BaseTypeVisitor extends TypeVisitor {
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.8K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

      static void testSort(long[] input, long[] expected) {
        input = Arrays.copyOf(input, input.length);
        UnsignedLongs.sort(input);
        assertThat(input).isEqualTo(expected);
      }
    
      static void testSort(long[] input, int from, int to, long[] expected) {
        input = Arrays.copyOf(input, input.length);
        UnsignedLongs.sort(input, from, to);
        assertThat(input).isEqualTo(expected);
      }
    
      public void testSortIndexed() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/hash/ChecksumHashFunctionTest.java

      }
    
      private static void assertHash32(
          int expected, ImmutableSupplier<Checksum> supplier, String input) {
        byte[] bytes = HashTestUtils.ascii(input);
        String toString = "name";
        HashFunction func = new ChecksumHashFunction(supplier, 32, toString);
        assertEquals(expected, func.hashBytes(bytes).asInt());
        assertThat(func.toString()).isEqualTo(toString);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/Collections2Test.java

          fail("Expected NoSuchElementException.");
        } catch (NoSuchElementException expected) {
        }
      }
    
      private <T> void assertPermutationsCount(int expected, Collection<List<T>> permutationSet) {
        assertEquals(expected, permutationSet.size());
        Iterator<List<T>> permutations = permutationSet.iterator();
        for (int i = 0; i < expected; i++) {
          assertTrue(permutations.hasNext());
          permutations.next();
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 20.1K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/validation/CustomSizeValidatorTest.java

            validator.initialize(annotation);
            // Test that initialization completes without exception
        }
    
        @Test
        public void test_classStructure() {
            // Test that the class exists and has the expected structure
            assertEquals("CustomSizeValidator should be in correct package", "org.codelibs.fess.validation.CustomSizeValidator",
                    CustomSizeValidator.class.getName());
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/hash/BloomFilterTest.java

        IllegalArgumentException expected =
            assertThrows(
                IllegalArgumentException.class,
                () -> {
                  BloomFilter<String> unused =
                      BloomFilter.create(HashTestUtils.BAD_FUNNEL, Integer.MAX_VALUE, Double.MIN_VALUE);
                });
        assertThat(expected)
            .hasMessageThat()
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 23K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/hash/HashTestUtils.java

        // interpreted in little-endian order.
        int verification = Integer.reverseBytes(Ints.fromByteArray(result));
    
        if (expected != verification) {
          throw new AssertionError(
              "Expected: "
                  + Integer.toHexString(expected)
                  + " got: "
                  + Integer.toHexString(verification));
        }
      }
    
      static final Funnel<Object> BAD_FUNNEL =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 28 18:19:59 GMT 2025
    - 25.6K bytes
    - Click Count (0)
Back to Top