Package org.springframework.xd.shell.command.fixtures

Examples of org.springframework.xd.shell.command.fixtures.FieldValueCounterSink


  @Test
  public void testFieldValueCounterList() throws Exception {
    TailSource tailSource = newTailSource();
    tailTweets(tailSource);

    FieldValueCounterSink sink = metrics().newFieldValueCounterSink("fromUser");

    stream().create(generateStreamName(), "%s | %s", tailSource, sink);
    assertThat(sink, eventually(exists()));
  }
View Full Code Here


    fvcMap.put("BestNoSQL", 1d);
    fvcMap.put("SpringSource", 2d);
    TailSource tailSource = newTailSource();
    tailTweets(tailSource);

    FieldValueCounterSink sink = metrics().newFieldValueCounterSink("fromUser");
    stream().create(generateStreamName(), "%s | %s", tailSource, sink);

    Table t = sink.constructFVCDisplay(fvcMap);
    assertThat(sink, eventually(hasValue(t)));
  }
View Full Code Here

  public RichGaugeSink newRichGauge() {
    return remember(new RichGaugeSink(shell, randomName()));
  }

  public FieldValueCounterSink newFieldValueCounterSink(String name, String fieldName) {
    return remember(new FieldValueCounterSink(shell, name, fieldName));
  }
View Full Code Here

  public FieldValueCounterSink newFieldValueCounterSink(String name, String fieldName) {
    return remember(new FieldValueCounterSink(shell, name, fieldName));
  }

  public FieldValueCounterSink newFieldValueCounterSink(String fieldName) {
    return remember(new FieldValueCounterSink(shell, randomName(), fieldName));
  }
View Full Code Here

TOP

Related Classes of org.springframework.xd.shell.command.fixtures.FieldValueCounterSink

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.