mirror of
https://github.com/gosticks/iota.lib.java.git
synced 2026-10-07 06:56:58 +00:00
Implemented broadcastAndStore and sendTrytes
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user