/** * Creates a new {@link AbstractComponentFixture}. * * @param selfType the "self type." * @param robot performs simulation of user events on a {@code Component}. * @param type the type of the {@code Component} to find using the given {@code Robot}. * @throws NullPointerException if {@code robot} is {@code null}. * @throws NullPointerException if {@code type} is {@code null}. * @throws org.assertj.swing.exception.ComponentLookupException if a matching component could not be found. * @throws org.assertj.swing.exception.ComponentLookupException if more than one matching component is found. */ public AbstractComponentFixture(@Nonnull Class<S> selfType, @Nonnull Robot robot, @Nonnull Class<? extends C> type) { this(selfType, robot, findTarget(robot, type)); }
/** * Creates a new {@link AbstractComponentFixture}. * * @param selfType the "self type." * @param robot performs simulation of user events on a {@code Component}. * @param name the name of the {@code Component} to find using the given {@code Robot}. * @param type the type of the {@code Component} to find using the given {@code Robot}. * @throws NullPointerException if {@code robot} is {@code null}. * @throws NullPointerException if {@code type} is {@code null}. * @throws org.assertj.swing.exception.ComponentLookupException if a matching component could not be found. * @throws org.assertj.swing.exception.ComponentLookupException if more than one matching component is found. */ public AbstractComponentFixture(@Nonnull Class<S> selfType, @Nonnull Robot robot, @Nullable String name, @Nonnull Class<? extends C> type) { this(selfType, robot, findTarget(robot, name, type)); }