Skip to content

Add test asserting display name setter is accessible on current IntelliJ build#8809

Merged
pq merged 1 commit into
flutter:mainfrom
lukemmtt:fix/display-name-setter-test
Feb 18, 2026
Merged

Add test asserting display name setter is accessible on current IntelliJ build#8809
pq merged 1 commit into
flutter:mainfrom
lukemmtt:fix/display-name-setter-test

Conversation

@lukemmtt
Copy link
Copy Markdown
Contributor

@lukemmtt lukemmtt commented Feb 18, 2026

Follow-up to #8796.

Extracts the reflection lookup into a @VisibleForTesting getDisplaySetter() method and adds a test asserting it returns non-null. This serves as a regression guard: if JetBrains removes or renames setDisplayName in a future build, the test will fail loudly rather than the feature silently breaking for users (which was the original failure mode in #8795).

Verified locally by running the test against the real SDK (passes), then temporarily corrupting the method name to setDisplayName_doesNotExist (fails with the expected assertion message).

I've reviewed the contributor guide and applied the relevant portions to this PR.

…liJ build

Extracts the reflection lookup into a @VisibleForTesting getDisplaySetter() method and adds a test asserting it returns non-null. Serves as a regression guard: if JetBrains removes or renames setDisplayName in a future build, the test will fail loudly rather than the feature silently breaking for users.

Follow-up to flutter#8796.
@pq
Copy link
Copy Markdown
Collaborator

pq commented Feb 18, 2026

This is fantastic and a great reference point for #8806 too. Thanks for following up and moving this along!

Copy link
Copy Markdown
Collaborator

@pq pq left a comment

Choose a reason for hiding this comment

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

Awesome

@pq pq merged commit 200edc9 into flutter:main Feb 18, 2026
7 checks passed
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.

2 participants