com.liferay.portal.util.test
Class RandomTestUtil
java.lang.Object
com.liferay.portal.util.test.RandomTestUtil
public class RandomTestUtil
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomTestUtil
public RandomTestUtil()
nextDate
public static Date nextDate()
nextDouble
public static double nextDouble()
throws Exception
- Throws:
Exception
nextInt
public static int nextInt()
throws Exception
- Throws:
Exception
nextLong
public static long nextLong()
throws Exception
- Throws:
Exception
randomBoolean
public static boolean randomBoolean()
randomBytes
public static byte[] randomBytes()
randomInt
public static int randomInt()
randomLocaleStringMap
public static Map<Locale,String> randomLocaleStringMap()
randomLocaleStringMap
public static Map<Locale,String> randomLocaleStringMap(Locale locale)
randomLong
public static long randomLong()
randomString
public static String randomString()
randomString
public static String randomString(int length)
randomStrings
public static String[] randomStrings(int count)
randomUnicodeProperties
public static UnicodeProperties randomUnicodeProperties(int propertyCount,
int keyLength,
int valueLength)