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