[!WARNING]
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
google/testparameterinjector (com.google.testparameterinjector:test-parameter-injector)
### [`v1.15`](https://togithub.com/google/testparameterinjector/blob/HEAD/CHANGELOG.md#115)
- Add context aware version of [`TestParameterValuesProvider`](https://google.github.io/TestParameterInjector/docs/latest/com/google/testing/junit/testparameterinjector/TestParameterValuesProvider.html).
It is the same as the old [`TestParameter.TestParameterValuesProvider`](https://google.github.io/TestParameterInjector/docs/latest/com/google/testing/junit/testparameterinjector/TestParameter.TestParameterValuesProvider.html),
except that `provideValues()` was changed to `provideValues(Context)` where
[`Context`](https://google.github.io/TestParameterInjector/docs/latest/com/google/testing/junit/testparameterinjector/TestParameterValuesProvider.Context.html)
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:
```java
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 - At any time (no schedule defined), 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.
This PR contains the following updates:
1.14
->1.15
Release Notes
google/testparameterinjector (com.google.testparameterinjector:test-parameter-injector)
### [`v1.15`](https://togithub.com/google/testparameterinjector/blob/HEAD/CHANGELOG.md#115) - Add context aware version of [`TestParameterValuesProvider`](https://google.github.io/TestParameterInjector/docs/latest/com/google/testing/junit/testparameterinjector/TestParameterValuesProvider.html). It is the same as the old [`TestParameter.TestParameterValuesProvider`](https://google.github.io/TestParameterInjector/docs/latest/com/google/testing/junit/testparameterinjector/TestParameter.TestParameterValuesProvider.html), except that `provideValues()` was changed to `provideValues(Context)` where [`Context`](https://google.github.io/TestParameterInjector/docs/latest/com/google/testing/junit/testparameterinjector/TestParameterValuesProvider.Context.html) 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: ```java 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 methodsConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.
This PR has been generated by Mend Renovate. View repository job log here.