Mastering Software Testing with JUnit 5: Comprehensive guide to develop high quality Java applications by Garcia Boni

Mastering Software Testing with JUnit 5: Comprehensive guide to develop high quality Java applications by Garcia Boni

Author:Garcia, Boni [Garcia, Boni]
Language: eng
Format: azw3, epub
Tags: COM060160 - COMPUTERS / Web / Web Programming, COM051280 - COMPUTERS / Programming Languages / Java, COM051390 - COMPUTERS / Programming / Open Source
Publisher: Packt Publishing
Published: 2017-10-27T04:00:00+00:00


import static org.junit.jupiter.api.Assertions.assertNotNull;

import java.util.stream.DoubleStream;

import java.util.stream.IntStream;

import java.util.stream.LongStream;

import org.junit.jupiter.params.ParameterizedTest;

import org.junit.jupiter.params.provider.MethodSource;

class MethodSourcePrimitiveTypesParameterizedTest {

static IntStream intProvider() {

return IntStream.of(0, 1);

}

@ParameterizedTest

@MethodSource("intProvider")

void testWithIntProvider(int argument) {

System.out.println("Parameterized test with (int) argument: " +

argument);

assertNotNull(argument);

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.