use of org.candlepin.model.Branding in project candlepin by candlepin.
the class PoolRulesTest method brandingDidntChange.
@Test
public void brandingDidntChange() {
Pool p = TestUtil.createPool(owner, TestUtil.createProduct());
// Add some branding to the subscription and do an update:
Branding b1 = new Branding("8000", "OS", "Awesome OS Branded");
Branding b2 = new Branding("8001", "OS", "Awesome OS Branded 2");
p.getBranding().add(b1);
p.getBranding().add(b2);
// Copy the pool with the branding to begin with:
Pool p1 = TestUtil.clone(p);
List<Pool> existingPools = Arrays.asList(p1);
List<PoolUpdate> updates = this.poolRules.updatePools(p, existingPools, p.getQuantity(), Collections.<String, Product>emptyMap());
assertEquals(0, updates.size());
}
Aggregations