Skip to content

Conversation

ImJohnMDaniel
Copy link
Contributor

@ImJohnMDaniel ImJohnMDaniel commented Nov 30, 2024

The class fflib_Mocks was a relic from the days prior to the introduction of theTest.createStub(System.Type, System.StubProvider) method. Need to remove the class and use the standard library approach of fflib_ApexMocks.mock() instead.

This change is Reviewable

Copy link
Contributor

@daveespo daveespo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ImJohnMDaniel)


sfdx-source/apex-mocks/test/classes/fflib_ApexMocksTest.cls line 723 at r1 (raw file):

		// Given
		fflib_ApexMocks mocks = new fflib_ApexMocks();
		// fflib_MyList.IList mockList = new fflib_Mocks.Mockfflib_MyList(mocks);

Why leave a commented-out line here? (and below)

@ImJohnMDaniel
Copy link
Contributor Author

Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ImJohnMDaniel)

sfdx-source/apex-mocks/test/classes/fflib_ApexMocksTest.cls line 723 at r1 (raw file):

		// Given
		fflib_ApexMocks mocks = new fflib_ApexMocks();
		// fflib_MyList.IList mockList = new fflib_Mocks.Mockfflib_MyList(mocks);

Why leave a commented-out line here? (and below)

@daveespo -- Good catch. I have removed the obsolete comments. Cheers!

Copy link
Contributor

@daveespo daveespo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ImJohnMDaniel)

@ImJohnMDaniel ImJohnMDaniel merged commit 56973f7 into master Dec 2, 2024
3 checks passed
@ImJohnMDaniel ImJohnMDaniel deleted the devops/removal-of-fflib-mocks branch December 2, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants