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

com.jparams.junit4.ParameterizedMethod Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
package com.jparams.junit4;

import org.junit.runner.Description;
import org.junit.runners.model.FrameworkMethod;

public class ParameterizedMethod {
    private final FrameworkMethod method;
    private final Description description;
    private final Object[][] data;
    private int index = 0;

    public ParameterizedMethod(FrameworkMethod method, Description description, Object[][] data) {
        this.method = method;
        this.description = description;
        this.data = data;
    }

    public FrameworkMethod getMethod() {
        return method;
    }

    public Description getDescription() {
        return description;
    }

    public Object[] getParameters() {
        if (index < data.length) {
            return data[index++];
        }

        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy