Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for getFiles (0.17 sec)

  1. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

            ClassPath.getClassPathEntry(new File("/home/build/outer.jar"), "x/y/z.jar").toURI());
        assertEquals(
            "/home/build/x y.jar",
            ClassPath.getClassPathEntry(new File("/home/build/outer.jar"), "x y.jar").getFile());
      }
    
      public void testGetClassPathFromManifest_nullManifest() {
        assertThat(ClassPath.getClassPathFromManifest(new File("some.jar"), null)).isEmpty();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jul 07 16:50:33 GMT 2023
    - 24.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/ClassPath.java

        public final String getResourceName() {
          return resourceName;
        }
    
        /** Returns the file that includes this resource. */
        final File getFile() {
          return file;
        }
    
        @Override
        public int hashCode() {
          return resourceName.hashCode();
        }
    
        @Override
        public boolean equals(@CheckForNull Object obj) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 05 17:43:40 GMT 2022
    - 24.9K bytes
    - Viewed (1)
  3. guava-tests/test/com/google/common/reflect/ClassPathTest.java

            ClassPath.getClassPathEntry(new File("/home/build/outer.jar"), "x/y/z.jar").toURI());
        assertEquals(
            "/home/build/x y.jar",
            ClassPath.getClassPathEntry(new File("/home/build/outer.jar"), "x y.jar").getFile());
      }
    
      public void testGetClassPathFromManifest_nullManifest() {
        assertThat(ClassPath.getClassPathFromManifest(new File("some.jar"), null)).isEmpty();
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Jul 10 17:06:37 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/CharSourceTester.java

      public CharSourceTester(
          CharSourceFactory factory, String string, String suiteName, String caseDesc, Method method) {
        super(factory, string, suiteName, caseDesc, method);
        this.expectedLines = getLines(expected);
      }
    
      @Override
      protected void setUp() throws Exception {
        this.source = factory.createSource(data);
      }
    
      public void testOpenStream() throws IOException {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 7.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/SourceSinkFactories.java

        protected File createFile() throws IOException {
          File file = File.createTempFile("SinkSourceFile", "txt");
          fileThreadLocal.set(file);
          return file;
        }
    
        protected File getFile() {
          return fileThreadLocal.get();
        }
    
        public final void tearDown() throws IOException {
          if (!fileThreadLocal.get().delete()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/CharSinkTester.java

      public CharSinkTester(
          CharSinkFactory factory, String string, String suiteName, String caseDesc, Method method) {
        super(factory, string, suiteName, caseDesc, method);
        this.lines = getLines(string);
        this.expectedLines = getLines(expected);
      }
    
      @Override
      protected void setUp() throws Exception {
        this.sink = factory.createSink();
      }
    
      public void testOpenStream() throws IOException {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 4.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        }
        File file = out.getFile();
        assertNull(file);
    
        // Write data to go over the threshold
        if (chunk2 > 0) {
          if (JAVA_IO_TMPDIR.value().equals("/sdcard")) {
            assertThrows(IOException.class, () -> write(out, data, chunk1, chunk2, singleByte));
            return;
          }
          write(out, data, chunk1, chunk2, singleByte);
          file = out.getFile();
          assertEquals(dataSize, file.length());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        }
        File file = out.getFile();
        assertNull(file);
    
        // Write data to go over the threshold
        if (chunk2 > 0) {
          if (JAVA_IO_TMPDIR.value().equals("/sdcard")) {
            assertThrows(IOException.class, () -> write(out, data, chunk1, chunk2, singleByte));
            return;
          }
          write(out, data, chunk1, chunk2, singleByte);
          file = out.getFile();
          assertEquals(dataSize, file.length());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/FileBackedOutputStreamAndroidIncompatibleTest.java

        byte[] data = newPreFilledByteArray(100);
        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
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jun 08 21:20:23 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/SourceSinkTester.java

        this.caseDesc = checkNotNull(caseDesc);
      }
    
      @Override
      public String getName() {
        return super.getName() + " [" + suiteName + " [" + caseDesc + "]]";
      }
    
      protected static ImmutableList<String> getLines(final String string) {
        try {
          return new CharSource() {
            @Override
            public Reader openStream() throws IOException {
              return new StringReader(string);
            }
          }.readLines();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Apr 27 18:57:08 GMT 2022
    - 4.9K bytes
    - Viewed (0)
Back to top