From 2601d46a87be69d9c8a4eeb099940661ff4339b3 Mon Sep 17 00:00:00 2001 From: Robert Baillie Date: Thu, 28 Apr 2022 11:05:56 +0100 Subject: [PATCH] Improved hiding of date literal setters --- .../default/classes/fflib-extension/ortoo_DateLiterals.cls | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/framework/default/ortoo-core/default/classes/fflib-extension/ortoo_DateLiterals.cls b/framework/default/ortoo-core/default/classes/fflib-extension/ortoo_DateLiterals.cls index 1f59c3d128f..f20d71e3b5b 100644 --- a/framework/default/ortoo-core/default/classes/fflib-extension/ortoo_DateLiterals.cls +++ b/framework/default/ortoo-core/default/classes/fflib-extension/ortoo_DateLiterals.cls @@ -25,6 +25,7 @@ public inherited sharing class ortoo_DateLiterals * * The existance allows for the calendar to be re-set in Unit Tests. */ + @testVisible public static Date today { get @@ -35,7 +36,7 @@ public inherited sharing class ortoo_DateLiterals } return Date.today(); } - set; + private set; } /** @@ -44,6 +45,7 @@ public inherited sharing class ortoo_DateLiterals * * The existance allows for the clock to be re-set in Unit Tests. */ + @testVisible public static DateTime now { get @@ -54,7 +56,7 @@ public inherited sharing class ortoo_DateLiterals } return DateTime.now(); } - set; + private set; } /**