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

Update dependency com.google.testparameterinjector:test-parameter-injector to v1.15 #444

Merged
merged 1 commit into from
Jan 28, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 21, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.google.testparameterinjector:test-parameter-injector 1.14 -> 1.15 age adoption passing confidence

Release Notes

google/testparameterinjector (com.google.testparameterinjector:test-parameter-injector)

v1.15

  • Add context aware version of TestParameterValuesProvider.
    It is the same as the old TestParameter.TestParameterValuesProvider,
    except that provideValues() was changed to provideValues(Context) where
    Context
    contains the test class and the other annotations. This allows for more generic
    providers that take into account custom annotations with extra data, or the
    implementation of abstract methods on a base test class.

    Example usage:

import com.google.testing.junit.testparameterinjector.TestParameterValuesProvider;

private static final class MyProvider extends TestParameterValuesProvider {
  @​Override
  public List<?> provideValues(Context context) throws Exception {
    var testInstance = context.testClass().getDeclaredConstructor().newInstance();
    var fooList = ((MyBaseTestClass) testInstance).getFooList();
    // ...

    // OR

    var fooList = context.getOtherAnnotation(MyCustomAnnotation.class).fooList();
    // ...
  }
}
  • Fixed some theoretical non-determinism that could arise from Java reflection
    methods

Configuration

📅 Schedule: Branch creation - "before 4am on Sunday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@AdamMc331 AdamMc331 merged commit 12ab795 into development Jan 28, 2024
6 checks passed
@AdamMc331 AdamMc331 deleted the renovate/testparameterinjector branch January 28, 2024 00:05
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.

1 participant