All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.hsac.fitnesse.symbols.RandomBsn Maven / Gradle / Ivy

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