org.jnario.lib
Class ExampleTableIterators<T extends ExampleTableRow>

java.lang.Object
  extended by org.jnario.lib.ExampleTableIterators<T>

public class ExampleTableIterators<T extends ExampleTableRow>
extends Object

Author:
Sebastian Benz - Initial contribution and API

Constructor Summary
protected ExampleTableIterators(ExampleTable<T> table, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<T> assertion)
           
 
Method Summary
protected  void describeCause(String formatString, StringBuilder causes, int i, RowFailed result)
           
protected  void describeRow(String formatString, StringBuilder message, RowResult result)
           
static
<T extends ExampleTableRow>
void
forEach(ExampleTable<T> table, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<T> assertion)
          Performs an assertion on each row in an ExampleTable.
 void perform()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleTableIterators

protected ExampleTableIterators(ExampleTable<T> table,
                                org.eclipse.xtext.xbase.lib.Procedures.Procedure1<T> assertion)
Method Detail

forEach

public static <T extends ExampleTableRow> void forEach(ExampleTable<T> table,
                                                       org.eclipse.xtext.xbase.lib.Procedures.Procedure1<T> assertion)
Performs an assertion on each row in an ExampleTable. All failures are collected and merged into a readable representation.

Parameters:
table - a table with examples
assertion - a closure which performs an assertion on each row.

perform

public void perform()

describeRow

protected void describeRow(String formatString,
                           StringBuilder message,
                           RowResult result)

describeCause

protected void describeCause(String formatString,
                             StringBuilder causes,
                             int i,
                             RowFailed result)


Copyright © 2012-2013 BMW Car IT. All Rights Reserved.