@Test public void invalidPathThrowsExceptionOnParse() { try { Fixture.parseFrom("invalid_path", parser); fail("should fail"); } catch (Exception e) { assertThat(e).hasMessage("Invalid path: fixtures/invalid_path.yaml"); } try { Fixture.parseFrom(null, parser); fail("should fail"); } catch (Exception e) { assertThat(e).hasMessage("File name should not be null"); } }
public static Fixture parseFrom(String fileName) { return parseFrom(fileName, new YamlParser()); }
Fixture { public static Fixture parseFrom(String fileName) { return parseFrom(fileName, new YamlParser()); } }
Fixture { public static Fixture parseFrom(String fileName) { return parseFrom(fileName, new YamlParser()); }  }
Fixture { public static Fixture parseFrom(String fileName) { return parseFrom(fileName, new YamlParser()); }  static Fixture parseFrom(String fileName); static Fixture parseFrom(String fileName, Parser parser); MockResponse toMockResponse(); }
Fixture { public static Fixture parseFrom(String fileName) { return parseFrom(fileName, new YamlParser()); }  static Fixture parseFrom(String fileName); static Fixture parseFrom(String fileName, Parser parser); MockResponse toMockResponse(); public int statusCode; public String body; public List<String> headers; public int delay; }