Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 505 for assertFalse (0.22 sec)

  1. guava-tests/test/com/google/common/io/CharSourceTest.java

        assertTrue(source.wasStreamClosed());
      }
    
      public void testCopyToAppendable_doesNotCloseIfWriter() throws IOException {
        TestWriter writer = new TestWriter();
        assertFalse(writer.closed());
        source.copyTo(writer);
        assertFalse(writer.closed());
      }
    
      public void testClosesOnErrors_copyingToCharSinkThatThrows() {
        for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/StopwatchTest.java

      }
    
      public void testCreateUnstarted() {
        Stopwatch unstartedStopwatch = Stopwatch.createUnstarted();
        assertFalse(unstartedStopwatch.isRunning());
        assertEquals(0, unstartedStopwatch.elapsed(NANOSECONDS));
      }
    
      public void testInitialState() {
        assertFalse(stopwatch.isRunning());
        assertEquals(0, stopwatch.elapsed(NANOSECONDS));
      }
    
      public void testStart() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/FilesTest.java

      public void testPredicates() throws IOException {
        File asciiFile = getTestFile("ascii.txt");
        File dir = asciiFile.getParentFile();
        assertTrue(Files.isDirectory().apply(dir));
        assertFalse(Files.isFile().apply(dir));
    
        assertFalse(Files.isDirectory().apply(asciiFile));
        assertTrue(Files.isFile().apply(asciiFile));
      }
    
      /** Returns a root path for the file system. */
      private static File root() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

        assertEquals(1, listenerLatch.getCount());
        assertFalse(task.isDone());
        assertFalse(task.isCancelled());
    
        // Start the task to put it in the RUNNING state.  Have to use a separate
        // thread because the task will block on the task latch after unblocking
        // the run latch.
        exec.execute(task);
        runLatch.await();
        assertEquals(1, listenerLatch.getCount());
        assertFalse(task.isDone());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

        ByteSource fewerBytes = new TestByteSource(newPreFilledByteArray(bytes.length / 2));
        assertFalse(source.contentEquals(fewerBytes));
    
        byte[] copy = bytes.clone();
        copy[9876] = 1;
        ByteSource oneByteOff = new TestByteSource(copy);
        assertFalse(source.contentEquals(oneByteOff));
      }
    
      public void testSlice() throws IOException {
        // Test preconditions
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/ByteSinkTest.java

      }
    
      public void testWriteFromStream_doesNotCloseThatStream() throws IOException {
        TestInputStream in = new TestInputStream(new ByteArrayInputStream(new byte[10]));
        assertFalse(in.closed());
        sink.writeFrom(in);
        assertFalse(in.closed());
      }
    
      public void testClosesOnErrors_copyingFromByteSourceThatThrows() {
        for (TestOption option : EnumSet.of(OPEN_THROWS, READ_THROWS, CLOSE_THROWS)) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        RateLimiter limiter = RateLimiter.create(5.0, stopwatch);
        assertTrue(limiter.tryAcquire(0, SECONDS));
        assertFalse(limiter.tryAcquire(0, SECONDS));
        assertFalse(limiter.tryAcquire(0, SECONDS));
        stopwatch.sleepMillis(100);
        assertFalse(limiter.tryAcquire(0, SECONDS));
      }
    
      public void testTryAcquire_someWaitAllowed() {
        RateLimiter limiter = RateLimiter.create(5.0, stopwatch);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java

      }
    
      public void testContainsAll_partialOverlap() {
        assertFalse(
            "containsAll(partialOverlap) should return false",
            collection.containsAll(MinimalCollection.of(e0(), e3())));
      }
    
      public void testContainsAll_disjoint() {
        assertFalse(
            "containsAll(disjoint) should return false",
            collection.containsAll(MinimalCollection.of(e3())));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        // Later attempts to set the future should return false.
        assertFalse(future.set("x"));
        assertFalse(future.setException(new Exception("bar")));
        assertFalse(future.setFuture(SettableFuture.<String>create()));
        // Check that the future has been set properly.
        assertFalse(future.isDone());
        assertFalse(future.isCancelled());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.3K bytes
    - Viewed (1)
  10. android/guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        // Later attempts to set the future should return false.
        assertFalse(future.set("x"));
        assertFalse(future.setException(new Exception("bar")));
        assertFalse(future.setFuture(SettableFuture.<String>create()));
        // Check that the future has been set properly.
        assertFalse(future.isDone());
        assertFalse(future.isCancelled());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.3K bytes
    - Viewed (0)
Back to top