Skip to content

domain as argument #486

Answered by ImJohnMDaniel
klipus asked this question in Q&A
Apr 17, 2024 · 2 comments · 10 replies
Discussion options

You must be logged in to vote

@klipus -- going back to your original question and issue about the problem that you are having with the unit test, I am assuming that you are using the ApplicationFactory pattern and thus are utilizing an Application.cls in your codebase. You mentioned in you exert that your test method was the following:

    List<Invoice_Location_Sector__c> invLocSectors = new List<Invoice_Location_Sector__c>{
        new Invoice_Location_Sector__c(Id = fflib_IDGenerator.generate(Schema.Invoice_Location_Sector__c.SObjectType))
    };
    InvoiceLocationSectors invLocDomain = (InvoiceLocationSectors) InvoiceLocationSectors.newInstance(invLocSectors);
    ((IOpportunities) mocks.verify(oppDomainMock)).upd…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
8 replies
@wimvelzeboer
Comment options

@klipus
Comment options

@wimvelzeboer
Comment options

@klipus
Comment options

@klipus
Comment options

Comment options

You must be logged in to vote
2 replies
@klipus
Comment options

@ImJohnMDaniel
Comment options

Answer selected by ImJohnMDaniel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants