From d4c4ad3fbe61ad51c09e971b70d4eb68587e6ecc Mon Sep 17 00:00:00 2001 From: Robert Baillie Date: Wed, 20 Apr 2022 15:25:28 +0100 Subject: [PATCH] Fixed test --- TODO.txt | 5 +++++ .../default/classes/tests/ApplicationMockRegistrarTest.cls | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/TODO.txt b/TODO.txt index e004540a4d4..da8c2196583 100644 --- a/TODO.txt +++ b/TODO.txt @@ -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 diff --git a/framework/default/ortoo-core/default/classes/tests/ApplicationMockRegistrarTest.cls b/framework/default/ortoo-core/default/classes/tests/ApplicationMockRegistrarTest.cls index 7fd354adda3..a994e4dffd8 100644 --- a/framework/default/ortoo-core/default/classes/tests/ApplicationMockRegistrarTest.cls +++ b/framework/default/ortoo-core/default/classes/tests/ApplicationMockRegistrarTest.cls @@ -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 + new Map { - Contact.SobjectType => fflib_ISObjectSelector.class + 'Contact' => 'fflib_ISObjectSelector' } ); @@ -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() ); + Application.SELECTOR = new ortoo_SelectorFactory( new Map() ); Test.startTest(); Amoss_Instance mockController = ApplicationMockRegistrar.registerMockSelector( Contact.sobjectType );