Switched to use StringUtils for un/captitalize
This commit is contained in:
parent
79cbf76761
commit
538a8d35ae
4 changed files with 11 additions and 47 deletions
|
@ -35,12 +35,6 @@ class TestRenderUtils {
|
|||
.isEqualTo(TestCase.SAMPLE_TEXT);
|
||||
}
|
||||
|
||||
@Test
|
||||
void testCapitalize() {
|
||||
assertThat(RenderUtils.capitalize("a")).isEqualTo("A");
|
||||
assertThat(RenderUtils.capitalize("")).as("empty").isEqualTo("");
|
||||
}
|
||||
|
||||
@Test
|
||||
void testHtmlEntities() {
|
||||
assertThat(RenderUtils.htmlEntities(SAMPLE_GERMAN))
|
||||
|
@ -78,12 +72,6 @@ class TestRenderUtils {
|
|||
assertThat(RenderUtils.swapCase(SAMPLE_GERMAN)).isEqualTo("mÖCHTEN sIE EIN PAAR äPFEL?");
|
||||
}
|
||||
|
||||
@Test
|
||||
void testUcapitalize() {
|
||||
assertThat(RenderUtils.uncapitalize("A")).isEqualTo("a");
|
||||
assertThat(RenderUtils.uncapitalize("")).as("empty").isEqualTo("");
|
||||
}
|
||||
|
||||
@Test
|
||||
void testValidateCreditCard() {
|
||||
assertThat(RenderUtils.validateCreditCard("4505 4672 3366 6430")).as("visa").isTrue();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue