Skip to content

Commit 8915ff2

Browse files
committed
fixed test method exposure
1 parent b87169e commit 8915ff2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkix/src/test/java/org/bouncycastle/pkcs/test/PBETest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import java.security.Security;
44

55
import junit.framework.TestCase;
6-
76
import org.bouncycastle.asn1.nist.NISTObjectIdentifiers;
87
import org.bouncycastle.asn1.pkcs.PBKDF2Params;
98
import org.bouncycastle.asn1.pkcs.PBMAC1Params;
@@ -38,7 +37,7 @@ public void testPBESHA256()
3837

3938
}
4039

41-
void testPbmac1PrfPropagation() throws OperatorCreationException {
40+
public void testPbmac1PrfPropagation() throws OperatorCreationException {
4241
AlgorithmIdentifier prf = new AlgorithmIdentifier(NISTObjectIdentifiers.id_hmacWithSHA3_512, null);;
4342
AlgorithmIdentifier protectionAlgorithm = new AlgorithmIdentifier(PKCSObjectIdentifiers.id_PBMAC1,
4443
new PBMAC1Params(
@@ -51,7 +50,7 @@ void testPbmac1PrfPropagation() throws OperatorCreationException {
5150
AlgorithmIdentifier actualPrf = PBKDF2Params.getInstance(
5251
PBMAC1Params.getInstance(calculator.getKey().getAlgorithmIdentifier().getParameters()).getKeyDerivationFunc().getParameters()
5352
).getPrf();
54-
System.out.println("Should be true: " + prf.equals(actualPrf));
53+
assertTrue(prf.equals(actualPrf));
5554
}
5655

5756
}

0 commit comments

Comments
 (0)