test: Add ConvertToHashTest fall through case

Nothing can be resolved at all.
This commit is contained in:
2021-01-07 19:46:39 +01:00
parent f80be27579
commit 739fe36513

View File

@@ -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"));
}
}