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

com.github.vendigo.acetest.files.FileMatcher Maven / Gradle / Ivy

package com.github.vendigo.acetest.files;

import java.util.List;

import static java.util.stream.Collectors.toList;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.IsEqual.equalTo;

public class FileMatcher {
    public static void assertFileLines(List actualLines, List expectedLines) {
        List actual = actualLines.stream().map(String::trim).collect(toList());
        List expected = expectedLines.stream().map(String::trim).collect(toList());
        assertThat(actual, equalTo(expected));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy