Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-baillie-ortoo committed Apr 20, 2022
1 parent dd53ebb commit d4c4ad3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ Licenses that are needed with the source code and binary:

* Move all the Jest LWc tests over to create the component in the before


Documentation - using lazy loader for service instantiation



Look at the use of 'MockDatabase' in fflib
Look at:
SobjectUtils.getSobjectName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ private without sharing class ApplicationMockRegistrarTest
private static void registerMockSelector_whenGivenAnSobjectThatIsRegistered_willGenerateAMockAndReturnIt() // NOPMD: Test method name format
{
Application.SELECTOR = new ortoo_SelectorFactory(
new Map<SobjectType,Type>
new Map<String,String>
{
Contact.SobjectType => fflib_ISObjectSelector.class
'Contact' => 'fflib_ISObjectSelector'
}
);

Expand All @@ -64,7 +64,7 @@ private without sharing class ApplicationMockRegistrarTest
@isTest
private static void registerMockSelector_whenGivenAnSobjectThatIsNotRegistered_willGenerateAGenericMockAndReturnIt() // NOPMD: Test method name format
{
Application.SELECTOR = new ortoo_SelectorFactory( new Map<SobjectType,Type>() );
Application.SELECTOR = new ortoo_SelectorFactory( new Map<String,String>() );

Test.startTest();
Amoss_Instance mockController = ApplicationMockRegistrar.registerMockSelector( Contact.sobjectType );
Expand Down

0 comments on commit d4c4ad3

Please sign in to comment.