@SuppressWarnings({"unchecked", "rawtypes"}) protected <T> void expectSet(PartDescriptor name, int n, T... products) { ComponentBuilder builder = createComponentBuilder(name); Generator<T> helper = new ComponentBuilderGenerator(builder, name.getName()); helper.init(context); expectGeneratedSet(helper, n, products); }
@SuppressWarnings({"unchecked", "rawtypes"}) protected <T> void expectUniqueSet(PartDescriptor name, T... products) { ComponentBuilder builder = createComponentBuilder(name); Generator<T> helper = new ComponentBuilderGenerator(builder, name.getName()); helper.init(context); expectUniquelyGeneratedSet(helper, products).withCeasedAvailability(); }