Class XMLStreamReaderComparator


  • public class XMLStreamReaderComparator
    extends junit.framework.Assert
    Helper class that compares the events produced by two XMLStreamReader objects. Note that this class is not meant to be used to compare two XML documents (the error reporting would not be clear enough for that purpose), but to validate implementations of the XMLStreamReader interface. It uses a brute force approach: for each event, all methods (that don't modify the reader state) are called on both readers and the results (return values or exceptions thrown) of these invocations are compared to each other.