Merge pull request #23 from ThomasRubini/test_invalid_package
This commit is contained in:
commit
ca6e940cae
@ -59,6 +59,13 @@ public class ArchTest {
|
||||
Assertions.assertFalse(pack.getVersion().isEmpty());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInvalidPackageReturnsNull() throws ExecutionException, InterruptedException {
|
||||
Distribution arch = new ArchDistribution();
|
||||
Package pack = arch.getPackageTree("lndhsgudw", 1).get();
|
||||
Assertions.assertNull(pack);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testThatBashSearchReturnsResults() {
|
||||
Distribution arch = new ArchDistribution();
|
||||
|
Loading…
Reference in New Issue
Block a user