Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
34 lines (28 sloc) 947 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("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

You can’t perform that action at this time.