Package 

Class DescriptionGenerator

    • Constructor Summary

      Constructors 
      Constructor Description
      DescriptionGenerator(TestClass testClass, Pact pact, PactSource pactSource, String consumerName)
    • Method Summary

      Modifier and Type Method Description
      final Description generate(Interaction interaction) Builds an instance of junit Description adhering with this logic for building the name: If the PactSource is of type <code>BrokerUrlSource</code> and its tag is not empty then the test name will be "#consumername tag:#tagname - Upon #interaction".
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DescriptionGenerator

        DescriptionGenerator(TestClass testClass, Pact pact, PactSource pactSource, String consumerName)
    • Method Detail

      • generate

         final Description generate(Interaction interaction)

        Builds an instance of junit Description adhering with this logic for building the name: If the PactSource is of type <code>BrokerUrlSource</code> and its tag is not empty then the test name will be "#consumername tag:#tagname - Upon #interaction". For all the other cases "#consumername - Upon #interaction"

        Parameters:
        interaction - the Interaction under test