Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for @InjectTest with inherited field injection #499

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

rob-bygrave
Copy link
Contributor

With a test class with inheritance and field injection on inherited fields, those fields were not being injected.

This fixes this issue.

With a test class with inheritance and field injection on inherited fields, those fields were not being injected.

This fixes this issue.
@rob-bygrave rob-bygrave self-assigned this Feb 12, 2024
@SentryMan SentryMan added the bug Something isn't working label Feb 12, 2024
@SentryMan SentryMan added this to the 9.11 milestone Feb 12, 2024
Copy link
Collaborator

@SentryMan SentryMan left a comment

Choose a reason for hiding this comment

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

LGTM

@SentryMan SentryMan merged commit 710174f into master Feb 12, 2024
7 checks passed
@Test
void test_expect_inheritedFieldIsInjected() {
assertThat(something).isNotNull();
assertThat(steamer).isNotNull();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This [inherited] steamer field was not getting injected

@SentryMan SentryMan deleted the feature/fix-testscope-inherited-fields-injection branch February 12, 2024 05:14
@SentryMan
Copy link
Collaborator

I had forgotten that we could do that with abstract classes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants