Implemented broadcastAndStore and sendTrytes

This commit is contained in:
davassi
2016-12-18 12:33:26 +01:00
parent 548b311eed
commit 937a2b2e38
18 changed files with 514 additions and 68 deletions
+12
View File
@@ -0,0 +1,12 @@
package jota;
import org.junit.Test;
public class SendMessageTest {
@Test
public void sendMessage() {
}
}
@@ -3,6 +3,9 @@ package jota;
import jota.utils.TrytesConverter;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.apache.commons.lang3.RandomStringUtils;
/**
* Created by pinpong on 01.12.16.
@@ -17,5 +20,14 @@ public class TrytesConverterTest {
public void shouldConvertTrytesToString() {
assertEquals(TrytesConverter.toString("IC"), "Z");
}
@Test
public void shouldConvertBackAndForth() {
String str = RandomStringUtils.randomAlphabetic(1000).toUpperCase();
System.err.println(str);
String back = TrytesConverter.toString(TrytesConverter.toTrytes(str));
assertTrue(str.equals(back));
}
}