public class ExpectedTuples
extends java.lang.Object
| Constructor and Description | 
|---|
| ExpectedTuples(com.ibm.streams.operator.StreamSchema schema)Create an initially empty ExpectedTuples. | 
| Modifier and Type | Method and Description | 
|---|---|
| ExpectedTuples | add(com.ibm.streams.operator.Tuple tuple)Add a tuple to expected list. | 
| ExpectedTuples | addAsTuple(java.lang.Object... values)Add a tuple to expected list. | 
| Condition<java.util.List<com.ibm.streams.operator.Tuple>> | contents(SPLStream stream)Create a condition for  streamhaving the tuplesgetTuples()in the same order. | 
| com.ibm.streams.operator.StreamSchema | getSchema()Get the schema of the tuples. | 
| java.util.List<com.ibm.streams.operator.Tuple> | getTuples()Get the expected tuples. | 
public ExpectedTuples(com.ibm.streams.operator.StreamSchema schema)
schema - public com.ibm.streams.operator.StreamSchema getSchema()
public java.util.List<com.ibm.streams.operator.Tuple> getTuples()
public ExpectedTuples add(com.ibm.streams.operator.Tuple tuple)
getSchema().tuple - Tuple to be added to expected list.public ExpectedTuples addAsTuple(java.lang.Object... values)
add(getSchema().getTuple(values))
 with the exception that if an attribute is
 of type rstring then a String object may be used.
 
 Calls can be chained together to add multiple tuples.
 For example with a schema of tuple<rstring id, int32 value>
 this may be used to add two tuples:
 
 
 ExpectedTuples expected = new ExpectedTuples(schema);
 
 expected.addAsTuple("a21", 33).addAsTuple("c43", 932);
 
 
 values - Attribute values for the tuple.public Condition<java.util.List<com.ibm.streams.operator.Tuple>> contents(SPLStream stream)
stream having the tuples
 getTuples() in the same order.
 stream.getSchema() must be equal to getSchema().stream - Stream the condition is for.stream has the same tuples as getTuples().Tester.tupleContents(SPLStream, Tuple...)