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());
}
Aggregations