All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tngtech.jgiven.tests.TestClassWithParameterizedRunner Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
package com.tngtech.jgiven.tests;

import java.util.Arrays;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;

import com.tngtech.jgiven.junit.ScenarioTest;

@RunWith( Parameterized.class )
public class TestClassWithParameterizedRunner extends ScenarioTest {

    @Parameters
    public static Iterable data() {
        return Arrays.asList( new Object[][] {
            { 1 },
            { 2 }
        } );
    }

    private final Integer value;

    public TestClassWithParameterizedRunner( Integer value ) {
        this.value = value;
    }

    @Test
    public void test1() {
        given().nothing();
    }

    @Test
    public void test2() {
        given().nothing();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy