Hi All,
I encountered this issue and attempted all recommended solutions, but they were unsuccessful.
Please review and advise.
Thanks.
Challenges:
@isTest
public class MyIterableTest {
@isTest
private static void testIterableForLoop() {
Test.startTest();
List<String> strings = new List<String> {'Hello', 'World'};
MyIterable myIterable = new MyIterable(strings);
for (String str : myIterable) {
System.debug(str);
}
Test.stopTest();
}
}
You may also want to do it like this
Go to Setup > search for "Application Test Execution" in the Quick Find box and click it > click Select Tests and select the test class MyIterableTest > Run
Here's the link check in the thread(answered by
https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000Kfg8Q0AR