Skip to content

Commit

Permalink
[WIP]
Browse files Browse the repository at this point in the history
  • Loading branch information
jongpie committed Oct 16, 2024
1 parent 15f7850 commit f1f01b0
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
@SuppressWarnings('PMD.ApexDoc, PMD.ApexAssertionsShouldIncludeMessage, PMD.MethodNamingConventions, PMD.ApexUnitTestClassShouldHaveAsserts')
@IsTest(IsParallel=true)
private class LogBatchApexErrorEventHandler_Tests implements Database.Batchable<SObject>, Database.RaisesPlatformEvents {
static {
// Don't use the org's actual custom metadata records when running tests
LoggerConfigurationDataSelector.useMocks();
}

private final Phase throwLocation;

private enum Phase {
Expand All @@ -18,6 +13,11 @@ private class LogBatchApexErrorEventHandler_Tests implements Database.Batchable<
FINISH
}

static {
// Don't use the org's actual custom metadata records when running tests
LoggerConfigurationDataSelector.useMocks();
}

@IsTest
static void it_should_create_log_when_batch_job_throws_in_start_method() {
runTestForPhase(Phase.START);
Expand Down

0 comments on commit f1f01b0

Please sign in to comment.