de.smartics.util.lang
Class StringFunctionToHyphenVersionTest
java.lang.Object
de.smartics.util.lang.StringFunctionToHyphenVersionTest
-
@Uut(type=de.smartics.util.lang.StringFunction.class,
method="toHyphenVersion(String)")
public class StringFunctionToHyphenVersionTest
-
extends
Object
Tests StringFunction.toHyphenVersion(String)
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringFunctionToHyphenVersionTest
public StringFunctionToHyphenVersionTest()
returnsNullIfNullIsPassedAsArgument
@TestDocHint(sentence="toHyphenVersion: null -> null",
indexSortKey="001")
public void returnsNullIfNullIsPassedAsArgument()
-
returnsTheEmptyStringIfTheEmptyStringIsPassedAsArgument
@TestDocHint(sentence="toHyphenVersion: \"\" -> \"\"",
indexSortKey="002")
public void returnsTheEmptyStringIfTheEmptyStringIsPassedAsArgument()
-
hyphenVersionOfAllLowerCaseInputIsUnmodified
@TestDocHint(sentence="toHyphenVersion: \"abc\" -> \"abc\"",
indexSortKey="003")
public void hyphenVersionOfAllLowerCaseInputIsUnmodified()
-
hyphenVersionOfFistLetterCapitalIsTransformedToAllLowerCase
@TestDocHint(sentence="toHyphenVersion: \"Abc\" -> \"abc\"",
indexSortKey="004")
public void hyphenVersionOfFistLetterCapitalIsTransformedToAllLowerCase()
-
alsoWorksOnASingleLowerCaseLetter
@TestDocHint(sentence="toHyphenVersion: \"a\" -> \"a\"",
indexSortKey="005")
public void alsoWorksOnASingleLowerCaseLetter()
-
alsoWorksOnASingleCapitalLetter
@TestDocHint(sentence="toHyphenVersion: \"A\" -> \"a\"",
indexSortKey="006")
public void alsoWorksOnASingleCapitalLetter()
-
hyphensACapitalLetter
@TestDocHint(sentence="toHyphenVersion: \"aBc\" -> \"a-bc\"",
indexSortKey="010")
public void hyphensACapitalLetter()
-
hyphensMultipleCapitalLetter
@TestDocHint(sentence="toHyphenVersion: \"thisIsACamleCaseExample\" -> \"this-is-a-camle-case-example\"",
indexSortKey="011")
public void hyphensMultipleCapitalLetter()
-
Copyright © 2011-2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.