LICENSED UNDER A CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE (CC BY 4.0) | V2020-08 Data-Driven Approach Data-Driven Testing from JUnit 5 (JNoSQL, TemporalWriterTest) @ParameterizedTest(name = "must convert {0}") @DisplayName("Should be able to convert temporal") @MethodSource("temporalDataForConversion") void shouldConvert(Temporal temporal) { String result = valueWriter.write(temporal); assertThat(result).isEqualTo(temporal.toString()); } static Stream<Arguments> temporalDataForConversion() { return Stream.of( arguments(LocalDateTime.now()), arguments(LocalDate.now()), arguments(LocalTime.now()), arguments(Year.now()), arguments(YearMonth.now()), arguments(ZonedDateTime.now()) ); }