Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for dir1 (0.16 sec)

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

      }
    
      public void testFileTraverser_multipleDirectoryLayers_breadthFirstStartsWithTopLayer()
          throws Exception {
        File fileA = newFile("file-a");
        File dir1 = newDir("dir-1");
        newFile("dir-1/file-b");
        newFile("dir-1/dir-2");
    
        assertThat(Iterables.limit(Files.fileTraverser().breadthFirst(rootDir), 3))
            .containsExactly(rootDir, fileA, dir1);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Apr 21 20:17:27 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/FilesFileTraverserTest.java

      }
    
      public void testFileTraverser_multipleDirectoryLayers_breadthFirstStartsWithTopLayer()
          throws Exception {
        File fileA = newFile("file-a");
        File dir1 = newDir("dir-1");
        newFile("dir-1/file-b");
        newFile("dir-1/dir-2");
    
        assertThat(Iterables.limit(Files.fileTraverser().breadthFirst(rootDir), 3))
            .containsExactly(rootDir, fileA, dir1);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 21 20:17:27 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/PatternFilenameFilter.java

        this.pattern = Preconditions.checkNotNull(pattern);
      }
    
      /*
       * Our implementation works fine with a null `dir`. However, there's nothing in the documentation
       * of the supertype that suggests that implementations are expected to tolerate null. That said, I
       * see calls in Google code that pass a null `dir` to a FilenameFilter.... So let's declare the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/PatternFilenameFilterTest.java

      }
    
      public void testAccept() {
        File dir = new File("foo");
        FilenameFilter filter = new PatternFilenameFilter("a+");
        assertTrue(filter.accept(dir, "a"));
        assertTrue(filter.accept(dir, "aaaa"));
        assertFalse(filter.accept(dir, "b"));
    
        // Show that dir is ignored
        assertTrue(filter.accept(null, "a"));
      }
    
      public void testNulls() throws Exception {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/StandardSystemPropertyTest.java

     * limitations under the License.
     */
    
    package com.google.common.base;
    
    import static com.google.common.base.StandardSystemProperty.JAVA_COMPILER;
    import static com.google.common.base.StandardSystemProperty.JAVA_EXT_DIRS;
    import static com.google.common.truth.Truth.assertWithMessage;
    
    import com.google.common.annotations.GwtIncompatible;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link StandardSystemProperty}.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 10 08:40:05 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/LongsTest.java

        int dim1 = 1 << 16;
        int dim2 = 1 << 15;
        assertThat(dim1 * dim2).isLessThan(0);
        testConcat_overflow(dim1, dim2);
      }
    
      @GwtIncompatible // different overflow behavior; could probably be made to work by using ~~
      public void testConcat_overflow_nonNegative() {
        int dim1 = 1 << 16;
        int dim2 = 1 << 16;
        assertThat(dim1 * dim2).isAtLeast(0);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/LongsTest.java

        int dim1 = 1 << 16;
        int dim2 = 1 << 15;
        assertThat(dim1 * dim2).isLessThan(0);
        testConcat_overflow(dim1, dim2);
      }
    
      @GwtIncompatible // different overflow behavior; could probably be made to work by using ~~
      public void testConcat_overflow_nonNegative() {
        int dim1 = 1 << 16;
        int dim2 = 1 << 16;
        assertThat(dim1 * dim2).isAtLeast(0);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/FilesTest.java

        assertEquals(1, result.length);
      }
    
      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));
      }
    
    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)
  9. guava/src/com/google/common/base/StandardSystemProperty.java

       *     Java 8 and removed in Java 9. We do not plan to remove this API from Guava, but if you are
       *     using it, it is probably not doing what you want.
       */
      @Deprecated
      JAVA_EXT_DIRS("java.ext.dirs"),
    
      /** Operating system name. */
      OS_NAME("os.name"),
    
      /** Operating system architecture. */
      OS_ARCH("os.arch"),
    
      /** Operating system version. */
      OS_VERSION("os.version"),
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/MoreFilesTest.java

        Files.createDirectories(fs.getPath("dir/b/i/j/l"));
        Files.createFile(fs.getPath("dir/a"));
        Files.createFile(fs.getPath("dir/c"));
        Files.createSymbolicLink(fs.getPath("dir/d"), fs.getPath("b/i"));
        Files.createDirectory(fs.getPath("dir/e"));
        Files.createSymbolicLink(fs.getPath("dir/f"), fs.getPath("/dontdelete"));
        Files.createFile(fs.getPath("dir/b/g"));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 29 22:57:05 GMT 2024
    - 27.2K bytes
    - Viewed (0)
Back to top