import tachyon.shell.AbstractTfsShellTest;
public class ChmodCommandTest extends AbstractTfsShellTest {
@Test
public void chmodTest() throws IOException, TachyonException {
Whitebox.setInternalState(LoginUser.class, "sLoginUser", (String) null);
<BUG>TachyonFSTestUtils.createByteFile(mTfs, "/testFile", TachyonStorageType.STORE,

UnderStorageType.NO_PERSIST, 10);
mFsShell.run("chmod", "777", "/testFile");
TachyonFile tf = mTfs.open(new TachyonURI("/testFile"));
int permission = mTfs.getInfo(tf).getPermission();</BUG>
Assert.assertEquals((short) 0777, permission);

import tachyon.shell.AbstractTfsShellTest;
public class ChmodCommandTest extends AbstractTfsShellTest {
@Test
public void chmodTest() throws IOException, TachyonException {
Whitebox.setInternalState(LoginUser.class, "sLoginUser", (String) null);
TachyonFSTestUtils.createByteFile(mTfs, "/testFile", WriteType.MUST_CACHE, 10);
mFsShell.run("chmod", "777", "/testFile");
int permission = mTfs.getStatus(new TachyonURI("/testFile")).getPermission();
Assert.assertEquals((short) 0777, permission);
