Skip to content

Commit d36342e

Browse files
Merge pull request apex-enterprise-patterns#41 from OrtooApps/feature/timestamped-cache-entries
Improved hiding of date literal setters
2 parents eab9439 + 2601d46 commit d36342e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

framework/default/ortoo-core/default/classes/fflib-extension/ortoo_DateLiterals.cls

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public inherited sharing class ortoo_DateLiterals
2525
*
2626
* The existance allows for the calendar to be re-set in Unit Tests.
2727
*/
28+
@testVisible
2829
public static Date today
2930
{
3031
get
@@ -35,7 +36,7 @@ public inherited sharing class ortoo_DateLiterals
3536
}
3637
return Date.today();
3738
}
38-
set;
39+
private set;
3940
}
4041

4142
/**
@@ -44,6 +45,7 @@ public inherited sharing class ortoo_DateLiterals
4445
*
4546
* The existance allows for the clock to be re-set in Unit Tests.
4647
*/
48+
@testVisible
4749
public static DateTime now
4850
{
4951
get
@@ -54,7 +56,7 @@ public inherited sharing class ortoo_DateLiterals
5456
}
5557
return DateTime.now();
5658
}
57-
set;
59+
private set;
5860
}
5961

6062
/**

0 commit comments

Comments
 (0)