@Test public void testMoreThanLatency() { sut = new LatencyConstraint(Duration.of(3, ChronoUnit.MICROS)); assertThat(sut.validate(path, resourceContext), is(false)); }
@Override public boolean validate(Path path, ResourceContext context) { return validate(path); }
LatencyConstraint implements Constraint { @Override public boolean validate(Path path, ResourceContext context) { return validate(path); } }
LatencyConstraint implements Constraint { @Override public boolean validate(Path path, ResourceContext context) { return validate(path); } LatencyConstraint(Duration latency); private  LatencyConstraint(); }
LatencyConstraint implements Constraint { @Override public boolean validate(Path path, ResourceContext context) { return validate(path); } LatencyConstraint(Duration latency); private  LatencyConstraint(); Duration latency(); @Override double cost(Link link, ResourceContext context); @Override boolean validate(Path path, ResourceContext context); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
LatencyConstraint implements Constraint { @Override public boolean validate(Path path, ResourceContext context) { return validate(path); } LatencyConstraint(Duration latency); private  LatencyConstraint(); Duration latency(); @Override double cost(Link link, ResourceContext context); @Override boolean validate(Path path, ResourceContext context); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }