File testFile = generateFileContent("/testDir/testFile", TestUtils.getIncreasingByteArray(10));
generateFileContent("/testDir/testDirInner/testFile2", TestUtils.getIncreasingByteArray(10, 20));
mFsShell.copyFromLocal(new String[] {"copyFromLocal", testFile.getParent(), "/testDir"});
Assert.assertEquals(getCommandOutput(new String[] {"copyFromLocal", testFile.getParent(),
"/testDir"}), mOutput.toString());
TachyonFile tFile = mTfs.getFile(new TachyonURI("/testDir/testFile"));
TachyonFile tFile2 = mTfs.getFile(new TachyonURI("/testDir/testDirInner/testFile2"));
Assert.assertNotNull(tFile);
Assert.assertNotNull(tFile2);
Assert.assertEquals(10, tFile.length());
Assert.assertEquals(20, tFile2.length());
byte[] read = readContent(tFile, 10);
Assert.assertTrue(TestUtils.equalIncreasingByteArray(10, read));
read = readContent(tFile2, 20);
Assert.assertTrue(TestUtils.equalIncreasingByteArray(10, 20, read));
}