org.gcube.data.streams.test
Class Utils
java.lang.Object
org.gcube.data.streams.test.Utils
public class Utils
- extends Object
Collection of test facilities to validate Stream implementation and their usage.
- Author:
- Fabio Simeoni
|
Constructor Summary |
Utils()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
elementsOf
public static List<Object> elementsOf(Stream<?> stream)
- Returns the elements of a
Stream as a List, including failures.
- Parameters:
stream - the stream
- Returns:
- the elements
validateWith
public static void validateWith(StreamProvider provider)
- Applies a set of sets to test a stream respects the constraints defined by the interface.
- Parameters:
provider - a StreamProvider that repeatedly provides the stream to test
Copyright © 2012. All Rights Reserved.