io.hyperfoil.tools.qdup.config.yaml.RegexMapping Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qDup Show documentation
Show all versions of qDup Show documentation
Coordinate multiple terminal shell connections for queuing performance tests and collecting output files
package io.hyperfoil.tools.qdup.config.yaml;
import io.hyperfoil.tools.qdup.cmd.Cmd;
import io.hyperfoil.tools.qdup.cmd.impl.Regex;
import java.util.*;
public class RegexMapping extends CmdMapping {
public static final String MISS = "miss";
public static final String AUTO_CONVERT = "autoConvert";
public static final String PATTERN = "pattern";
public static final String ELSE = "else";
public RegexMapping() {
super("regex", new CmdEncoder() {
@Override
public Object encode(Cmd cmd) {
if(cmd instanceof Regex){
Regex r = (Regex)cmd;
if(r.isMiss()){
Map