Package de.skuzzle.test.snapshots
Enum SnapshotTestOptions.NormalizeLineEndings
- java.lang.Object
-
- java.lang.Enum<SnapshotTestOptions.NormalizeLineEndings>
-
- de.skuzzle.test.snapshots.SnapshotTestOptions.NormalizeLineEndings
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SnapshotTestOptions.NormalizeLineEndings>
- Enclosing class:
- SnapshotTestOptions
@API(since="1.1.0", status=EXPERIMENTAL) public static enum SnapshotTestOptions.NormalizeLineEndings extends java.lang.Enum<SnapshotTestOptions.NormalizeLineEndings>Defines how and if line endings will be normalized after snapshot serialization. Normalization happens before invoking theStructuralAssertions.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CRLFAll line endings will be converted to CRLF (\r\n).GITLine endings will be converted according to the local git'score.autocrlfandcore.eolsettings.LFAll line endings will be converted to LF (\n).NEVERLine endings will not be normalized.SYSTEMAll line endings will be converted to the system's default line separator.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SnapshotTestOptions.NormalizeLineEndingsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SnapshotTestOptions.NormalizeLineEndings[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEVER
public static final SnapshotTestOptions.NormalizeLineEndings NEVER
Line endings will not be normalized. Use this settings if line endings are significant for the test outcome.
-
LF
public static final SnapshotTestOptions.NormalizeLineEndings LF
All line endings will be converted to LF (\n).
-
CRLF
public static final SnapshotTestOptions.NormalizeLineEndings CRLF
All line endings will be converted to CRLF (\r\n).
-
SYSTEM
public static final SnapshotTestOptions.NormalizeLineEndings SYSTEM
All line endings will be converted to the system's default line separator.
-
GIT
public static final SnapshotTestOptions.NormalizeLineEndings GIT
Line endings will be converted according to the local git'score.autocrlfandcore.eolsettings. Will fall back to the system's default line separator if git config values can not be determined.
-
-
Method Detail
-
values
public static SnapshotTestOptions.NormalizeLineEndings[] 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 (SnapshotTestOptions.NormalizeLineEndings c : SnapshotTestOptions.NormalizeLineEndings.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SnapshotTestOptions.NormalizeLineEndings 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
-
-