21 lines
624 B
OpenEdge ABL
21 lines
624 B
OpenEdge ABL
@IsTest
|
|
public class AutomationHandlerTest {
|
|
|
|
@IsTest
|
|
static void testGetMetaData_Success() {
|
|
|
|
Test.startTest();
|
|
String result = AutomationHandler.getMetaData();
|
|
Test.stopTest();
|
|
|
|
System.assertNotEquals(null, result, 'Result should not be null');
|
|
|
|
// Deserialize result to verify JSON structure
|
|
List<HIC_FilesME__Automation_Code__mdt> records =
|
|
(List<HIC_FilesME__Automation_Code__mdt>)
|
|
JSON.deserialize(result, List<HIC_FilesME__Automation_Code__mdt>.class);
|
|
|
|
System.assert(records != null, 'Records list should not be null');
|
|
}
|
|
|
|
} |