From 3542c7aed30b8b2b45aa64153c68bfc8e25b8247 Mon Sep 17 00:00:00 2001 From: TheArrayser Date: Sun, 18 Jun 2023 22:29:48 +0200 Subject: [PATCH] beautified HOTP tests; added maven surefire plugin for tests --- pom.xml | 5 +++++ src/test/java/test/OTPTest.java | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 8e34ec7..75f1299 100644 --- a/pom.xml +++ b/pom.xml @@ -16,6 +16,11 @@ 1.8 + + org.apache.maven.plugins + maven-surefire-plugin + 3.1.2 + diff --git a/src/test/java/test/OTPTest.java b/src/test/java/test/OTPTest.java index 989e0c8..28571b1 100644 --- a/src/test/java/test/OTPTest.java +++ b/src/test/java/test/OTPTest.java @@ -28,7 +28,11 @@ 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();