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

[test] allow list injection for tests #761

Merged
merged 4 commits into from
Jan 13, 2025
Merged

Conversation

SentryMan
Copy link
Collaborator

now can do

@InjectTest
class ListInject {

  @Inject List<Somei> testSomei;

  @Test
  void test() {

    assertThat(testSomei).isNotEmpty();
  }
}

now can do
```java
@InjectTest
class ListInject {

  @Inject List<Somei> testSomei;

  @test
  void test() {

    assertThat(testSomei).isNotEmpty();
  }
}
```
@SentryMan SentryMan self-assigned this Jan 13, 2025
@SentryMan SentryMan added the enhancement New feature or request label Jan 13, 2025
@SentryMan SentryMan enabled auto-merge (squash) January 13, 2025 03:37
@SentryMan SentryMan merged commit 4d88eb0 into avaje:master Jan 13, 2025
7 checks passed
@rbygrave rbygrave added this to the 11.2 milestone Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants