nl.praegus.fitnesse.slim.fixtures.totp.TotpUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of toolchain-fixtures Show documentation
Show all versions of toolchain-fixtures Show documentation
Extensions on existing fixtures to aid in automated testing
package nl.praegus.fitnesse.slim.fixtures.totp;
public class TotpUtils {
public static String padCodeWithZerosToNumberOfDigits(int code, int numberOfDigits) {
String formatSpec = "%0" + numberOfDigits + "d";
return String.format(formatSpec, code);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy