Skip to content

Commit 0dc41df

Browse files
committed
fix: spelling Opportunties -> Opportunities
1 parent 14af51d commit 0dc41df

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

sfdx-source/apex-common/test/classes/fflib_ApplicationTest.cls

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ private class fflib_ApplicationTest
325325
Assert.areEqual(1, assertAccounts.size());
326326
Assert.areEqual(testAccountId, assertAccounts[0].Id);
327327
Assert.areEqual('Test Account', assertAccounts[0].Name);
328-
Assert.isInstanceOfType(Selector.newInstance(Opportunity.SObjectType), OpportuntiesSelector.class);
328+
Assert.isInstanceOfType(Selector.newInstance(Opportunity.SObjectType), OpportunitiesSelector.class);
329329
}
330330

331331

@@ -350,7 +350,7 @@ private class fflib_ApplicationTest
350350
Selector.setMock(selectorMock);
351351

352352
// When
353-
List<Opportunity> opportunties =
353+
List<Opportunity> pportunities =
354354
new List<Opportunity>
355355
{ new Opportunity(
356356
Id = testOpportunityId,
@@ -360,14 +360,14 @@ private class fflib_ApplicationTest
360360
new Opportunity(
361361
Id = testOpportunityId,
362362
Name = 'Test Opportunity 2') };
363-
List<Account> assertAccounts = Selector.selectByRelationship(opportunties, Opportunity.AccountId);
363+
List<Account> assertAccounts = Selector.selectByRelationship(pportunities, Opportunity.AccountId);
364364

365365
// Then
366366
Assert.isInstanceOfType(Selector.newInstance(Account.SObjectType), fflib_SObjectMocks.SObjectSelector.class);
367367
Assert.areEqual(1, assertAccounts.size());
368368
Assert.areEqual(testAccountId, assertAccounts[0].Id);
369369
Assert.areEqual('Test Account', assertAccounts[0].Name);
370-
Assert.isInstanceOfType(Selector.newInstance(Opportunity.SObjectType), OpportuntiesSelector.class);
370+
Assert.isInstanceOfType(Selector.newInstance(Opportunity.SObjectType), OpportunitiesSelector.class);
371371
}
372372

373373

@@ -491,15 +491,15 @@ private class fflib_ApplicationTest
491491
new fflib_Application.SelectorFactory(
492492
new Map<SObjectType, Type> {
493493
Account.SObjectType => AccountsSelector.class,
494-
Opportunity.SObjectType => OpportuntiesSelector.class });
494+
Opportunity.SObjectType => OpportunitiesSelector.class });
495495

496496
// Configure and create the DomainFactory for this Application
497497
public static final fflib_Application.DomainFactory Domain =
498498
new fflib_Application.DomainFactory(
499499
fflib_ApplicationTest.Selector,
500500
new Map<SObjectType, Type> {
501501
Account.SObjectType => AccountsConstructor.class,
502-
Opportunity.SObjectType => OpportuntiesConstructor.class,
502+
Opportunity.SObjectType => OpportunitiesConstructor.class,
503503
Contact.SObjectType => ContactsConstructor.class });
504504

505505
public class AccountsDomain extends fflib_SObjectDomain
@@ -528,29 +528,29 @@ private class fflib_ApplicationTest
528528
}
529529
}
530530

531-
public class OpportuntiesDomain extends fflib_SObjectDomain
531+
public class OpportunitiesDomain extends fflib_SObjectDomain
532532
{
533-
public OpportuntiesDomain(List<Opportunity> sObjectList)
533+
public OpportunitiesDomain(List<Opportunity> sObjectList)
534534
{
535535
super(sObjectList);
536536
}
537537

538-
public OpportuntiesDomain(List<SObject> sObjectList, SObjectType sObjectType)
538+
public OpportunitiesDomain(List<SObject> sObjectList, SObjectType sObjectType)
539539
{
540540
super(sObjectList, sObjectType);
541541
}
542542
}
543543

544-
public class OpportuntiesConstructor implements fflib_SObjectDomain.IConstructable2
544+
public class OpportunitiesConstructor implements fflib_SObjectDomain.IConstructable2
545545
{
546546
public fflib_SObjectDomain construct(List<SObject> sObjectList)
547547
{
548-
return new OpportuntiesDomain(sObjectList);
548+
return new OpportunitiesDomain(sObjectList);
549549
}
550550

551551
public fflib_SObjectDomain construct(List<SObject> sObjectList, SObjectType sObjectType)
552552
{
553-
return new OpportuntiesDomain(sObjectList, sObjectType);
553+
return new OpportunitiesDomain(sObjectList, sObjectType);
554554
}
555555
}
556556

@@ -573,7 +573,7 @@ private class fflib_ApplicationTest
573573

574574
}
575575

576-
class OpportuntiesSelector extends fflib_SObjectSelector
576+
class OpportunitiesSelector extends fflib_SObjectSelector
577577
{
578578
public List<Schema.SObjectField> getSObjectFieldList()
579579
{

0 commit comments

Comments
 (0)