Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 113 for Unexpected (0.82 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        t.printStackTrace();
        if (t instanceof RuntimeException) throw (RuntimeException) t;
        else if (t instanceof Error) throw (Error) t;
        else {
          AssertionFailedError afe = new AssertionFailedError("unexpected exception: " + t);
          afe.initCause(t);
          throw afe;
        }
      }
    
      /**
       * Delays, via Thread.sleep, for the given millisecond delay, but if the sleep is shorter than
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ForwardingMapEntry.java

     * the methods of the delegate. For example, overriding {@link #getValue} alone <i>will not</i>
     * change the behavior of {@link #equals}, which can lead to unexpected behavior. In this case, you
     * should override {@code equals} as well, either providing your own implementation, or delegating
     * to the provided {@code standardEquals} method.
     *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Mar 19 19:28:11 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. integration-tests/gradle/build.gradle.kts

              else configurations["debugCompileClasspath"]
            } else {
              error("unexpected classpath type: " + project.name)
            }
    
          val actualClasspath = classpathConfiguration.files.map { it.name }.toSet()
          if (actualClasspath != expectedClasspath) {
            throw RuntimeException(
              """
                        Expected: ${expectedClasspath.sorted()}
                        Actual:   ${actualClasspath.sorted()}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 03 20:33:34 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

      public void testContainsAll_sameComparator_StringVsInt() {
        SortedSet<String> set = of("a", "b", "f");
        SortedSet<Integer> unexpected = Sets.newTreeSet(Ordering.natural());
        unexpected.addAll(asList(1, 2, 3));
        assertFalse(set.containsAll(unexpected));
      }
    
      public void testContainsAll_differentComparator() {
        Comparator<Comparable<?>> comparator = Collections.reverseOrder();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 45.1K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        try {
          new NullPointerTester().testMethodParameter(new OneArg(), method, 0);
        } catch (AssertionError expected) {
          assertThat(expected.getMessage()).contains("index 0");
          assertThat(expected.getMessage()).contains("[null]");
          foundProblem = true;
        }
        assertTrue("Should report error when different exception is thrown", foundProblem);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 47.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        try {
          getDone(future);
          fail();
        } catch (ExecutionException expected) {
          assertSame(exception, expected.getCause());
        }
    
        try {
          getDoneFromTimeoutOverload(future);
          fail();
        } catch (ExecutionException expected) {
          assertSame(exception, expected.getCause());
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        try {
          getDone(future);
          fail();
        } catch (ExecutionException expected) {
          assertSame(exception, expected.getCause());
        }
    
        try {
          getDoneFromTimeoutOverload(future);
          fail();
        } catch (ExecutionException expected) {
          assertSame(exception, expected.getCause());
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  8. android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

        assertThat(e).hasMessageThat().contains("Unexpected interrupt");
        assertThat(e).hasCauseThat().isInstanceOf(InterruptedException.class);
      }
    
      public void testAwait_CountDownLatch_Interrupted() {
        Interruptenator interruptenator = new Interruptenator(Thread.currentThread());
        try {
          final CountDownLatch latch = new CountDownLatch(1);
          RuntimeException expected =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ForwardingMapEntry.java

     * the methods of the delegate. For example, overriding {@link #getValue} alone <i>will not</i>
     * change the behavior of {@link #equals}, which can lead to unexpected behavior. In this case, you
     * should override {@code equals} as well, either providing your own implementation, or delegating
     * to the provided {@code standardEquals} method.
     *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Mar 19 19:28:11 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

                  + "expected = "
                  + expected
                  + ", actual = "
                  + actual);
        }
      }
    
      public static void assertContentsInOrder(Iterable<?> actual, Object... expected) {
        assertEqualInOrder(Arrays.asList(expected), actual);
      }
    
      public static void assertEqualIgnoringOrder(Iterable<?> expected, Iterable<?> actual) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top