Ejemplo n.º 1
0
  private void shouldHaveParallelStepsInTheOrder(String... expected) {
    List<String> actual = new ArrayList<String>();

    for (Row row : t.getRows()) {
      ThreadNameAction a = row.getNode().getAction(ThreadNameAction.class);
      if (a != null) actual.add(a.getThreadName());
    }

    assertEquals(Arrays.asList(expected), actual);
  }
Ejemplo n.º 2
0
 private void shouldHaveSteps(Class<? extends StepDescriptor> d, int n) {
   int count = 0;
   for (Row row : t.getRows()) {
     if (row.getNode() instanceof StepAtomNode) {
       StepAtomNode a = (StepAtomNode) row.getNode();
       if (a.getDescriptor().getClass() == d) count++;
     }
   }
   assertEquals(d.getName(), n, count);
 }