blob: 90c560207a57d44bb1fdcd15ef26d3c7813a8fec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package com.att.ecomp.dcae.ci.utilities;
import org.apache.commons.lang3.RandomStringUtils;
import com.google.common.base.Ascii;
public class StringUtils {
public static String randomString(String prefix, int length) {
return prefix + RandomStringUtils.randomAlphanumeric(length - prefix.length());
}
public static String truncate(Object obj) {
return Ascii.truncate(obj.toString(), 160, "...");
}
}
|