/** * Test setTimes operation. * * @throws Exception If failed. */ @Test public void testSetTimes() throws Exception { createFile(igfs, FILE, true, chunk); checkExist(igfs, igfsSecondary, DIR); checkExist(igfs, igfsSecondary, SUBDIR); checkExist(igfs, igfsSecondary, FILE); checkSetTimes(SUBDIR); checkSetTimes(FILE); try { igfs.setTimes(FILE2, Long.MAX_VALUE, Long.MAX_VALUE); fail("Exception is not thrown for missing file."); } catch (Exception ignore) { // No-op. } }