Skip to content

goerge/junit-jupiter-typed-params

Repository files navigation

junit-jupiter-typed-params

Create typed parameters with JUnit Jupiter Params

Usage

static Stream<TypedArguments2<Integer, Boolean>> arguments() {
    return Stream.of(
        TypedArguments.create(17, false),
        TypedArguments.create(22, true)
    );
}

@ParameterizedTest
@MethodSource("arguments")
void personIsAdultWithArguments(final int age, final boolean isAdult) {
    assertThat(new Person(age).isAdult()).isEqualTo(isAdult);
}

Gradle Dependencies

repositories {
    jcenter()
    maven { url "https://jitpack.io" }
}

dependencies {
    testCompile 'com.github.goerge:junit-jupiter-typed-params:1.0.0'
}

Release Build Status

About

Create typed parameters with JUnit Jupiter Params

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages