@Test public void should_prefer_custom_yaml_converter_over_standard() { StubRepository repository = new StubRepository(YAML_REPOSITORY_LOCATION, new ArrayList<>(), new StubRunnerOptionsBuilder().build()); int expectedDescriptorsSize = 1; Collection<Contract> descriptors = repository.getContracts(); BDDAssertions.then(descriptors).hasSize(expectedDescriptorsSize); }
public Collection<Contract> getContracts() { return this.contracts; }
StubRepository { public Collection<Contract> getContracts() { return this.contracts; } }
StubRepository { public Collection<Contract> getContracts() { return this.contracts; } StubRepository(File repository, List<HttpServerStub> httpServerStubs, StubRunnerOptions options);   StubRepository(File repository); }
StubRepository { public Collection<Contract> getContracts() { return this.contracts; } StubRepository(File repository, List<HttpServerStub> httpServerStubs, StubRunnerOptions options);   StubRepository(File repository); File getPath(); List<File> getStubs(); Collection<Contract> getContracts(); }
StubRepository { public Collection<Contract> getContracts() { return this.contracts; } StubRepository(File repository, List<HttpServerStub> httpServerStubs, StubRunnerOptions options);   StubRepository(File repository); File getPath(); List<File> getStubs(); Collection<Contract> getContracts();  }