Commit Graph
171 Commits
Author SHA1 Message Date
William Velzeboer a0fae69635 Merge pull request #28 from JAertgeerts/main
Fix null check
2022-02-16 10:31:37 +00:00
Jan Aertgeerts 81dfa9bfb8 Fix null check 2022-02-16 09:49:04 +01:00
William Velzeboer 336917e9db Fix bug on constructor method 2022-02-03 13:40:58 +00:00
WimVelzeboer a73ebf5682 Merge remote-tracking branch 'origin/main' 2022-01-31 12:53:29 +00:00
WimVelzeboer 901cc03f9a Add class fflib_MockSOQLResult
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2022-01-31 12:53:02 +00:00
WimVelzeboer 68d1c73c28 Add class fflib_MockSOQLResult
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2022-01-31 12:51:28 +00:00
WimVelzeboer 52810158fb Add selectNull private method to domain template
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2022-01-31 08:38:41 +00:00
William Velzeboer b1d48a8a88 Merge pull request #27 from wimvelzeboer/RecordType-patch
Fix issue with fflib_RecordType when cache is null
2022-01-29 21:09:49 +00:00
William Velzeboer e6e99ce84d Fix issue with fflib_RecordType when cache is null 2022-01-29 20:53:56 +00:00
William Velzeboer b4b3735b97 Merge pull request #26 from wimvelzeboer/feature/sharesSelector
Add selector and factory class for SObjectShares
2022-01-24 09:57:36 +00:00
WimVelzeboer cad0396447 Add selector and factory class for SObjectShares
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2022-01-24 09:50:39 +00:00
William Velzeboer b0e4da9a6f Merge pull request #25 from wimvelzeboer/feature/RecordTypeId
Add fflib_RecordTypeId.cls for getting the recordType Ids
2022-01-19 16:07:38 +00:00
WimVelzeboer 933383970a Add fflib_RecordTypeId.cls for getting the recordType Ids based on cached values
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2022-01-19 11:40:32 +00:00
WimVelzeboer 2ff66b6a2f Add virtual to fflib_SObjectTriggerHandler class
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2022-01-13 15:24:12 +00:00
William Velzeboer 8b745f6265 Merge pull request #23 from wimvelzeboer/bugfix/setFieldValueFailsWithDate
Improved method for setting read-only field values
2022-01-13 12:07:24 +00:00
WimVelzeboer 964a2ed032 Improved method for setting read-only field values
When mocking records, read-only field values can only be set with this method. It is now also compatible with Date field types

Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2022-01-13 11:47:54 +00:00
William Velzeboer 130a20119e Merge pull request #21 from JAertgeerts/feature/fix-object
Remove protected object visibility as this only works with 2GP
2022-01-12 21:33:46 +00:00
William Velzeboer d9935eb702 Merge pull request #22 from wimvelzeboer/bugfix/soql-generation-issue
Increase unit-test coverage for fflib_Criteria to 80%
2022-01-12 21:26:26 +00:00
WimVelzeboer 547b22a080 Increase unit-test coverage for fflib_Criteria to 80%
Also added method overloads for inSet and notInSet to allow for related field (field names as String)
Fix for issue #19

Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2022-01-12 21:21:12 +00:00
William Velzeboer 83700a112c Merge pull request #20 from JAertgeerts/main
Add getIdFieldByStringField()
2022-01-12 11:34:49 +00:00
Jan Aertgeerts 2080d95b6d Remove protected object visibility as this only works with 2GP 2022-01-12 12:19:20 +01:00
William Velzeboer 89c2e23625 Fix failing unit-test 2022-01-12 11:14:02 +00:00
William Velzeboer 74f49d4eb4 Merge branch 'main' into main 2022-01-12 10:56:01 +00:00
WimVelzeboer 07d1ab977b Increase unit-test coverage of fflib_SObject2 to 94%
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2022-01-12 10:51:54 +00:00
WimVelzeboer 5a7639495a Merge remote-tracking branch 'origin/main' 2022-01-12 09:21:45 +00:00
WimVelzeboer 92daa2e645 Add unit-test for fflib_SObject2.getStringFieldByIdField
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2022-01-12 09:21:28 +00:00
WimVelzeboer acb1fc21e8 Add method to add a readonly field for mocking.
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2022-01-11 18:54:12 +00:00
WimVelzeboer d569dfe4e6 Add method to add a readonly field for mocking.
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2022-01-11 18:53:37 +00:00
WimVelzeboer b6b6d6a7c5 Add method to add a readonly field for mocking.
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2022-01-11 18:41:43 +00:00
WimVelzeboer 6a0fd5faae Add selectById method to the domain template
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2022-01-11 10:40:40 +00:00
Jan Aertgeerts bc62708b88 add getIdFieldByStringField() 2022-01-10 11:49:20 +01:00
WimVelzeboer a48dbe519f Bugfix to getStringFieldByIdField method
Method arguments were in the incorrect order.

Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2022-01-05 13:19:33 +00:00
WimVelzeboer 904505b85d Merge remote-tracking branch 'origin/main'
# Conflicts:
#	dev-tools/assets/intelliJ/fileTemplates/AEPE - Domain Structure.cls
2022-01-05 11:12:35 +00:00
WimVelzeboer 4557d18092 Add selectBy private domain selector method in template
Allows for generic selectors based on fflib_criteria

Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2022-01-05 11:12:00 +00:00
WimVelzeboer b99f1f11bf Add selectBy private domain selector method in template
Allows for generic selectors based on fflib_criteria

Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2022-01-05 11:10:46 +00:00
WimVelzeboer 558242b34f Add private domain selector method in domain template
Allows for generic selectors based on SObjectFields

Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2022-01-03 16:50:31 +00:00
WimVelzeboer 24ba673d8e Add support to compare a date against a date time 2021-12-13 18:21:57 +00:00
WimVelzeboer 1497b5fec7 Set parallel testing for domain template unit-test 2021-12-13 09:13:54 +00:00
WimVelzeboer 6ee805dfd8 Add extra unit-test coverage 2021-12-10 09:27:25 +00:00
WimVelzeboer 9822d06610 Bugfix in triggerhandler 2021-12-09 12:10:40 +00:00
WimVelzeboer 9f18f4065c Fix copy paste issue in selector template 2021-12-07 14:05:15 +00:00
WimVelzeboer 6c939f6ba0 Add more robust template 2021-12-02 10:48:16 +00:00
Wim Velzeboer c8a2c39959 Bugfix for issue #19 2021-11-25 15:29:00 +00:00
Wim Velzeboer 910219dd8c Fix class templates with incorrect reference 2021-11-25 10:12:19 +00:00
WimVelzeboer 0d8e29d00b Add more insight into how the fflib_Criteria formula was evaluated
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2021-11-22 21:00:11 +00:00
WimVelzeboer 1f45c8d4c2 Add setter method to fflib_SObjects2 plus unit-test
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2021-11-04 17:18:46 +00:00
WimVelzeboer 6eee1acdb6 Add getDecimalFieldSum method to domain
This will summarise the Decimal field value

Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2021-11-03 15:24:05 +00:00
WimVelzeboer 5b486bc3a2 Delete MyTest class
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2021-11-01 13:27:35 +00:00
WimVelzeboer ef77fad3ed Improvements to the trigger handler
Ability to disable trigger action in meta-data, and adds a stateful option

Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2021-10-28 15:35:28 +01:00
WimVelzeboer ed87378fba Trigger Handler functionality (small bugfix)
A trigger handler based on trigger actions configured via custom metadata. It separates the trigger logic per class, and is utilizing the fflib_UnitOfWork to execute the trigger actions.

Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
2021-10-27 17:55:04 +01:00