Enum TextSnapshot.DiffFormat
- java.lang.Object
-
- java.lang.Enum<TextSnapshot.DiffFormat>
-
- de.skuzzle.test.snapshots.data.text.TextSnapshot.DiffFormat
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TextSnapshot.DiffFormat>
- Enclosing class:
- TextSnapshot
@API(status=EXPERIMENTAL, since="1.7.0") public static enum TextSnapshot.DiffFormat extends java.lang.Enum<TextSnapshot.DiffFormat>Format in which diffs will be rendered within assertion failure messages.- Since:
- 1.7.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SPLITRender diff in split view format, where the lines from the expected and actual result will be printed side by side.UNIFIEDRender diffs in unified format, where changes are displayed line by line and lines from expected and actual results are printed interleaved.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TextSnapshot.DiffFormatvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TextSnapshot.DiffFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNIFIED
public static final TextSnapshot.DiffFormat UNIFIED
Render diffs in unified format, where changes are displayed line by line and lines from expected and actual results are printed interleaved.
-
SPLIT
public static final TextSnapshot.DiffFormat SPLIT
Render diff in split view format, where the lines from the expected and actual result will be printed side by side.
-
-
Method Detail
-
values
public static TextSnapshot.DiffFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TextSnapshot.DiffFormat c : TextSnapshot.DiffFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextSnapshot.DiffFormat valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-