org.unitils.reflectionassert.util
Class InnerDifferenceFinder

java.lang.Object
  extended by org.unitils.reflectionassert.util.InnerDifferenceFinder

public class InnerDifferenceFinder
extends Object

A utility class to get the difference at the given element/field/key.

Author:
Tim Ducheyne, Filip Neven

Nested Class Summary
protected static class InnerDifferenceFinder.InnerDifferenceVisitor
          The visitor for visiting the difference tree.
 
Constructor Summary
InnerDifferenceFinder()
           
 
Method Summary
static Difference getInnerDifference(String fieldName, Difference difference)
          Gets the difference at the given element/field/key (depending on the type of the given difference)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InnerDifferenceFinder

public InnerDifferenceFinder()
Method Detail

getInnerDifference

public static Difference getInnerDifference(String fieldName,
                                            Difference difference)
Gets the difference at the given element/field/key (depending on the type of the given difference)

Parameters:
fieldName - The name of the element/field/key
difference - The difference, not null
Returns:
The difference, null if there is no difference


Copyright © 2011. All Rights Reserved.