mirror of
https://github.com/gosticks/iota.lib.java.git
synced 2025-10-16 11:45:37 +00:00
22 lines
526 B
Java
22 lines
526 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;
|
|
|
|
/**
|
|
* @author pinpong
|
|
*/
|
|
public class SeedRandomGeneratorTest {
|
|
|
|
@Test
|
|
public void shouldGenerateNewSeed() {
|
|
String generatedSeed = SeedRandomGenerator.generateNewSeed();
|
|
assertEquals(InputValidator.isAddress(generatedSeed), true);
|
|
assertEquals(generatedSeed.length(), Constants.SEED_LENGTH_MAX);
|
|
}
|
|
}
|