@Override protected List<Interaction> getChildren() { final Seq<Interaction> interactions = pactToVerify.interactions(); return JavaConverters.seqAsJavaListConverter(interactions).asJava(); }
@Override protected Description describeChild(Interaction interaction) { return Description.createTestDescription( pactToVerify.consumer().name(), interaction.description()); }
private static Pact readPactDefinitionFor(Class<?> klass) { final String pactFile = getPactFileLocation(klass); final String pactFileContent = readFileContents(pactFile); return Pact.from(pactFileContent); }