package jpower.core.test;

import jpower.core.utils.ArrayUtils;
import jpower.core.utils.StringUtils;
import org.junit.Test;

import java.util.stream.Stream;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;

public class RandomTest
{
   @Test
   public void testStringRandomness()
   {
      int times = 50;
      int count = 0;
      while (count < times)
      {
         String[] strings = StringUtils.random(50, 20);
         Stream.of(strings).forEach(System.out::println);
         assertFalse(ArrayUtils.containsDuplicates(strings));
         count++;
      }
   }

   @Test
   public void testStringLength()
   {
      String random = StringUtils.random(50);
      assertEquals(50, random.length());
   }
}

@@ -123,41 +123,8 @@
 t;%0A%0A
-import java.util.stream.Stream;%0A%0A
 impo
@@ -426,66 +426,8 @@
 0);%0A
-         Stream.of(strings).forEach(System.out::println);%0A
     

Remove a lot of test output that is useless.