Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 171 for Closes (0.14 sec)

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

          checkNotNull(bytes);
          File file = createFile();
          OutputStream out = new FileOutputStream(file);
          try {
            out.write(bytes);
          } finally {
            out.close();
          }
          return Files.asByteSource(file);
        }
    
        @Override
        public byte[] getExpected(byte[] bytes) {
          return checkNotNull(bytes);
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Sep 09 17:57:59 GMT 2021
    - 17.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/FilesTest.java

        Files.copy(i18nFile, temp);
        assertTrue(Files.equal(i18nFile, temp));
    
        Files.copy(asciiFile, temp);
        RandomAccessFile rf = new RandomAccessFile(temp, "rw");
        rf.writeByte(0);
        rf.close();
        assertEquals(asciiFile.length(), temp.length());
        assertFalse(Files.equal(asciiFile, temp));
    
        assertTrue(Files.asByteSource(asciiFile).contentEquals(Files.asByteSource(asciiFile)));
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/ByteSourceTester.java

          assertExpectedBytes(readBytes);
        } finally {
          in.close();
        }
      }
    
      public void testOpenBufferedStream() throws IOException {
        InputStream in = source.openBufferedStream();
        try {
          byte[] readBytes = ByteStreams.toByteArray(in);
          assertExpectedBytes(readBytes);
        } finally {
          in.close();
        }
      }
    
      public void testRead() throws IOException {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/FileBackedOutputStreamAndroidIncompatibleTest.java

        FileBackedOutputStream out = new FileBackedOutputStream(0, true);
    
        write(out, data, 0, 100, true);
        final File file = out.getFile();
        assertEquals(100, file.length());
        assertTrue(file.exists());
        out.close();
    
        // Make sure that finalize deletes the file
        out = null;
    
        // times out and throws RuntimeException on failure
        GcFinalization.awaitDone(
            new GcFinalization.FinalizationPredicate() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Jun 08 21:20:23 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

      private static final ByteSource BROKEN_CLOSE_SOURCE =
          new TestByteSource(new byte[10], CLOSE_THROWS);
      private static final ByteSource BROKEN_OPEN_SOURCE =
          new TestByteSource(new byte[10], OPEN_THROWS);
      private static final ByteSource BROKEN_READ_SOURCE =
          new TestByteSource(new byte[10], READ_THROWS);
      private static final ByteSink BROKEN_CLOSE_SINK = new TestByteSink(CLOSE_THROWS);
    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/src/com/google/common/collect/RangeSet.java

     * ignore empty ranges and coalesce connected ranges. For example:
     *
     * <pre>{@code
     * RangeSet<Integer> rangeSet = TreeRangeSet.create();
     * rangeSet.add(Range.closed(1, 10)); // {[1, 10]}
     * rangeSet.add(Range.closedOpen(11, 15)); // disconnected range; {[1, 10], [11, 15)}
     * rangeSet.add(Range.closedOpen(15, 20)); // connected range; {[1, 10], [11, 20)}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

        settableFutureClass = classReloader.loadClass(SettableFuture.class.getName());
      }
    
      @Override
      protected void tearDown() throws Exception {
        classReloader.close();
        Thread.currentThread().setContextClassLoader(oldClassLoader);
        System.clearProperty("guava.concurrent.generate_cancellation_cause");
      }
    
      public void testCancel_notDoneNoInterrupt() throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(map, Maps.subMap(map, Range.closed(0, 12)));
        assertEquals(ImmutableSortedMap.of(2, 0, 4, 0), Maps.subMap(map, Range.closed(0, 4)));
        assertEquals(ImmutableSortedMap.of(2, 0, 4, 0, 6, 0), Maps.subMap(map, Range.closed(2, 6)));
        assertEquals(ImmutableSortedMap.of(4, 0, 6, 0), Maps.subMap(map, Range.closed(3, 7)));
        assertEquals(empty, Maps.subMap(map, Range.closed(20, 30)));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(map, Maps.subMap(map, Range.closed(0, 12)));
        assertEquals(ImmutableSortedMap.of(2, 0, 4, 0), Maps.subMap(map, Range.closed(0, 4)));
        assertEquals(ImmutableSortedMap.of(2, 0, 4, 0, 6, 0), Maps.subMap(map, Range.closed(2, 6)));
        assertEquals(ImmutableSortedMap.of(4, 0, 6, 0), Maps.subMap(map, Range.closed(3, 7)));
        assertEquals(empty, Maps.subMap(map, Range.closed(20, 30)));
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/LineBufferTest.java

        List<String> lines = Lists.newArrayList();
        String line;
        while ((line = r.readLine()) != null) {
          lines.add(line);
        }
        r.close();
        return lines;
      }
    
      private static List<String> readUsingReader(String input, int chunk, boolean asReader)
          throws IOException {
        Readable readable =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
Back to top