forked from I2P_Developers/i2p.i2p
fix router identity test broken by previous checkin
This commit is contained in:
@ -101,9 +101,15 @@ public class RouterIdentityTest extends StructureTest {
|
||||
ident.calculateHash();
|
||||
}
|
||||
|
||||
public void testBadHash() throws Exception{
|
||||
public void testBadHash() throws Exception {
|
||||
RouterIdentity ident = new RouterIdentity();
|
||||
ident.getHash();
|
||||
boolean error = false;
|
||||
try {
|
||||
ident.getHash();
|
||||
} catch (IllegalStateException ise) {
|
||||
error = true;
|
||||
}
|
||||
assertTrue(error);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user