Salesforce 生成测试可用 Id

在写 Test Class 的时候,有时候须要一批有 Id 的数据或者把 Id 做为参数等状况,在数据关系比较复杂的状况下去造真实数据有些麻烦,因而找到这样一个能够生成 Id 的方法能够用来辅助测试!html private static Integer fakeIdCount = 0; private static final String ID_PATTERN = '000000000000'
相关文章
相关标签/搜索