public class IteratorTestOutput extends Object
IteratorTestCase on a IteratorTestInput. The
output will be either a SortedMap of Keys and Values or an exception but never both. If
one of these members is null, the other is guaranteed to be non-null.| Modifier and Type | Class and Description |
|---|---|
static class |
IteratorTestOutput.TestOutcome
An outcome about what happened during a test case.
|
| Constructor and Description |
|---|
IteratorTestOutput(Exception e) |
IteratorTestOutput(IteratorTestOutput.TestOutcome outcome) |
IteratorTestOutput(SortedMap<Key,Value> output)
Create an instance of the class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Exception |
getException()
Returns the exception thrown by the iterator.
|
SortedMap<Key,Value> |
getOutput()
Returns the output from the iterator.
|
IteratorTestOutput.TestOutcome |
getTestOutcome() |
boolean |
hasException() |
int |
hashCode() |
boolean |
hasOutput() |
String |
toString() |
public IteratorTestOutput(IteratorTestOutput.TestOutcome outcome)
public IteratorTestOutput(SortedMap<Key,Value> output)
output - The sorted collection of Key-Value pairs generated by an Iterator.public IteratorTestOutput(Exception e)
public IteratorTestOutput.TestOutcome getTestOutcome()
public SortedMap<Key,Value> getOutput()
public boolean hasOutput()
public Exception getException()
public boolean hasException()
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.