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

com.jparams.junit4.data.reader.DataReader Maven / Gradle / Ivy

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

import com.google.common.base.Joiner;
import com.jparams.junit4.data.Data;
import com.jparams.junit4.data.parser.DataParser;

public class DataReader implements Reader {
    @Override
    public Object[][] readData(Data annotation) {
        String lines = Joiner.on(System.lineSeparator()).join(annotation.value());
        return DataParser.parse(lines);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy