SyncMadeEasy/force-app/main/default/classes/webhookClassTest.cls

9 lines
399 B
OpenEdge ABL

@isTest
private with sharing class webhookClassTest {
static testMethod void testParse() {
String json= '{"webhook": { "topic": "customers/create","address": "https://hicsfshopify-developer-edition.ap4.force.com/services/apexrest/UpdateCustomerFromShopify/","format": "json"}}';
webhookClass obj = webhookClass.parse(json);
System.assert(obj != null);
}
}