/** * Description of the request that is expected to be received * * @param description request description */ public PactDslRequestWithPath uponReceiving(String description) { addInteraction(); return new PactDslRequestWithPath(consumerPactBuilder, request, description, defaultRequestValues, defaultResponseValues); }
/** * Description of the request that is expected to be received * * @param description request description */ public PactDslRequestWithPath uponReceiving(String description) { addInteraction(); return new PactDslRequestWithPath(consumerPactBuilder, request, description, defaultRequestValues, defaultResponseValues); }
/** * Terminates the DSL and builds a pact to represent the interactions */ public RequestResponsePact toPact() { addInteraction(); return new RequestResponsePact(request.provider, request.consumer, consumerPactBuilder.getInteractions()); }
/** * Terminates the DSL and builds a pact to represent the interactions */ public RequestResponsePact toPact() { addInteraction(); return new RequestResponsePact(request.provider, request.consumer, consumerPactBuilder.getInteractions()); }
/** * Terminates the DSL and builds a pact fragment to represent the interactions * * @deprecated Use toPact instead */ public PactFragment toFragment() { addInteraction(); return new PactFragment( request.consumer, request.provider, JavaConversions$.MODULE$.asScalaBuffer(consumerPactBuilder.getInteractions()).toSeq()); }
/** * Terminates the DSL and builds a pact fragment to represent the interactions * * @deprecated Use toPact instead */ public PactFragment toFragment() { addInteraction(); return new PactFragment( request.consumer, request.provider, JavaConversions$.MODULE$.asScalaBuffer(consumerPactBuilder.getInteractions()).toSeq()); }
/** * Adds a provider state to this interaction * @param state Description of the state * @param params Data parameters for this state */ public PactDslWithState given(String state, Map<String, Object> params) { addInteraction(); return new PactDslWithState(consumerPactBuilder, request.consumer.getName(), request.provider.getName(), new ProviderState(state, params), defaultRequestValues, defaultResponseValues); } }
/** * Adds a provider state to this interaction * @param state Description of the state */ public PactDslWithState given(String state) { addInteraction(); return new PactDslWithState(consumerPactBuilder, request.consumer.getName(), request.provider.getName(), new ProviderState(state), defaultRequestValues, defaultResponseValues); }
/** * Adds a provider state to this interaction * @param state Description of the state */ public PactDslWithState given(String state) { addInteraction(); return new PactDslWithState(consumerPactBuilder, request.consumer.getName(), request.provider.getName(), new ProviderState(state), defaultRequestValues, defaultResponseValues); }
/** * Adds a provider state to this interaction * @param state Description of the state * @param params Data parameters for this state */ public PactDslWithState given(String state, Map<String, Object> params) { addInteraction(); return new PactDslWithState(consumerPactBuilder, request.consumer.getName(), request.provider.getName(), new ProviderState(state, params), defaultRequestValues, defaultResponseValues); }