Methods Summary |
---|
public void | testAcronyms1()
final ParamNameMapper m = new ParamNameMapper();
assertEquals( "ssl_algorithm", m.mangleAttributeName( "SSLAlgorithm" ) );
|
public void | testAcronyms2()
final ParamNameMapper m = new ParamNameMapper();
assertEquals( "ssl_algorithm_enabled_today",
m.mangleAttributeName( "SSLAlgorithmEnabledToday" ) );
|
public void | testAcronyms3()
final ParamNameMapper m = new ParamNameMapper();
assertEquals( "ssl-tls-http-jndi_algorithm",
m.mangleAttributeName( "SSL-TLS-HTTP-JNDIAlgorithm" ) );
|
public void | testCreate()
final ParamNameMapper m = new ParamNameMapper();
|
public void | testEmpty()
final ParamNameMapper m = new ParamNameMapper();
assertEquals( "", m.mangleAttributeName( "" ) );
|
public void | testMultipleLowerCaseWords()
final ParamNameMapper m = new ParamNameMapper();
assertEquals( "hello-there-you", m.mangleAttributeName( "hello-there-you" ) );
|
public void | testMultipleUpperCaseWords()
final ParamNameMapper m = new ParamNameMapper();
assertEquals( "hello_there_you", m.mangleAttributeName( "HelloThereYou" ) );
|
public void | testOverrides()
final Map<String,String> overrides = MapUtil.newMap(
new String[]
{
"SSLTLS", "ssl_tls",
"GOOFY", "THECLOWN",
}
);
final ParamNameMapper m = new ParamNameMapper( overrides );
assertEquals( "ssl_tls", m.mangleAttributeName( "SSLTLS" ) );
assertEquals( "THECLOWN", m.mangleAttributeName( "GOOFY" ) );
|
public void | testSingleAllUpperCaseWord()
final ParamNameMapper m = new ParamNameMapper();
assertEquals( "hello", m.mangleAttributeName( "HELLO" ) );
|
public void | testSingleLowerCaseLetter()
final ParamNameMapper m = new ParamNameMapper();
assertEquals( "x", m.mangleAttributeName( "x" ) );
|
public void | testSingleLowerCaseWord()
final ParamNameMapper m = new ParamNameMapper();
assertEquals( "hello", m.mangleAttributeName( "hello" ) );
assertEquals( "hello_there", m.mangleAttributeName( "hello_there" ) );
|
public void | testSingleUpperCaseLetter()
final ParamNameMapper m = new ParamNameMapper();
assertEquals( "x", m.mangleAttributeName( "X" ) );
|
public void | testSingleUpperCaseWord()
final ParamNameMapper m = new ParamNameMapper();
assertEquals( "hello", m.mangleAttributeName( "Hello" ) );
|