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