Skip to content

Releases: scordio/junit-converters

v0.1.0

15 Apr 14:47

Choose a tag to compare

The first release of JUnit Converters.

Maven

<dependency>
  <groupId>io.github.scordio</groupId>
  <artifactId>junit-converters</artifactId>
  <version>0.1.0</version>
  <scope>test</scope>
</dependency>

Gradle

testImplementation("io.github.scordio:junit-converters:0.1.0")

Quick Start

import io.github.scordio.junit.converters.SpringConversion;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;

...

@ParameterizedTest
@ValueSource(strings = { "123, 456", "123, 789" })
void test(@SpringConversion List<Integer> ints) {
    assertThat(ints).contains(123);
}

See more in the User Guide.