Search in sources :

Example 1 with Assignable

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;
}
Also used : Assignable(com.sequenceiq.it.cloudbreak.assign.Assignable)

Aggregations

Assignable (com.sequenceiq.it.cloudbreak.assign.Assignable)1