Skip to content

Commit 8c16ba4

Browse files
committed
DEVOPS
Changes made: * Just added a unit test on the AccountsSelector for good measure
1 parent 935895b commit 8c16ba4

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@IsTest(IsParallel=true)
2+
private class AccountsSelectorTest
3+
{
4+
@IsTest
5+
private static void shouldReturnEmptyListWhenSelectByIdDoesNotExist()
6+
{
7+
IAccountsSelector selector = AccountsSelector.newInstance();
8+
System.assert( selector.selectById( new Set<Id>{fflib_IDGenerator.generate(Account.SObjectType)} ).isEmpty()
9+
, 'Expected null because record id value does not exist');
10+
}
11+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<apiVersion>54.0</apiVersion>
4+
<status>Active</status>
5+
</ApexClass>

0 commit comments

Comments
 (0)