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

Bump JUnitParams from 1.0.4 to 1.1.1 #127

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 27, 2020

Bumps JUnitParams from 1.0.4 to 1.1.1.

Changelog

Sourced from JUnitParams's changelog.

JUnitParams 1.1.1 release. Release date : 2017-11-03

Regexp bugfix

New version works well for Instrumented Unit Test for Android 19 and below.

Thanks mattmook and aaalaniz for contribution.

JUnitParams 1.1.0 release. Release date : 2017-04-17

[Breaking change] Enhance ParametersProvider with FrameworkMethod

ParametersProvider#initialize method was enhanced with new parameter - FrameworkMethod object. It gives access to all information connected with method in testing e.g. annotations.

    public static class MethodNameReader implements ParametersProvider<CustomParameters> {
        private FrameworkMethod frameworkMethod;
    @Override
    public void initialize(CustomParameters parametersAnnotation, FrameworkMethod frameworkMethod) {
        this.frameworkMethod = frameworkMethod;
    }
@Override
public Object[] getParameters() {
    return new Object[]{frameworkMethod.getName()};
}

}

How to migrate? Add new parameter to ParametersProvider#initialize method if you are using any custom parameters provider.

Thanks bohrqiu for contribution.

Possibility to link parameters to test case by @Named annotation

In some cases we can don't want to link parameters to test case by method name or putting everything into the test case annotation. We introduce possibility to define custom name for the connection by using @NamedParameters annotation.

    @Test
    @Parameters(named = "return 1")
    public void testSingleNamedMethod(int number) {
        assertThat(number).isEqualTo(1);
    }
@NamedParameters(&quot;return 1&quot;)
private Integer[] returnNumberOne() {
    return new Integer[] { 1 };
}

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Nov 27, 2020
@colinduplantis
Copy link
Member

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/maven/branches/4.0.x/pl.pragmatists-JUnitParams-1.1.1 branch from 6c9f528 to 0daac05 Compare December 2, 2020 15:46
@colinduplantis colinduplantis merged commit 3d84ab0 into branches/4.0.x Dec 2, 2020
@colinduplantis colinduplantis deleted the dependabot/maven/branches/4.0.x/pl.pragmatists-JUnitParams-1.1.1 branch December 2, 2020 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant