All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.tamnguyenbbt.task.TaskExecutor Maven / Gradle / Ivy

Go to download

Find jsoup elements, relative xpath queries, and Selenium web elements for web service and Selenium-based Web UI testing

There is a newer version: 1.1.3
Show newest version
package com.github.tamnguyenbbt.task;

import java.util.concurrent.Callable;

public class TaskExecutor implements Callable
{
    private final ITask task;

    public TaskExecutor(ITask task)
    {
        this.task = task;
    }

    public ITask getTask()
    {
        return task;
    }

    @Override
    public T call() throws Exception
    {
        T functionParam = task.getFunctionParam();
        return (T)task.getFunction().apply(functionParam);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy