31 lines
1.6 KiB
OpenEdge ABL
31 lines
1.6 KiB
OpenEdge ABL
@isTest
|
|
public class UpdateDefaultFieldMapping_Test {
|
|
@isTest
|
|
public static void testUpdateDefaultFieldMapping(){
|
|
boolean asserBool = false;
|
|
Test.startTest();
|
|
|
|
CustomSettingRecordInsert postinstall = new CustomSettingRecordInsert();
|
|
Test.testInstall(postinstall, null);
|
|
Test.testInstall(postinstall, new Version(1, 0),true);
|
|
|
|
|
|
asserBool=true;
|
|
//CustomSettingRecordInsert.onInstall();
|
|
|
|
//CustomSettingRecordInsert.InsertingFieldMapping();
|
|
// CustomSettingRecordInsert.InsertingWebhook();
|
|
// CustomSettingRecordInsert.InsertingConfiguration();
|
|
Test.stopTest();
|
|
list<HIC_ShopifySync__Field_mapping__c> fieldMapping = [select id, HIC_ShopifySync__Object_Name__c from HIC_ShopifySync__Field_mapping__c where HIC_ShopifySync__Object_Name__c = 'Account' ];
|
|
list<HIC_ShopifySync__Webhook__c> webhook = [select id, HIC_ShopifySync__DML_Type__c from HIC_ShopifySync__webhook__c where HIC_ShopifySync__DML_Type__c = 'Create'];
|
|
list<HIC_ShopifySync__Configuration__c> configuration = [select id, name from HIC_ShopifySync__Configuration__c where name = 'Default'];
|
|
|
|
System.debug('fieldMapping++'+fieldMapping);
|
|
//System.assert(fieldMapping[0].HIC_ShopifySync__Object_Name__c.contains('Account'));
|
|
// System.assert(webhook[0].HIC_ShopifySync__DML_Type__c.contains('Create'));
|
|
//System.assert(configuration[0].name.contains('Default'));
|
|
System.assert(asserBool);
|
|
UpdateDefaultFieldMapping.insertDefaultFieldMapping();
|
|
}
|
|
} |