org.gcube.data.streams.test
Class Utils

java.lang.Object
  extended by 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()
           
 
Method Summary
static List<Object> elementsOf(Stream<?> stream)
          Returns the elements of a Stream as a List, including failures.
static void validateWith(StreamProvider provider)
          Applies a set of sets to test a stream respects the constraints defined by the interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

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.