com.github.vkorobkov.jfixtures.instructions.CustomSql Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jfixtures Show documentation
Show all versions of jfixtures Show documentation
Easy test data creator for SQL databases
package com.github.vkorobkov.jfixtures.instructions;
import lombok.Getter;
@Getter
public class CustomSql implements Instruction {
private static final String TABLE_NAME_PLACEHOLDER = "$TABLE_NAME";
private final String instruction;
public CustomSql(String table, String instruction) {
this.instruction = instruction.replace(TABLE_NAME_PLACEHOLDER, table);
}
@Override
public void accept(InstructionVisitor visitor) {
visitor.visit(this);
}
}