use of org.candlepin.model.ConsumerInstalledProduct in project candlepin by candlepin.
the class ActiveEntitlementJobTest method setUp.
@Before
public void setUp() {
owner = new Owner("test-owner", "Test Owner");
owner = ownerCurator.create(owner);
prod = this.createProduct("1", "2", owner);
ct = new ConsumerType(ConsumerTypeEnum.SYSTEM);
ct = consumerTypeCurator.create(ct);
consumer = new Consumer("a consumer", "username", owner, ct);
consumer.addInstalledProduct(new ConsumerInstalledProduct(prod.getId(), prod.getName()));
consumerCurator.create(consumer);
}
Aggregations