类 org.test4j.hamcrest.matcher.property.difference.ObjectDifference
的使用

使用 ObjectDifference 的软件包
org.test4j.hamcrest.matcher.property.comparator   
org.test4j.hamcrest.matcher.property.difference   
org.test4j.hamcrest.matcher.property.reflection   
org.test4j.hamcrest.matcher.property.report   
 

org.test4j.hamcrest.matcher.property.comparatorObjectDifference 的使用
 

参数类型为 ObjectDifferenceorg.test4j.hamcrest.matcher.property.comparator 中的方法
protected  void ObjectComparator.compareFields(Object left, Object right, Class clazz, ObjectDifference difference, boolean onlyFirstDifference, ReflectionComparator reflectionComparator)
          Compares the values of all fields in the given objects by use of reflection.
 

org.test4j.hamcrest.matcher.property.differenceObjectDifference 的使用
 

参数类型为 ObjectDifferenceorg.test4j.hamcrest.matcher.property.difference 中的方法
 T DifferenceVisitor.visit(ObjectDifference objectDifference, A argument)
          Visits an object difference.
 

org.test4j.hamcrest.matcher.property.reflectionObjectDifference 的使用
 

参数类型为 ObjectDifferenceorg.test4j.hamcrest.matcher.property.reflection 中的方法
protected  int MatchingScoreCalculator.getMatchingScore(ObjectDifference objectDifference)
          Gets the matching score for an object difference.
 Integer MatchingScoreCalculator.MatchingScoreVisitor.visit(ObjectDifference objectDifference, Integer argument)
           
 Difference InnerDifferenceFinder.InnerDifferenceVisitor.visit(ObjectDifference objectDifference, String fieldName)
          Returns the difference at the field with the given name.
 

org.test4j.hamcrest.matcher.property.reportObjectDifference 的使用
 

参数类型为 ObjectDifferenceorg.test4j.hamcrest.matcher.property.report 中的方法
protected  String TreeDifferenceView.formatDifference(ObjectDifference objectDifference, String fieldName)
          Creates a string representation of an object difference.
protected  String DefaultDifferenceView.formatDifference(ObjectDifference objectDifference, String fieldName)
          Creates a string representation of an object difference.
 String TreeDifferenceView.TreeDifferenceFormatterVisitor.visit(ObjectDifference objectDifference, String fieldName)
           
 String DefaultDifferenceView.DifferenceFormatterVisitor.visit(ObjectDifference objectDifference, String fieldName)
           
 



Copyright © 2013. All rights reserved.