Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (27 sloc) 805 Bytes

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(names = "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:0.1.0'
}

Release