1 package com.griddynamics.jagger.user.test.configurations;
3 import com.griddynamics.jagger.engine.e1.collector.ResponseValidator;
4 import com.griddynamics.jagger.invoker.Invoker;
5 import com.griddynamics.jagger.invoker.v2.DefaultHttpInvoker;
6 import com.griddynamics.jagger.user.test.configurations.auxiliary.Id;
8 import java.util.Collections;
28 private final String id;
29 private final Iterable endpoints;
31 private String comment;
32 private Iterable queries;
33 private Class<? extends Invoker> invoker;
34 private List<Class<? extends ResponseValidator>> validators;
37 this.
id = builder.id.
value();
38 this.endpoints = builder.endpointsProvider;
40 this.comment = builder.comment;
41 if (this.comment == null) {
44 this.queries = builder.queries;
45 this.invoker = builder.invoker;
46 this.validators = builder.validators;
57 return new Builder(
id, endpointsProvider);
62 private final Iterable endpointsProvider;
64 private String comment =
"";
65 private Iterable queries;
67 private List<Class<? extends ResponseValidator>> validators = Collections.emptyList();
69 private Builder(
Id id, Iterable endpointsProvider) {
71 this.endpointsProvider = endpointsProvider;
79 this.comment = comment;
90 this.queries = queryProvider;
104 this.invoker = invoker;
118 this.validators = validators;