@Test public void testGenerateFromBigFile() throws IOException { mPointer.writeTo(mOutput); assertEquals( "data 134\n" + // Since this is a data extension we use it to calculate the actual pointer size "version https://git-lfs.github.com/spec/v1\n" + "oid sha256:de73c67cc17aba8cad0561ad6391d4a1146a81ed7af70efbfd42987599a04761\n" + "size 104857600\n\n", // a data command put an extra line feed at the end of the // command mOutput.toString("UTF-8")); }
@Test(expected = UnsupportedOperationException.class) public void testWriteArray() throws UnsupportedEncodingException { mPointer.writeData("Some fake inforamtion".getBytes("UTF-8")); }