diff --git a/lib/testing/src/lib/core/utils/string.util.ts b/lib/testing/src/lib/core/utils/string.util.ts index 2c7abdcab7..22a0249759 100644 --- a/lib/testing/src/lib/core/utils/string.util.ts +++ b/lib/testing/src/lib/core/utils/string.util.ts @@ -35,6 +35,15 @@ export class StringUtil { return StringUtil.generateRandomCharset(length, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'); } + /** + * Generates a random lowercase string. + * + * @param length If this parameter is not provided the length is set to 8 by default. + */ + static generateRandomLowercaseString(length: number = 8): string { + return StringUtil.generateRandomCharset(length, 'abcdefghijklmnopqrstuvwxyz0123456789'); + } + /** * Generates a random email address following the format: abcdef@activiti.test.com *