forked from Qortal/qortal
Merge pull request #118 from QuickMythril/temp-test
Added missing parameter to test
This commit is contained in:
commit
a7bbad17d7
@ -20,7 +20,7 @@ public class ArbitraryDataFileTests extends Common {
|
|||||||
@Test
|
@Test
|
||||||
public void testSplitAndJoin() throws DataException {
|
public void testSplitAndJoin() throws DataException {
|
||||||
String dummyDataString = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
|
String dummyDataString = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
|
||||||
ArbitraryDataFile arbitraryDataFile = new ArbitraryDataFile(dummyDataString.getBytes(), null);
|
ArbitraryDataFile arbitraryDataFile = new ArbitraryDataFile(dummyDataString.getBytes(), null, false);
|
||||||
assertTrue(arbitraryDataFile.exists());
|
assertTrue(arbitraryDataFile.exists());
|
||||||
assertEquals(62, arbitraryDataFile.size());
|
assertEquals(62, arbitraryDataFile.size());
|
||||||
assertEquals("3eyjYjturyVe61grRX42bprGr3Cvw6ehTy4iknVnosDj", arbitraryDataFile.digest58());
|
assertEquals("3eyjYjturyVe61grRX42bprGr3Cvw6ehTy4iknVnosDj", arbitraryDataFile.digest58());
|
||||||
@ -50,7 +50,7 @@ public class ArbitraryDataFileTests extends Common {
|
|||||||
byte[] randomData = new byte[fileSize];
|
byte[] randomData = new byte[fileSize];
|
||||||
new Random().nextBytes(randomData); // No need for SecureRandom here
|
new Random().nextBytes(randomData); // No need for SecureRandom here
|
||||||
|
|
||||||
ArbitraryDataFile arbitraryDataFile = new ArbitraryDataFile(randomData, null);
|
ArbitraryDataFile arbitraryDataFile = new ArbitraryDataFile(randomData, null, false);
|
||||||
assertTrue(arbitraryDataFile.exists());
|
assertTrue(arbitraryDataFile.exists());
|
||||||
assertEquals(fileSize, arbitraryDataFile.size());
|
assertEquals(fileSize, arbitraryDataFile.size());
|
||||||
String originalFileDigest = arbitraryDataFile.digest58();
|
String originalFileDigest = arbitraryDataFile.digest58();
|
||||||
|
Loading…
Reference in New Issue
Block a user