use of org.candlepin.model.Release in project candlepin by candlepin.
the class ActivationKeyResourceTest method testUpdateTooLongRelease.
@Test(expected = BadRequestException.class)
public void testUpdateTooLongRelease() {
ActivationKey key = new ActivationKey();
OwnerDTO ownerDto = new OwnerDTO();
key.setOwner(owner);
key.setName("dd");
key.setServiceLevel("level1");
key.setReleaseVer(new Release("release1"));
activationKeyCurator.create(key);
ActivationKeyDTO update = new ActivationKeyDTO();
update.setOwner(ownerDto);
update.setName("dd");
update.setServiceLevel("level1");
update.setReleaseVersion(TestUtil.getStringOfSize(256));
activationKeyResource.updateActivationKey(key.getId(), update);
}
Aggregations