Class.getResource(String) to obtain a URL to the resource to use with
ObjectMapper.readValue(URL, Class)@Deprecated public class FixtureHelpers extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
fixture(String filename)
Deprecated.
Reads the given fixture file from the classpath (e.
|
public static String fixture(String filename)
src/test/resources)
and returns its contents as a UTF-8 string.filename - the filename of the fixture filesrc/test/resources/{filename}IllegalArgumentException - if an I/O error occurs.Copyright © 2011. All rights reserved.