de.smartics.util.lang
Class StringFunctionToHyphenVersionTest

Package class diagram package StringFunctionToHyphenVersionTest
java.lang.Object
  extended by 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).


Constructor Summary
StringFunctionToHyphenVersionTest()
           
 
Method Summary
 void alsoWorksOnASingleCapitalLetter()
           
 void alsoWorksOnASingleLowerCaseLetter()
           
 void hyphensACapitalLetter()
           
 void hyphensMultipleCapitalLetter()
           
 void hyphenVersionOfAllLowerCaseInputIsUnmodified()
           
 void hyphenVersionOfFistLetterCapitalIsTransformedToAllLowerCase()
           
 void returnsNullIfNullIsPassedAsArgument()
           
 void returnsTheEmptyStringIfTheEmptyStringIsPassedAsArgument()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringFunctionToHyphenVersionTest

public StringFunctionToHyphenVersionTest()
Method Detail

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.