package com.daeliin.components.core.utils;

import static org.testng.Assert.assertEquals;
import org.testng.annotations.Test;

public class UrlFriendlyStringTest {

    @Test
    public void putsEveryCharactersToLowerCase() {
        assertEquals(new UrlFriendlyString("ThiS iS A TeST").value(), "this-is-a-test");
    }
    
    @Test
    public void replacesSpecialCharacters() {
        assertEquals(new UrlFriendlyString("test#ezt!a").value(), "testezta");
    }
    
    @Test
    public void replacesSpaces() {
        assertEquals(new UrlFriendlyString("this is a test").value(), "this-is-a-test");
    }
}

@@ -271,14 +271,11 @@
 ThiS
- 
 iS
- A 
+A
 TeST
@@ -283,38 +283,35 @@
 ).value(), %22this
--
 is
--a-
+a
 test%22);%0A    %7D%0A  
@@ -335,30 +335,29 @@
 public void 
-replac
+delet
 esSpecialCha
@@ -497,17 +497,24 @@
 cesSpace
-s
+WithDash
 () %7B%0A   

Improve UrlFriendlyStringTest method names