@@ -0,0 +1,2768 @@
+package com.dyhpoon.fodex;%0A%0Aimport android.content.ContentUris;%0Aimport android.net.Uri;%0Aimport android.test.AndroidTestCase;%0A%0Aimport com.dyhpoon.fodex.data.actual.FodexContract;%0A%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0A/**%0A * Created by darrenpoon on 2/4/15.%0A */%0Apublic class ContractTest extends AndroidTestCase %7B%0A%0A    public void testBuildImageUri() %7B%0A        long id = 0;%0A        Uri uri = FodexContract.ImageEntry.buildImageUri(id);%0A        assertEquals(ContentUris.withAppendedId(FodexContract.ImageEntry.CONTENT_URI, id), uri);%0A    %7D%0A%0A    public void testBuildTagUri() %7B%0A        long id = 0;%0A        Uri uri = FodexContract.TagEntry.buildTagUri(id);%0A        assertEquals(ContentUris.withAppendedId(FodexContract.TagEntry.CONTENT_URI, id), uri);%0A    %7D%0A%0A    public void testSearchTagName() %7B%0A        String expected = %22hello%22;%0A        Uri uri = FodexContract.TagEntry.buildSearchTagName(expected);%0A        String actual = FodexContract.TagEntry.getSearchTagName(uri);%0A        assertEquals(expected, actual);%0A    %7D%0A%0A    public void testTagName() %7B%0A        String expected = %22morning%22;%0A        Uri uri = FodexContract.TagEntry.buildTagName(expected);%0A        String actual = FodexContract.TagEntry.getTagName(uri);%0A        assertEquals(expected, actual);%0A    %7D%0A%0A    public void testBuildImageTagUri() %7B%0A        long id = 0;%0A        Uri uri = FodexContract.ImageTagEntry.buildImageTagUri(id);%0A        assertEquals(ContentUris.withAppendedId(FodexContract.ImageTagEntry.CONTENT_URI, id), uri);%0A    %7D%0A%0A    public void testTagNames() %7B%0A        List%3CString%3E expected = Arrays.asList(%22hello%22);%0A        Uri uri = FodexContract.ImageTagEntry.buildTagNames(expected);%0A        List%3CString%3E actual = FodexContract.ImageTagEntry.getTagNames(uri);%0A        assertEquals(expected, actual);%0A%0A        expected = Arrays.asList(%22hello%22, %22morning%22);%0A        uri = FodexContract.ImageTagEntry.buildTagNames(expected);%0A        actual = FodexContract.ImageTagEntry.getTagNames(uri);%0A        assertEquals(expected, actual);%0A    %7D%0A%0A    public void testSearchId() %7B%0A        long expected = 0;%0A        Uri uri = FodexContract.ImageTagEntry.buildSearchId(expected);%0A        long actual = Long.parseLong(FodexContract.ImageTagEntry.getSearchId(uri));%0A        assertEquals(expected, actual);%0A    %7D%0A%0A    public void testSearchName() %7B%0A        String expected = %22hello%22;%0A        Uri uri = FodexContract.ImageTagEntry.buildSearchName(expected);%0A        String actual = FodexContract.ImageTagEntry.getSearchName(uri);%0A        assertEquals(expected, actual);%0A    %7D%0A%0A    public void testBuildShareUri() %7B%0A        long id = 0;%0A        Uri uri = FodexContract.ShareEntry.buildShareUri(id);%0A        assertEquals(ContentUris.withAppendedId(FodexContract.ShareEntry.CONTENT_URI, id), uri);%0A    %7D%0A%7D%0A

Add test cases for FodexContract