add testcase

This commit is contained in:
wenshao
2012-08-27 08:06:31 +08:00
parent 8121c92732
commit 5ce816807d
2 changed files with 20 additions and 0 deletions
@@ -0,0 +1,15 @@
package com.alibaba.druid.bvt.utils;
import com.alibaba.druid.util.ThreadLocalRandom;
import junit.framework.TestCase;
public class ThreadLocalRandomTest extends TestCase {
public void test_random() throws Exception {
ThreadLocalRandom.current().nextBoolean();
ThreadLocalRandom.current().nextDouble();
ThreadLocalRandom.current().nextFloat();
ThreadLocalRandom.current().nextInt();
ThreadLocalRandom.current().nextLong();
}
}