com.neotys.neoload.model.readers.loadrunner.method.WebcleanupcookiesMethod Maven / Gradle / Ivy
package com.neotys.neoload.model.readers.loadrunner.method;
import java.util.List;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.neotys.neoload.model.core.Element;
import com.neotys.neoload.model.parsers.CPP14Parser.MethodcallContext;
import com.neotys.neoload.model.readers.loadrunner.LoadRunnerVUVisitor;
import com.neotys.neoload.model.readers.loadrunner.MethodCall;
import com.neotys.neoload.model.repository.ImmutableClearCookies;
public class WebcleanupcookiesMethod implements LoadRunnerMethod {
public WebcleanupcookiesMethod() {
super();
}
@Override
public List getElement(final LoadRunnerVUVisitor visitor, final MethodCall method, final MethodcallContext ctx) {
Preconditions.checkNotNull(method);
visitor.readSupportedFunction(method.getName(), ctx);
return ImmutableList.of(ImmutableClearCookies.builder().name(method.getName()).build());
}
}