Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for dir1 (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. android/guava/src/com/google/common/io/TempFileCreator.java

          for (int counter = 0; counter < TEMP_DIR_ATTEMPTS; counter++) {
            File tempDir = new File(baseDir, baseName + counter);
            if (tempDir.mkdir()) {
              return tempDir;
            }
          }
          throw new IllegalStateException(
              "Failed to create directory within "
                  + TEMP_DIR_ATTEMPTS
                  + " attempts (tried "
                  + baseName
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  8. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  9. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2K bytes
    - Viewed (0)
  10. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 10 08:40:05 GMT 2023
    - 2.4K bytes
    - Viewed (0)
Back to top