|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.test4j.hamcrest.matcher.property.report.TreeDifferenceView
public class TreeDifferenceView
Formatter that will output all objects in the difference tree. For an unordered collection difference, the best matching differences are taken.
| 嵌套类摘要 | |
|---|---|
protected class |
TreeDifferenceView.TreeDifferenceFormatterVisitor
The visitor for visiting the difference tree. |
| 字段摘要 | |
|---|---|
protected ObjectFormatter |
objectFormatter
Formatter for object values. |
protected TreeDifferenceView.TreeDifferenceFormatterVisitor |
treeDifferenceFormatterVisitor
The visitor for visiting the difference tree |
| 构造方法摘要 | |
|---|---|
TreeDifferenceView()
|
|
| 方法摘要 | |
|---|---|
protected String |
createFieldName(String fieldName,
String innerFieldName,
boolean includePoint)
Adds the inner field name to the given field name. |
String |
createView(Difference difference)
Creates a string representation of the given difference tree. |
protected String |
formatDifference(ClassDifference classDifference,
String fieldName)
|
protected String |
formatDifference(CollectionDifference collectionDifference,
String fieldName)
Creates a string representation of a collection difference. |
protected String |
formatDifference(Difference difference,
String fieldName)
Creates a string representation of a simple difference. |
protected String |
formatDifference(MapDifference mapDifference,
String fieldName)
Creates a string representation of a map difference. |
protected String |
formatDifference(ObjectDifference objectDifference,
String fieldName)
Creates a string representation of an object difference. |
protected String |
formatDifference(UnorderedCollectionDifference unorderedCollectionDifference,
String fieldName)
Creates a string representation of an unorder collection difference. |
protected String |
formatObject(Object object)
|
protected String |
formatValues(String fieldName,
Object expectedValue,
Object actualValue)
Formats and appends the given fieldname and object values. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
protected ObjectFormatter objectFormatter
protected TreeDifferenceView.TreeDifferenceFormatterVisitor treeDifferenceFormatterVisitor
| 构造方法详细信息 |
|---|
public TreeDifferenceView()
| 方法详细信息 |
|---|
public String createView(Difference difference)
DifferenceView 中的 createViewdifference - The root difference, not null
protected String formatDifference(Difference difference,
String fieldName)
difference - The difference, not nullfieldName - The current fieldName, null for root
protected String formatDifference(ObjectDifference objectDifference,
String fieldName)
objectDifference - The difference, not nullfieldName - The current fieldName, null for root
protected String formatDifference(ClassDifference classDifference,
String fieldName)
protected String formatDifference(CollectionDifference collectionDifference,
String fieldName)
collectionDifference - The difference, not nullfieldName - The current fieldName, null for root
protected String formatDifference(MapDifference mapDifference,
String fieldName)
mapDifference - The difference, not nullfieldName - The current fieldName, null for root
protected String formatObject(Object object)
protected String formatDifference(UnorderedCollectionDifference unorderedCollectionDifference,
String fieldName)
unorderedCollectionDifference - The difference, not nullfieldName - The current fieldName, null for root
protected String formatValues(String fieldName,
Object expectedValue,
Object actualValue)
fieldName - The field name, null if there is no field nameexpectedValue - The left valueactualValue - The right value
protected String createFieldName(String fieldName,
String innerFieldName,
boolean includePoint)
fieldName - The fieldinnerFieldName - The field to append, not nullincludePoint - True if a point should be added
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||