Search in sources :

Example 6 with UploadItem

use of com.thecoolguy.rumaan.fileio.data.models.UploadItem in project file.io-app by rumaan.

the class UploadItemTest method check_UploadItemSetValues.

@Test
public void check_UploadItemSetValues() {
    UploadItem uploadItem = new UploadItem();
    // nullability of upload item object
    assertNotNull(uploadItem);
    assertNotNull(uploadItem.getId());
    // Test for file name
    uploadItem.setFileName(testFileName);
    assertNotNull(uploadItem.getFileName());
    assertEquals(testFileName, uploadItem.getFileName());
    // Test for url
    uploadItem.setUrl(testUrl);
    assertNotNull(uploadItem.getUrl());
    assertEquals(testUrl, uploadItem.getUrl());
}
Also used : UploadItem(com.thecoolguy.rumaan.fileio.data.models.UploadItem) Test(org.junit.Test)

Aggregations

UploadItem (com.thecoolguy.rumaan.fileio.data.models.UploadItem)6 Test (org.junit.Test)2 ActionBar (android.support.v7.app.ActionBar)1 LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 LayoutAnimationController (android.view.animation.LayoutAnimationController)1 FuelError (com.github.kittinunf.fuel.core.FuelError)1 Request (com.github.kittinunf.fuel.core.Request)1 Response (com.github.kittinunf.fuel.core.Response)1 UploadHistoryListAdapter (com.thecoolguy.rumaan.fileio.adapters.UploadHistoryListAdapter)1 UploadItemViewModel (com.thecoolguy.rumaan.fileio.data.UploadItemViewModel)1 File (java.io.File)1 URL (java.net.URL)1 List (java.util.List)1 Pair (kotlin.Pair)1 Function2 (kotlin.jvm.functions.Function2)1 Before (org.junit.Before)1