org.jnario.lib
Class Each
java.lang.Object
org.jnario.lib.Each
public class Each
- extends Object
Extension methods to perform assertions on Iterable, Collection and ExampleTable.
- Author:
- Sebastian Benz - Initial contribution and API
|
Constructor Summary |
Each()
|
|
Method Summary |
static
|
forEach(ExampleTable<T> table,
org.eclipse.xtext.xbase.lib.Procedures.Procedure1<T> assertion)
Performs an assertion on each row in an ExampleTable. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Each
public Each()
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 examplesassertion - a closure which performs an assertion on each row.
Copyright © 2012-2013 BMW Car IT. All Rights Reserved.