-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding http-nio as a dependency (#1929)
* This is a plugin which provides HttpFileSystemProvider which allows connecting to http(s) paths through the nio Path and Files interfaces. * Updating htsjdk to 4.1.0 which improves support for plugins lke this in Tribble. * Adding an extremely simple test to show that http-nio is available
- Loading branch information
1 parent
5e2c94a
commit e7f9a54
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package picard.nio; | ||
|
||
import htsjdk.samtools.util.IOUtil; | ||
import org.testng.Assert; | ||
import org.testng.annotations.Test; | ||
|
||
import java.io.IOException; | ||
import java.nio.file.Files; | ||
|
||
public class HttpNioIntegrationTest { | ||
@Test | ||
public void testCanReadFromHttpsPath() throws IOException { | ||
final String theWholeReadme = Files.readString(IOUtil.getPath("https://raw.githubusercontent.com/broadinstitute/picard/master/README.md")); | ||
Assert.assertTrue(theWholeReadme.contains("Picard")); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
|
||
chr1 100 2000 | ||
chr1 3000 4000 |