Skip to content

Instantly share code, notes, and snippets.

@osieckiAdam
osieckiAdam / TestUtility.cls
Created February 8, 2023 13:37 — forked from scottmcclung/TestUtility.cls
Apex method to generate fake record ids in tests.
/**
* Apex method to generate fake record ids in tests
* Created by Stephen Willcock
* https://foobarforce.com/2013/08/15/apex-method-of-the-day-string-repeat/
*/
public class TestUtility
{
static Integer s_num = 1;
public static String getFakeId(Schema.SObjectType sot)