use of com.sequenceiq.it.cloudbreak.assign.Assignable in project cloudbreak by hortonworks.
the class UmsTestDto method assignTarget.
public UmsTestDto assignTarget(String key) {
try {
Assignable dto = getTestContext().get(key);
getRequest().setResourceCrn(dto.getCrn());
} catch (ClassCastException e) {
throw new IllegalArgumentException(String.format("TestContext member with key %s does not implement %s interface", key, Assignable.class.getCanonicalName()), e);
}
return this;
}
Aggregations