nl.hsac.fitnesse.symbols.RandomUuid 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
package nl.hsac.fitnesse.symbols;
import fitnesse.wikitext.parser.*;
import java.util.UUID;
public class RandomUuid extends SymbolBase implements Rule, Translation {
public RandomUuid() {
super("Uuid");
wikiMatcher(new Matcher().string("!randomUuid"));
wikiRule(this);
htmlTranslation(this);
}
@Override
public Maybe parse(Symbol current, Parser parser) {
return new Maybe<>(current);
}
@Override
public String toTarget(Translator translator, Symbol symbol) {
return UUID.randomUUID().toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy