3 import org.junit.Assert;
4 import org.testng.annotations.Test;
6 public class FileLoaderTest
9 @Test(groups = { "Network" })
10 public void testDownloadStructuresIfInputFromURL()
12 String urlFile = "http://www.jalview.org/builds/develop/examples/3W5V.pdb";
13 FileLoader fileLoader = new FileLoader();
14 fileLoader.LoadFileWaitTillLoaded(urlFile, DataSourceType.URL,
16 Assert.assertNotNull(fileLoader.file);
17 // The FileLoader's file is expected to be same as the original URL.
18 Assert.assertEquals(urlFile, fileLoader.file);
19 // Data source type expected to be DataSourceType.URL
20 Assert.assertEquals(DataSourceType.URL, fileLoader.protocol);