Merge branch '1.3.x'

This commit is contained in:
Stephane Nicoll
2016-06-27 12:08:04 +02:00
3 changed files with 45 additions and 19 deletions

View File

@@ -32,6 +32,16 @@ public class ConfigurationMetadataTests {
assertThat(toDashedCase("simpleCamelCase")).isEqualTo("simple-camel-case");
}
@Test
public void toDashedCaseUpperCamelCaseSuffix() {
assertThat(toDashedCase("myDLQ"), is("my-d-l-q"));
}
@Test
public void toDashedCaseUpperCamelCaseMiddle() {
assertThat(toDashedCase("someDLQKey"), is("some-d-l-q-key"));
}
@Test
public void toDashedCaseWordsUnderscore() {
assertThat(toDashedCase("Word_With_underscore"))
@@ -62,6 +72,8 @@ public class ConfigurationMetadataTests {
@Test
public void toDashedCaseUppercase() {
assertThat(toDashedCase("UPPERCASE")).isEqualTo("uppercase");
public void toDashedCaseMultipleUnderscores() {
assertThat(toDashedCase("super___crazy"), is("super---crazy"));
}
@Test