Package io.dropwizard.testing
Class FixtureHelpers
- java.lang.Object
-
- io.dropwizard.testing.FixtureHelpers
-
public class FixtureHelpers extends Object
A set of helper method for fixture files.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringfixture(String filename)Reads the given fixture file from the classpath (e. g.
-
-
-
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.
-
-