public void testValidateInterest() { PibIdentity identity = fixture_.addIdentity(new Name( "/TestValidator/Null")); Interest interest = new Interest(new Name("/Some/Other/Interest/Name")); fixture_.keyChain_.sign(interest, new SigningInfo(identity)); ValidatorNull validator = new ValidatorNull(); validator.validate(interest, new TestValidatorNull.Anonymous_C1(), new TestValidatorNull.Anonymous_C0()); }
public void testValidateData() { PibIdentity identity = fixture_.addIdentity(new Name( "/TestValidator/Null")); Data data = new Data(new Name("/Some/Other/Data/Name")); fixture_.keyChain_.sign(data, new SigningInfo(identity)); ValidatorNull validator = new ValidatorNull(); validator.validate(data, new TestValidatorNull.Anonymous_C3(), new TestValidatorNull.Anonymous_C2()); }