Project

General

Profile

1
package eu.dnetlib.enabling.rmi.data;
2

    
3
import eu.dnetlib.rmi.data.DownloadItem;
4

    
5
import static org.junit.Assert.assertEquals;
6

    
7
/**
8
 * Created by sandro on 3/21/14.
9
 */
10
public class DownloadItemTest {
11

    
12
	@org.junit.Test
13
	public void testGetFileName() throws Exception {
14
		DownloadItem di = new DownloadItem();
15
		di.setIdItemMetadata("id1");
16
		di.setUrl("http://www.test.com");
17
		di.setFileName("testFile");
18
		assertEquals("testFile", di.getFileName());
19
	}
20
}
    (1-1/1)