HDFS-11258. Addendum patch to fix compile issue. Contributed by Jimmy Xiang.

This commit is contained in:
Akira Ajisaka 2016-12-23 03:56:12 +09:00
parent 3ba589cd1e
commit 16c4dcad85
1 changed files with 1 additions and 4 deletions

View File

@ -27,8 +27,6 @@ import org.mockito.Mockito;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.mockito.Matchers.anyBoolean;
import static org.mockito.Matchers.anyString;
import static org.mockito.Mockito.when;
/**
@ -45,12 +43,11 @@ public class TestFSDirAttrOp {
when(fsd.getAccessTimePrecision()).thenReturn(precision);
when(fsd.hasWriteLock()).thenReturn(Boolean.TRUE);
when(fsd.getINodesInPath(anyString(), anyBoolean())).thenReturn(iip);
when(iip.getLastINode()).thenReturn(inode);
when(iip.getLatestSnapshotId()).thenReturn(Mockito.anyInt());
when(inode.getAccessTime()).thenReturn(atime0);
return FSDirAttrOp.unprotectedSetTimes(fsd, "", mtime, atime, force);
return FSDirAttrOp.unprotectedSetTimes(fsd, iip, mtime, atime, force);
}
@Test