package URLShortener.Test;

import URLShortener.Utility.ShortURLData;
import URLShortener.Utility.URLShortener;
import org.junit.Test;

import static org.junit.Assert.*;

/**
 * Created by Vincenzo_Pc on 20/08/2015.
 */
public class ShortURLDataTest {


    String cases = "broJG";
    String cases1 = "www.google.it";
    ShortURLData test = new ShortURLData(cases,cases1);
    @Test
    public void testSetJsonString() throws Exception {


    }

    @Test
    public void testAddNewClick() throws Exception {

    }

    @Test
    public void testSaveShortLongURL() throws Exception {
        boolean result = test.saveShortLongURL(cases, cases1);
        assertTrue(result==false);
    }


}

@@ -17,24 +17,64 @@
 ener.Test;%0A%0A
+import URLShortener.Utility.JsonValues;%0A
 import URLSh
@@ -404,24 +404,26 @@
 es,cases1);%0A
+%0A%0A
     @Test%0A  
@@ -475,16 +475,101 @@
 ption %7B%0A
+        JsonValues result = test.setJsonString();%0A        assertTrue(result != null);
 %0A%0A    %7D%0A

test of method setJsonString from class ShortURLData