Package org.springframework.xd.test.fixtures

Examples of org.springframework.xd.test.fixtures.AbstractMetricSink


*/
public class MetricExistsMatcher<T extends AbstractMetricSink> extends BaseMatcher<T> {

  @Override
  public boolean matches(Object item) {
    AbstractMetricSink metric = (AbstractMetricSink) item;
    Table table = (Table) metric.shell.executeCommand(metric.getDslName() + " list").getResult();
    return table.getRows().contains(new TableRow().addValue(1, metric.getName()));
  }
View Full Code Here


    description.appendText("an existing metric");
  }

  @Override
  public void describeMismatch(Object item, Description description) {
    AbstractMetricSink sink = (AbstractMetricSink) item;
    description.appendText(sink.getDslName()).appendText(" named '").appendText(sink.getName()).appendText(
        "' did not exist");
  }
View Full Code Here

TOP

Related Classes of org.springframework.xd.test.fixtures.AbstractMetricSink

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.