Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 74 for isInstanceOf (0.18 sec)

  1. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

        // Expect the undeclared exception to have been chained inside another
        RuntimeException expected = assertThrows(RuntimeException.class, () -> sample.noneDeclared());
        assertThat(expected).hasCauseThat().isInstanceOf(SomeCheckedException.class);
      }
    
      @GwtIncompatible // throwIfInstanceOf
      public void testThrowIfInstanceOf_Unchecked() throws SomeCheckedException {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

            Thread.yield();
          }
        }
      }
    
      void assertWrapsInterruptedException(RuntimeException e) {
        assertThat(e).hasMessageThat().contains("Unexpected interrupt");
        assertThat(e).hasCauseThat().isInstanceOf(InterruptedException.class);
      }
    
      public void testAwait_CountDownLatch_Interrupted() {
        Interruptenator interruptenator = new Interruptenator(Thread.currentThread());
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.4K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

            Thread.yield();
          }
        }
      }
    
      void assertWrapsInterruptedException(RuntimeException e) {
        assertThat(e).hasMessageThat().contains("Unexpected interrupt");
        assertThat(e).hasCauseThat().isInstanceOf(InterruptedException.class);
      }
    
      public void testAwait_CountDownLatch_Interrupted() {
        Interruptenator interruptenator = new Interruptenator(Thread.currentThread());
        try {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

        mutableValueGraph.addNode("A");
        ImmutableValueGraph<String, Integer> immutableValueGraph =
            ImmutableValueGraph.copyOf(mutableValueGraph);
    
        assertThat(immutableValueGraph.asGraph()).isInstanceOf(ImmutableGraph.class);
        assertThat(immutableValueGraph).isNotInstanceOf(MutableValueGraph.class);
        assertThat(immutableValueGraph).isEqualTo(mutableValueGraph);
    
        mutableValueGraph.addNode("B");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Jan 09 20:24:43 GMT 2020
    - 6.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

              FluentFuture.from(SettableFuture.create()).withTimeout(0, SECONDS, executor);
          ExecutionException e = assertThrows(ExecutionException.class, () -> f.get());
          assertThat(e).hasCauseThat().isInstanceOf(TimeoutException.class);
        } finally {
          executor.shutdown();
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

            .invoke(future, badFuture);
        CancellationException expected = assertThrows(CancellationException.class, () -> future.get());
        assertThat(expected).hasCauseThat().isInstanceOf(IllegalArgumentException.class);
        assertThat(expected).hasCauseThat().hasMessageThat().contains(badFuture.toString());
      }
    
      private Future<?> newFutureInstance() throws Exception {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

            .invoke(future, badFuture);
        CancellationException expected = assertThrows(CancellationException.class, () -> future.get());
        assertThat(expected).hasCauseThat().isInstanceOf(IllegalArgumentException.class);
        assertThat(expected).hasCauseThat().hasMessageThat().contains(badFuture.toString());
      }
    
      private Future<?> newFutureInstance() throws Exception {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertEquals(List[].class, token.getRawType());
        assertThat(token.getType()).isInstanceOf(GenericArrayType.class);
      }
    
      public void testMultiDimensionalGenericArrayType() {
        TypeToken<List<Long>[][][]> token = new TypeToken<List<Long>[][][]>() {};
        assertEquals(List[][][].class, token.getRawType());
        assertThat(token.getType()).isInstanceOf(GenericArrayType.class);
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java

        mutableNetwork.addNode("A");
        ImmutableNetwork<String, Integer> immutableNetwork = ImmutableNetwork.copyOf(mutableNetwork);
    
        assertThat(immutableNetwork.asGraph()).isInstanceOf(ImmutableGraph.class);
        assertThat(immutableNetwork).isNotInstanceOf(MutableNetwork.class);
        assertThat(immutableNetwork).isEqualTo(mutableNetwork);
    
        mutableNetwork.addNode("B");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Sun May 05 18:02:35 GMT 2019
    - 5.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

        mutableValueGraph.addNode("A");
        ImmutableValueGraph<String, Integer> immutableValueGraph =
            ImmutableValueGraph.copyOf(mutableValueGraph);
    
        assertThat(immutableValueGraph.asGraph()).isInstanceOf(ImmutableGraph.class);
        assertThat(immutableValueGraph).isNotInstanceOf(MutableValueGraph.class);
        assertThat(immutableValueGraph).isEqualTo(mutableValueGraph);
    
        mutableValueGraph.addNode("B");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jan 09 20:24:43 GMT 2020
    - 6.4K bytes
    - Viewed (0)
Back to top