package at.favre.tools.dice.service;

import at.favre.tools.dice.util.ByteUtils;
import org.junit.Test;

import static at.favre.tools.dice.service.RandomOrgServiceHandler.ENTROPY_SEED_LENGTH_BIT;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

/**
 * Created by PatrickF on 17.08.2017.
 */
public class RandomOrgServiceHandlerTest {
    @Test
    public void getRandom() throws Exception {
        RandomOrgServiceHandler.Result random = new RandomOrgServiceHandler(true).getRandom();
        System.out.println(ByteUtils.bytesToHex(random.seed));
        assertNotNull(random.seed);
        assertTrue(random.seed.length == ENTROPY_SEED_LENGTH_BIT / 8);
    }

}
@@ -224,64 +224,9 @@
 ert.
-assertNotNull;%0Aimport static org.junit.Assert.assertTrue
+*
 ;%0A%0A/
@@ -564,16 +564,100 @@
 .seed);%0A
+        assertFalse(random.equals(1));%0A        assertFalse(random.hashCode() == 0);%0A
         

Add more tests