1 package com.griddynamics.jagger.engine.e1.collector;
3 import com.griddynamics.jagger.coordinator.NodeContext;
4 import com.griddynamics.jagger.invoker.v2.JHttpEndpoint;
5 import com.griddynamics.jagger.invoker.v2.JHttpQuery;
6 import com.griddynamics.jagger.invoker.v2.JHttpResponse;
7 import org.springframework.http.HttpStatus;
9 import java.util.Objects;
22 private final String someValue;
30 NodeContext kernelContext) {
35 public String getName() {
36 return "Example response validator";
41 public boolean validate(JHttpQuery query,
JHttpEndpoint endpoint, JHttpResponse result,
long duration) {
42 if (Objects.equals(someValue,
"we are always good")) {
45 return result.getStatus() == HttpStatus.OK;