org.unitils.reflectionassert.report.impl
Class SimpleDifferenceView

java.lang.Object
  extended by org.unitils.reflectionassert.report.impl.SimpleDifferenceView
All Implemented Interfaces:
DifferenceView

public class SimpleDifferenceView
extends java.lang.Object
implements DifferenceView

Author:
Filip Neven

Constructor Summary
SimpleDifferenceView()
           
 
Method Summary
 java.lang.String createView(Difference difference)
          Creates a string representation of the given difference tree.
protected  java.lang.String formatOnOneLine(java.lang.String expectedStr, java.lang.String actualStr)
           
protected  java.lang.String formatOnTwoLines(java.lang.String expectedStr, java.lang.String actualStr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDifferenceView

public SimpleDifferenceView()
Method Detail

createView

public java.lang.String createView(Difference difference)
Creates a string representation of the given difference tree.

Specified by:
createView in interface DifferenceView
Parameters:
difference - The root difference, not null
Returns:
The string representation, not null

formatOnOneLine

protected java.lang.String formatOnOneLine(java.lang.String expectedStr,
                                           java.lang.String actualStr)

formatOnTwoLines

protected java.lang.String formatOnTwoLines(java.lang.String expectedStr,
                                            java.lang.String actualStr)


Copyright © 2009. All Rights Reserved.