-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SObjectNotNullTest, improve ModifySObjectTest test, replace isPar…
…allel with IsParallel
- Loading branch information
Showing
14 changed files
with
56 additions
and
13 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
force-app/main/default/classes/test/classes/collection/DecimalCollectionTest.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
force-app/main/default/classes/test/classes/collection/DoubleCollectionTest.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
force-app/main/default/classes/test/classes/collection/SObjectCollectionTest.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
force-app/main/default/classes/test/classes/function/MapToObjectTest.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@IsTest(isParallel=true) | ||
@IsTest(IsParallel=true) | ||
private class MapToObjectTest { | ||
|
||
private class MappingTarget { | ||
|
2 changes: 1 addition & 1 deletion
2
force-app/main/default/classes/test/classes/function/MapToSObjectTest.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@IsTest(isParallel=true) | ||
@IsTest(IsParallel=true) | ||
public with sharing class MapToSObjectTest { | ||
|
||
@IsTest | ||
|
30 changes: 28 additions & 2 deletions
30
force-app/main/default/classes/test/classes/function/ModifySObjectTest.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
force-app/main/default/classes/test/classes/function/SObjectNotNullTest.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@IsTest(IsParallel=true) | ||
private class SObjectNotNullTest { | ||
@IsTest | ||
private static void nullSObjectReturnsFalse() { | ||
Assert.areEqual(false, new SObjectNotNull().call(null)); | ||
} | ||
|
||
@IsTest | ||
private static void nonNullSObjectReturnsTrue() { | ||
Assert.areEqual(true, new SObjectNotNull().call(new Opportunity())); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
force-app/main/default/classes/test/classes/function/SObjectNotNullTest.cls-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>56.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
2 changes: 1 addition & 1 deletion
2
force-app/main/default/classes/test/classes/stream/SObjectStreamTest.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
force-app/main/default/classes/test/classes/util/OptionalDecimalTest.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
force-app/main/default/classes/test/classes/util/OptionalDoubleTest.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
force-app/main/default/classes/test/classes/util/OptionalSObjectTest.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
force-app/main/default/classes/test/classes/util/PrimitiveComparerTest.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
force-app/main/default/classes/test/classes/util/SObjectFieldReaderTest.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters