mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-23 03:17:58 +01:00
Add SigningResultTest
This commit is contained in:
parent
824b8de404
commit
1c2cbf0e75
1 changed files with 23 additions and 0 deletions
23
sop-java/src/test/java/sop/util/SigningResultTest.java
Normal file
23
sop-java/src/test/java/sop/util/SigningResultTest.java
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
// SPDX-FileCopyrightText: 2022 Paul Schaub <vanitasvitae@fsfe.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
package sop.util;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
import sop.MicAlg;
|
||||||
|
import sop.SigningResult;
|
||||||
|
|
||||||
|
public class SigningResultTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void basicBuilderTest() {
|
||||||
|
SigningResult result = SigningResult.builder()
|
||||||
|
.setMicAlg(MicAlg.fromHashAlgorithmId(10))
|
||||||
|
.build();
|
||||||
|
|
||||||
|
assertEquals("pgp-sha512", result.getMicAlg().getMicAlg());
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue