nl.hsac.fitnesse.symbols.RandomBsn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hsac-fitnesse-plugin Show documentation
Show all versions of hsac-fitnesse-plugin Show documentation
Plugin to add features to a FitNesse installation
The newest version!
package nl.hsac.fitnesse.symbols;
import fitnesse.wikitext.parser.Matcher;
import fitnesse.wikitext.parser.Symbol;
import fitnesse.wikitext.parser.SymbolType;
import fitnesse.wikitext.parser.Translation;
import fitnesse.wikitext.parser.Translator;
import nl.hsac.fitnesse.util.BsnUtil;
/**
* Symbol that creates a random BSN for use in tests.
* Usage: !randomBSN
*/
public class RandomBsn extends SymbolType implements Translation {
private static final BsnUtil BSN_UTIL = new BsnUtil();
public RandomBsn() {
super("RandomBSN");
wikiMatcher(new Matcher().string("!randomBSN"));
htmlTranslation(this);
}
public String toTarget(Translator translator, Symbol symbol) {
return BSN_UTIL.generateBsn();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy