Skip to content

Commit 0cececc

Browse files
committed
Add test.
1 parent 84abd75 commit 0cececc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

core/dylib/src/test/java/ch/cyberduck/core/local/FinderLocalAttributesFinderTest.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
 (0)