Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testTouchTime (0.16 sec)

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

        assertFalse(Files.exists(temp));
    
        MoreFiles.touch(temp);
        assertTrue(Files.exists(temp));
        MoreFiles.touch(temp);
        assertTrue(Files.exists(temp));
      }
    
      public void testTouchTime() throws IOException {
        Path temp = createTempFile();
        assertTrue(Files.exists(temp));
        Files.setLastModifiedTime(temp, FileTime.fromMillis(0));
        assertEquals(0, Files.getLastModifiedTime(temp).toMillis());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/FilesTest.java

                        return false;
                      }
    
                      private static final long serialVersionUID = 0;
                    }));
      }
    
      public void testTouchTime() throws IOException {
        File temp = createTempFile();
        assertTrue(temp.exists());
        temp.setLastModified(0);
        assertEquals(0, temp.lastModified());
        Files.touch(temp);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/FilesTest.java

                        return false;
                      }
    
                      private static final long serialVersionUID = 0;
                    }));
      }
    
      public void testTouchTime() throws IOException {
        File temp = createTempFile();
        assertTrue(temp.exists());
        temp.setLastModified(0);
        assertEquals(0, temp.lastModified());
        Files.touch(temp);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/MoreFilesTest.java

        assertFalse(Files.exists(temp));
    
        MoreFiles.touch(temp);
        assertTrue(Files.exists(temp));
        MoreFiles.touch(temp);
        assertTrue(Files.exists(temp));
      }
    
      public void testTouchTime() throws IOException {
        Path temp = createTempFile();
        assertTrue(Files.exists(temp));
        Files.setLastModifiedTime(temp, FileTime.fromMillis(0));
        assertEquals(0, Files.getLastModifiedTime(temp).toMillis());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 26.5K bytes
    - Viewed (0)
Back to top