Skip to content

Commit

Permalink
fixed some Checkstyle issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Adolf committed Mar 15, 2018
1 parent fafcb66 commit 4fad264
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
Expand Up @@ -27,7 +27,7 @@
*
*/
public final class EMLoginTask extends AbstractUserTask {
private final static String NAME = "Enterprise manager - Login";
private static final String NAME = "Enterprise manager - Login";

@Override
public void executeTask(final WebDriver driver, final String baseUrl) {
Expand Down
Expand Up @@ -19,11 +19,27 @@
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;

/**
* Represents a list of possible values for one parameter.
*
* @author Marc Adolf
*
* @param <T>
* The type of the elements in the list.
*/
public class ListTaskParameter<T> implements ITaskParameter<T> {

private final List<T> items;
private int defaultPosition;

/**
* Creates a variable parameter that saves the possible values in a list.
*
* @param items
* The list of possible values.
* @param defaultPosition
* The position in the list of the default value.
*/
public ListTaskParameter(final List<T> items, final int defaultPosition) {
this.items = items;
this.defaultPosition = defaultPosition;
Expand Down
Expand Up @@ -17,6 +17,7 @@

import java.util.concurrent.TimeUnit;

import org.iobserve.selenium.tasks.fuzzy.properties.parameter.ITaskParameter;
import org.iobserve.selenium.workloads.handling.WorkloadPlan;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.phantomjs.PhantomJSDriver;
Expand Down Expand Up @@ -45,6 +46,9 @@ public class WorkloadConfiguration {
* The number of repetitions of the {@link WorkloadPlan}.
* @param pathWebDriver
* Path to the PhantomJS binaries
* @param isFuzzy
* If true, all tasks in the workloads use the random content of the predefined
* {@link ITaskParameter parameters}.
*/
public WorkloadConfiguration(final String baseUrl, final int numberOfRuns, final String pathWebDriver,
final Boolean isFuzzy) {
Expand Down

0 comments on commit 4fad264

Please sign in to comment.