Skip to content

Commit

Permalink
Added simple test for UnsecureDml
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-baillie-ortoo committed Dec 9, 2021
1 parent 0f64657 commit 0cedce8
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 3 deletions.
3 changes: 0 additions & 3 deletions TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ Introduce ortoo_Selector - make it secure by default

Test:
ortoo_Exception.regenerateStackTraceString
SobjectUtils.isCreateable
SobjectUtils.isUpdateable
SobjectUtils.isDeletable
UnsecureDml

Look at:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

@isTest
private without sharing class UnsecureDmlTest
{
@isTest
private static void constructor_whenCalled_willCreateAnIdmlImplementation() // NOPMD: Test method name format
{
Object unsecureDml = new UnsecureDml();

System.assert( unsecureDml instanceOf fflib_SobjectUnitOfWork.Idml, 'constructor, when called, will create an Idml implementation' );
System.assert( unsecureDml instanceOf fflib_SobjectUnitOfWork.SimpleDml, 'constructor, when called, will create a SimpleDml implementation' );
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>52.0</apiVersion>
<status>Active</status>
</ApexClass>

0 comments on commit 0cedce8

Please sign in to comment.