Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

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