Class FixtureHelpers


  • public class FixtureHelpers
    extends Object
    A set of helper method for fixture files.
    • Method Detail

      • fixture

        public static String fixture​(String filename)
        Reads the given fixture file from the classpath (e. g. src/test/resources) and returns its contents as a UTF-8 string.
        Parameters:
        filename - the filename of the fixture file
        Returns:
        the contents of src/test/resources/{filename}
        Throws:
        IllegalArgumentException - if an I/O error occurs.