• anna 5
  • NEWBIE
  • 10 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 1
    Questions
  • 1
    Replies
hallo.

I'm trying to this trailhead.
■Use Future Methods
https://trailhead.salesforce.com/ja/modules/asynchronous_apex/units/async_apex_future_methods

I wrote berow code for test class,
but the 'AccountProcessor' class did not achieve 100% code coverage via your test methods.
@isTest
public class AccountProcessorTest {
    @isTest
    public static void AccountProcessorTest(){
        
        List<Account> accounts = [Select Id, Name from Account];
        List<Id> ids = new List<Id>();
        for(account a : accounts){
            ids.add(a.Id);
        }
        Test.startTest();
        AccountProcessor.countContacts(ids);
        Test.stopTest();
        
    }
}
So I tried to debug with checkpoint,
It seemed that 'aid' contains the Account record itself, not it's id

User-added image

How can I set Account.id to List<id>?

Thak you.
  • February 09, 2018
  • Like
  • 0
hallo.

I'm trying to this trailhead.
■Use Future Methods
https://trailhead.salesforce.com/ja/modules/asynchronous_apex/units/async_apex_future_methods

I wrote berow code for test class,
but the 'AccountProcessor' class did not achieve 100% code coverage via your test methods.
@isTest
public class AccountProcessorTest {
    @isTest
    public static void AccountProcessorTest(){
        
        List<Account> accounts = [Select Id, Name from Account];
        List<Id> ids = new List<Id>();
        for(account a : accounts){
            ids.add(a.Id);
        }
        Test.startTest();
        AccountProcessor.countContacts(ids);
        Test.stopTest();
        
    }
}
So I tried to debug with checkpoint,
It seemed that 'aid' contains the Account record itself, not it's id

User-added image

How can I set Account.id to List<id>?

Thak you.
  • February 09, 2018
  • Like
  • 0
Hi folks, 

I try to complete the "Build a Battle Station App" -> Modify the User Experience. Trail to complete. I checked everything and did it 3 times but every time I get the error:

Challenge Not yet complete... here's what's wrong: 
The 'Resources' related list was not found on the Page Layout 
Note: you may run into errors if you've skipped previous steps.

The Resources Column is in the Page Layout and I add the needed objects. 

Anybody an Idea?