-
public final class DescriptionGenerator
Class responsible for building junit tests Description.
-
-
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". -
-
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
-
-
-
-