You need to sign in to do that
Don't have an account?
rahul soni 20
need help with apex super budge challange 6
// here i am counting error :: Invalid type: WarehouseSyncSchedule
@isTest
public class WarehouseSyncScheduleTest{
@isTest
static void testWarehouseSyncSchd(){
String sch = '0 0 0 * * ? 2020';
Test.startTest();
// Set mock callout class
Test.setMock(HttpCalloutMock.class, new WarehouseCalloutServiceMock());
String jobId = System.schedule('ScheduledWarehouseTest', sch, new WarehouseSyncSchedule());
CronTrigger ct = [SELECT Id, CronExpression, TimesTriggered, NextFireTime FROM CronTrigger WHERE Id = :jobId];
System.assertEquals(sch, ct.CronExpression);
Test.stopTest();
}
}
@isTest
public class WarehouseSyncScheduleTest{
@isTest
static void testWarehouseSyncSchd(){
String sch = '0 0 0 * * ? 2020';
Test.startTest();
// Set mock callout class
Test.setMock(HttpCalloutMock.class, new WarehouseCalloutServiceMock());
String jobId = System.schedule('ScheduledWarehouseTest', sch, new WarehouseSyncSchedule());
CronTrigger ct = [SELECT Id, CronExpression, TimesTriggered, NextFireTime FROM CronTrigger WHERE Id = :jobId];
System.assertEquals(sch, ct.CronExpression);
Test.stopTest();
}
}
We have a separate Trailhead team who can help you with these issues. So, can you please use the below link to reach out to them so that one of the Engineers will get in touch with you.
Support: https://trailhead.salesforce.com/en/help?support=home
Please mark this answer as best if it helps so that others facing same issue will find it useful.
Thanks
Hello Swetha,
Is this issue from salesforce side?
https://github.com/Konstryktor/Superbadge-Apex-Specialist
Thanks
Hello Swetha,
Thanks for the link but that doesn't work for me. I am unable to go through this challange.