The Apex Mocks framework gained a new feature recently, namely Matchers. This new feature means that we can start verifying what records and their fields values are being passed to a mocked Unit Of Work more reliably and with a greater level of detail. Since … Continue reading
Search Results for: unit of work
Doing more work with the Unit Of Work
In a previous post I introduced the Unit Of Work class, which is part of the Apex Enterprise Patterns series. As the original post describes it helps you simplify your code when it comes to performing multiple DML statements over … Continue reading
Managing your DML and Transactions with a Unit Of Work
A utility class I briefly referenced in this article was SObjectUnitOfWork. I promised in that article to discuss it in more detail, that time has come! Its main goals are. Optimise DML interactions with the database Provide transactional control Simplify complex code … Continue reading
FinancialForce Apex Common Community Updates
This short blog highlights a batch of new features recently merged to the FinancialForce Apex Common library aka fflib. In addition to the various Dreamforce and blog resources linked from the repo, fans of Trailhead can also find modules relating to the … Continue reading
Unit Testing, Apex Enterprise Patterns and ApexMocks – Part 2
In Part 1 of this blog series i introduced a new means of applying true unit testing to Apex code leveraging the Apex Enterprise Patterns. Covering the differences between true unit testing vs integration testing and how the lines can get a little blurred when writing … Continue reading
Unit Testing, Apex Enterprise Patterns and ApexMocks – Part 1
If you attended my Advanced Apex Enterprise Patterns session at Dreamforce 2014 you’ll have heard me highlight the different between Apex tests that are either written as true unit test vs those written in a way that more resembles an … Continue reading
Extending Lightning Process Builder and Visual Workflow with Apex
I love empowering as many people to experience the power of Salesforce’s hugely customisable and extensible platform as possible. In fact this platform has taught me that creating a great solution is not just about designing how we think a solution would be … Continue reading
Unit Testing with the Domain Layer
Writing true Apex unit tests that are quite granular can be hard in Apex, especially when the application gets more complex, as their is limited mocking support, meaning you have to create all your test data and move it through stages … Continue reading
New Book – Salesforce Platform Enterprise Architecture 4th Edition
It has been nearly 10 years back in 2014 when the first edition of my book Force.com Enterprise Architecture was first published and clearly a lot has moved on since then and not just the platform capabilities. Keeping pace with … Continue reading
Tips for Migrating to Apex Enterprise Patterns
One of the common questions i get asked is, “How do i adopt Apex Enterprise Patterns within an existing code base?“. Often its also folks who have not owned the code base from the start and are inheriting it. Your also … Continue reading