Skip to content

Commit d161e50

Browse files
committed
justering av kommentarer
1 parent da1e9ed commit d161e50

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

src/platform-utility/CustomMetadataDAO/classes/CustomMetadataDAOTest.cls

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,20 @@
1515
* @see [Get 100% Code Coverage for Salesforce Custom Metadata Based Decisions](https://www.avenga.com/magazine/salesforce-custom-metadata/)
1616
* @example
1717
* CustomMetadataDAOTest.setMetadata(
18-
* 'SELECT MasterLable, CustomField__c ' +
19-
* 'FROM CustomMetadata__mdt ' +
20-
* 'WHERE DeveloperName = \'Name\'',
21-
* (List<CustomMetadata__mdt>) JSON.deserialize('[{"CustomField__c":"Value"}]', List<CustomMetadata__mdt>.class)
18+
* 'SELECT MasterLabel ' +
19+
* 'FROM CustomMetadata__mdt ' +
20+
* 'WHERE DeveloperName = \'Name\'',
21+
* (List<CustomMetadata__mdt>) JSON.deserialize(
22+
* '[{"attributes": {"type": "CustomMetadata__mdt"},"MasterLabel":"Value"}]',
23+
* List<CustomMetadata__mdt>.class)
2224
* );
2325
*
2426
* List<CustomMetadata__mdt> nameCMList = (List<CustomMetadata__mdt>) new CustomMetadataDAO()
25-
* .getCustomMetadataRecords(
26-
* 'SELECT MasterLable, CustomField__c ' +
27-
* 'FROM CustomMetadata__mdt ' +
28-
* 'WHERE DeveloperName = \'Name\''
29-
* );
27+
* .getCustomMetadataRecords(
28+
* 'SELECT MasterLable, CustomField__c ' +
29+
* 'FROM CustomMetadata__mdt ' +
30+
* 'WHERE DeveloperName = \'Name\''
31+
* );
3032
*
3133
* CustomMetadata__mdt name;
3234
* if (nameCMList.size() > 0) {
@@ -75,18 +77,20 @@ public class CustomMetadataDAOTest {
7577
* @param records Set Custom Metadata Records for the tests.
7678
* @example
7779
* CustomMetadataDAOTest.setMetadata(
78-
* 'SELECT MasterLable, CustomField__c ' +
79-
* 'FROM CustomMetadata__mdt ' +
80-
* 'WHERE DeveloperName = \'Name\'',
81-
* (List<CustomMetadata__mdt>) JSON.deserialize('[{"CustomField__c":"Value"}]', List<CustomMetadata__mdt>.class)
80+
* 'SELECT MasterLabel ' +
81+
* 'FROM CustomMetadata__mdt ' +
82+
* 'WHERE DeveloperName = \'Name\'',
83+
* (List<CustomMetadata__mdt>) JSON.deserialize(
84+
* '[{"attributes": {"type": "CustomMetadata__mdt"},"MasterLabel":"Value"}]',
85+
* List<CustomMetadata__mdt>.class)
8286
* );
8387
*
8488
* List<CustomMetadata__mdt> nameCMList = (List<CustomMetadata__mdt>) new CustomMetadataDAO()
85-
* .getCustomMetadataRecords(
86-
* 'SELECT MasterLable, CustomField__c ' +
87-
* 'FROM CustomMetadata__mdt ' +
88-
* 'WHERE DeveloperName = \'Name\''
89-
* );
89+
* .getCustomMetadataRecords(
90+
* 'SELECT MasterLabel ' +
91+
* 'FROM CustomMetadata__mdt ' +
92+
* 'WHERE DeveloperName = \'Name\''
93+
* );
9094
*
9195
* CustomMetadata__mdt name;
9296
* if (nameCMList.size() > 0) {

0 commit comments

Comments
 (0)