@@ -0,0 +1,1354 @@
+package flxsmb.tests;%0A%0Aimport flxsmb.tests.data.ShareInfo;%0Aimport flxsmb.tests.utils.SmbTestCase;%0Aimport jcifs.smb.NtlmPasswordAuthentication;%0Aimport jcifs.smb.SmbFile;%0Aimport org.testng.annotations.Test;%0A%0Aimport java.util.Date;%0A%0A/**%0A * Test cases for setting the last accessed date.%0A */%0Apublic class SetLastAccessedTimeTests extends SmbTestCase%0A%7B%0A    /**%0A     * Tests that the last accessed date of a file is correctly set.%0A     */%0A    @Test%0A    public void testSetFileLastAccessedDate() throws Exception%0A    %7B%0A        ShareInfo shareInfo = getWritableShare();%0A        SmbFile file = getTemporaryFile(shareInfo);%0A%0A        Date serverTime = getShareRoot(shareInfo).getServerTime();%0A%0A        // new time one hour in future%0A        Date newTime = new Date(serverTime.getTime() + (60 * 60 * 1000));%0A%0A        file.setAccessTime(newTime.getTime());%0A//        file.setAccessTime(1000000L);%0A%0A        SmbFile file2 = new SmbFile(file.getURL(), shareInfo.getAuthenticator());%0A%0A        _logger.info(String.format(%22server time: %25s%22, serverTime));%0A        _logger.info(String.format(%22%5B%25s%5D new accessed time: %25s%22, file, new Date(file.lastAccessed())));%0A%0A//        assertFileAccessTimeRange(file, serverTime, -1);%0A    %7D%0A%0A    /**%0A     * Tests that the last accessed date of a directory is correctly set.%0A     */%0A    public void testSetDirectoryLastAccessedDate() %7B%7D%0A%0A%7D%0A

set access times test