forked from I2P_Developers/i2p.i2p
test: Add ConvertToHashTest fall through case
Nothing can be resolved at all.
This commit is contained in:
@@ -58,4 +58,12 @@ public class ConvertToHashTest {
|
||||
assertNotNull(hash);
|
||||
assertEquals(hash.toBase32(), zzzB32I2P);
|
||||
}
|
||||
|
||||
/**
|
||||
* The case where a destination cannot be resolved at all
|
||||
*/
|
||||
@Test
|
||||
public void getHashResolveDestinationFail() {
|
||||
assertNull(ConvertToHash.getHash("unknown.i2p"));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user