mirror of
https://github.com/gosticks/iota.lib.java.git
synced 2026-08-29 20:30:25 +00:00
* added SeedRandomGenerator * extended IotaUnitConverter * minor * added isArrayOfHashes * renamed constants * added error package * added transactionObject * fixed IotaUnitConverter
23 lines
543 B
Java
23 lines
543 B
Java
package jota;
|
|
|
|
import jota.utils.Constants;
|
|
import jota.utils.InputValidator;
|
|
import jota.utils.SeedRandomGenerator;
|
|
import org.junit.Test;
|
|
|
|
import static org.junit.Assert.assertEquals;
|
|
|
|
/**
|
|
* Created by pinpong on 13.12.16.
|
|
*/
|
|
public class SeedRandomGeneratorTest {
|
|
|
|
@Test
|
|
public void shouldGenerateNewSeed() {
|
|
|
|
String generatedSeed = SeedRandomGenerator.generateNewSeed();
|
|
assertEquals(InputValidator.isAddress(generatedSeed), true);
|
|
assertEquals(generatedSeed.length(), Constants.SEED_LENGTH_MAX);
|
|
}
|
|
}
|