beautified HOTP tests; added maven surefire plugin for tests
This commit is contained in:
parent
39752b36ec
commit
3542c7aed3
5
pom.xml
5
pom.xml
@ -16,6 +16,11 @@
|
||||
<target>1.8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>3.1.2</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<dependencies>
|
||||
|
@ -29,6 +29,10 @@ public class OTPTest {
|
||||
String[] expectedValues = { "755224", "287082", "359152", "969429", "338314", "254676", "287922", "162583",
|
||||
"399871", "520489" };
|
||||
|
||||
if(VERBOSE) {
|
||||
System.out.println("calcPin expected");
|
||||
}
|
||||
|
||||
for (int i = 0; i < 10; i++) {
|
||||
OTP testOTP1 = OTPType.HOTP.instance(base32secret, OTPAlgorithm.SHA1, 6, i, 30, false);
|
||||
String calculatedPin = testOTP1.getPin();
|
||||
|
Loading…
Reference in New Issue
Block a user