use of org.candlepin.model.activationkeys.ActivationKey in project candlepin by candlepin.
the class ActivationKeyRulesTest method testDoesAllowSameHostRequires.
@Test
public void testDoesAllowSameHostRequires() {
ActivationKey key = new ActivationKey();
key.addPool(genHostRestricted("host1"), 1L);
Pool pool = genHostRestricted("host1");
ValidationResult result = actKeyRules.runPreActKey(key, pool, new Long(1));
assertTrue(result.getWarnings().isEmpty());
assertTrue(result.getErrors().isEmpty());
}
Aggregations