Package de.hsh.graja.modules.junit.api
Class NormalizerRuleTrimMaxLeadingSpacePerLine
java.lang.Object
student.testingsupport.StringNormalizer.NormalizerRule
de.hsh.graja.modules.junit.api.NormalizerRuleTrimMaxLeadingSpacePerLine
A string normalizer for string comparisons that should ignore differences that result
from different but uniform indentation level.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NormalizerRuleTrimMaxLeadingSpacePerLine
public NormalizerRuleTrimMaxLeadingSpacePerLine()
-
-
Method Details
-
normalize
perform the normalization by removing a maximum number of columns from indentation.- Specified by:
normalizein classStringNormalizer.NormalizerRule- Parameters:
content- The string to normalize- Returns:
- The normalized result
-
displayName
Description copied from class:StringNormalizer.NormalizerRuleHuman readable name of the rule- Specified by:
displayNamein classStringNormalizer.NormalizerRule- Returns:
- the text "remove uniform indentation"
-
hashCode
public int hashCode()- Specified by:
hashCodein classStringNormalizer.NormalizerRule- Returns:
- a constant hash code since all instances of this class are equal
-
equals
- Specified by:
equalsin classStringNormalizer.NormalizerRule- Parameters:
obj- another object- Returns:
- true, if
objandthisare of typeNormalizerRuleTrimMaxLeadingSpacePerLine.
-