Clover icon

jalviewX

  1. Project Clover database Wed Oct 31 2018 15:13:58 GMT
  2. Package jalview.io

File FileLoaderTest.java

 

Code metrics

0
6
1
1
22
17
1
0.17
6
1
1

Classes

Class Line # Actions
FileLoaderTest 6 6 1 7
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

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