package io.cucumber.cucumberexpressions;

import java.util.List;
import java.util.Map;

class Expectation {
    String expression;
    List<String> tokens;
    String exception;

    Expectation(String expression, List<String> tokens, String exception) {
        this.expression = expression;
        this.tokens = tokens;
        this.exception = exception;
    }

    public String getExpression() {
        return expression;
    }

    public List<String> getTokens() {
        return tokens;
    }

    public String getException() {
        return exception;
    }

    public void setExpression(String expression) {
        this.expression = expression;
    }

    public void setTokens(List<String> tokens) {
        this.tokens = tokens;
    }

    public void setException(String exception) {
        this.exception = exception;
    }

    public static Expectation fromMap(Map<?, ?> map) {
        return new Expectation(
                (String) map.get("expression"),
                (List<String>) map.get("tokens"),
                (String) map.get("exception"));
    }

}

@@ -569,282 +569,8 @@
  %7D%0A%0A
-    public void setExpression(String expression) %7B%0A        this.expression = expression;%0A    %7D%0A%0A    public void setTokens(List%3CString%3E tokens) %7B%0A        this.tokens = tokens;%0A    %7D%0A%0A    public void setException(String exception) %7B%0A        this.exception = exception;%0A    %7D%0A%0A
     

Clean up