org.specrunner.util.xom.core
Class PresentationCompare

java.lang.Object
  extended by org.specrunner.util.xom.core.PresentationCompare
All Implemented Interfaces:
IPresentation

public class PresentationCompare
extends Object
implements IPresentation

Presents two objects with their types.

Author:
Thiago Santos

Constructor Summary
PresentationCompare(Object expected, Object received)
          Create a detail comparison object.
 
Method Summary
 nu.xom.Node asNode()
          The object representation as node.
 String asString()
          The object representation as string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PresentationCompare

public PresentationCompare(Object expected,
                           Object received)
Create a detail comparison object.

Parameters:
expected - The expected object.
received - The received object.
Method Detail

asString

public String asString()
Description copied from interface: IPresentation
The object representation as string.

Specified by:
asString in interface IPresentation
Returns:
String representation.

asNode

public nu.xom.Node asNode()
Description copied from interface: IPresentation
The object representation as node.

Specified by:
asNode in interface IPresentation
Returns:
Node representation.


Copyright © 2014. All rights reserved.