Esempio n. 1
0
  @Test
  public void shouldEmitFirstFieldOfTuple() {
    bolt.execute(tuple, collector);

    verify(tuple, times(1)).getValue(0);
    verify(collector, times(1)).emit(any(Values.class));
  }
Esempio n. 2
0
  @Test
  public void shouldDeclareOutputFields() {
    bolt.declareOutputFields(declarer);

    verify(declarer, times(1)).declare(any(Fields.class));
  }