File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
core/dylib/src/test/java/ch/cyberduck/core/local Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,17 @@ public void getGetModificationDate() throws Exception {
7171 f .delete ();
7272 }
7373
74+ @ Test
75+ public void getSetModificationDate () throws Exception {
76+ assertEquals (-1 , new FinderLocalAttributes (new FinderLocal (UUID .randomUUID ().toString ())).getModificationDate ());
77+ final File f = new File (UUID .randomUUID ().toString ());
78+ f .createNewFile ();
79+ FinderLocalAttributes a = new FinderLocalAttributes (new FinderLocal (f .getAbsolutePath ()));
80+ a .setModificationDate (1738771415656L );
81+ assertEquals (1738771415656L , a .getModificationDate ());
82+ f .delete ();
83+ }
84+
7485 @ Test
7586 public void testGetOwner () throws Exception {
7687 final File f = new File (UUID .randomUUID ().toString ());
You can’t perform that action at this time.
0 commit comments