package Ġcom . yel p . codegen Ċ Ċ import Ġcom . yel p . codegen . utils . red Ċ import Ġcom . yel p . codegen . utils . safe Suffix Ċ import Ġcom . yel p . codegen . utils . to Camel Case Ċ import Ġcom . yel p . codegen . utils . to Pas cal Case Ċ import Ġorg . junit . Assert . assertEquals Ċ import Ġorg . junit . Test Ċ Ċ class ĠStringUtils Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġto Camel Case _ with No Separator () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals (" hello World ", Ġ" hello World ". to Camel Case ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġto Camel Case _ with UpperCase String () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals (" HelloWorld ", Ġ" HelloWorld ". to Camel Case ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġto Camel Case _ with Un ders core () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals (" hello World ", Ġ" hello _ world ". to Camel Case ()) ĊĠĠĠĠĠĠĠ ĠassertEquals (" follow The White Rabbit ", Ġ" follow _ the _ white _ rabbit ". to Camel Case ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġto Camel Case _ with Space () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals (" hello World ", Ġ" hello Ġworld ". to Camel Case ()) ĊĠĠĠĠĠĠĠ ĠassertEquals (" follow The White Rabbit ", Ġ" follow Ġthe Ġwhite Ġrabbit ". to Camel Case ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġto Pas cal Case _ with No Separator () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals (" HelloWorld ", Ġ" hello World ". to Pas cal Case ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġto Pas cal Case _ with UpperCase String () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals (" HelloWorld ", Ġ" HelloWorld ". to Pas cal Case ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġto Pas cal Case _ with Un ders core () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals (" HelloWorld ", Ġ" hello _ world ". to Pas cal Case ()) ĊĠĠĠĠĠĠĠ ĠassertEquals (" Follow The White Rabbit ", Ġ" follow _ the _ white _ rabbit ". to Pas cal Case ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġto Pas cal Case _ with Space () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals (" HelloWorld ", Ġ" hello Ġworld ". to Pas cal Case ()) ĊĠĠĠĠĠĠĠ ĠassertEquals (" Follow The White Rabbit ", Ġ" follow Ġthe Ġwhite Ġrabbit ". to Pas cal Case ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġsafe Suffix _ adds Suffix () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals (" String ?", Ġ" String ". safe Suffix (" ? ")) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġsafe Suffix _ with Suffix Already Present _ does Not Add Suffix () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals (" String ?", Ġ" String ? ". safe Suffix (" ? ")) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġred () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals ("\ u 0 0 1 B [ 3 1 m HelloWorld \ u 0 0 1 B [ 0 m ", Ġ" HelloWorld ". red ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġred _ with EmptyString () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals ("\ u 0 0 1 B [ 3 1 m \ u 0 0 1 B [ 0 m ", Ġ"". red ()) ĊĠĠĠ Ġ} Ċ } Ċ