@@ -0,0 +1,2117 @@
+package ip.cl.clipapp.service.impl;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.equalTo;%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.hamcrest.Matchers.nullValue;%0Aimport ip.cl.clipapp.Application;%0Aimport ip.cl.clipapp.service.LookupUrlService;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.SpringApplicationConfiguration;%0Aimport org.springframework.test.annotation.DirtiesContext;%0Aimport org.springframework.test.annotation.DirtiesContext.ClassMode;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0A%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@SpringApplicationConfiguration(classes = Application.class)%0A@DirtiesContext(classMode = ClassMode.AFTER_EACH_TEST_METHOD)%0Apublic class SimpleLookupUrlServiceImplTest %7B%0A%0A    private static final String GOOGLE_COM       = %22http://www.google.com%22;%0A    private static final String GOOGLE_COM_SHORT = %22b%22;%0A    private static final String GOOGLE_CA        = %22http://www.google.ca%22;%0A    private static final String GOOGLE_CA_SHORT  = %22c%22;%0A%0A    @Autowired%0A    private LookupUrlService    lookupUrlService;%0A%0A    @Test%0A    public void getOrAddLongUrl() %7B%0A        assertThat(lookupUrlService.getOrAddLongUrl(GOOGLE_COM), equalTo(GOOGLE_COM_SHORT));%0A        assertThat(lookupUrlService.getOrAddLongUrl(GOOGLE_CA), equalTo(GOOGLE_CA_SHORT));%0A    %7D%0A%0A    @Test%0A    public void getOrAddLongUrlTwice() %7B%0A        assertThat(lookupUrlService.getOrAddLongUrl(GOOGLE_COM), equalTo(GOOGLE_COM_SHORT));%0A        // Must return the same value%0A        assertThat(lookupUrlService.getOrAddLongUrl(GOOGLE_COM), equalTo(GOOGLE_COM_SHORT));%0A    %7D%0A%0A    @Test%0A    public void getLongUrl() %7B%0A        assertThat(lookupUrlService.getOrAddLongUrl(GOOGLE_COM), equalTo(GOOGLE_COM_SHORT));%0A        assertThat(lookupUrlService.getLongUrl(GOOGLE_COM_SHORT), equalTo(GOOGLE_COM));%0A    %7D%0A%0A    @Test%0A    public void getLongUrlKO() %7B%0A        assertThat(lookupUrlService.getLongUrl(GOOGLE_COM_SHORT), is(nullValue()));%0A    %7D%0A%0A%7D%0A

Rename test