From b6cd1ff13c378060d6da3f360de316e187825c62 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Sun, 9 Jul 2023 13:22:11 +0200 Subject: [PATCH] Move PGPDSL to pgpainless-wot testFixtures --- .../src/test/kotlin/org/pgpainless/wot/AdHocTest.kt | 3 +-- .../kotlin/org/pgpainless/wot/dsl}/PGPDSL.kt | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename pgpainless-wot/src/{test/kotlin/org/pgpainless/wot => testFixtures/kotlin/org/pgpainless/wot/dsl}/PGPDSL.kt (90%) diff --git a/pgpainless-wot/src/test/kotlin/org/pgpainless/wot/AdHocTest.kt b/pgpainless-wot/src/test/kotlin/org/pgpainless/wot/AdHocTest.kt index 579bf6ff..37d1569d 100644 --- a/pgpainless-wot/src/test/kotlin/org/pgpainless/wot/AdHocTest.kt +++ b/pgpainless-wot/src/test/kotlin/org/pgpainless/wot/AdHocTest.kt @@ -1,9 +1,8 @@ package org.pgpainless.wot import org.junit.jupiter.api.Test +import org.pgpainless.wot.dsl.PGPDSL import org.pgpainless.wot.testfixtures.AdHocVectors -import kotlin.test.assertEquals -import kotlin.test.assertTrue class AdHocTest: PGPDSL { diff --git a/pgpainless-wot/src/test/kotlin/org/pgpainless/wot/PGPDSL.kt b/pgpainless-wot/src/testFixtures/kotlin/org/pgpainless/wot/dsl/PGPDSL.kt similarity index 90% rename from pgpainless-wot/src/test/kotlin/org/pgpainless/wot/PGPDSL.kt rename to pgpainless-wot/src/testFixtures/kotlin/org/pgpainless/wot/dsl/PGPDSL.kt index 6a92224c..98879a75 100644 --- a/pgpainless-wot/src/test/kotlin/org/pgpainless/wot/PGPDSL.kt +++ b/pgpainless-wot/src/testFixtures/kotlin/org/pgpainless/wot/dsl/PGPDSL.kt @@ -1,21 +1,22 @@ -package org.pgpainless.wot +package org.pgpainless.wot.dsl import org.bouncycastle.openpgp.PGPPublicKeyRing import org.bouncycastle.openpgp.PGPSignature import org.pgpainless.algorithm.RevocationStateType import org.pgpainless.key.OpenPgpFingerprint import org.pgpainless.key.info.KeyRingInfo +import org.pgpainless.wot.WebOfTrust import org.pgpainless.wot.network.Node import org.pgpainless.wot.network.Fingerprint import org.pgpainless.wot.network.RevocationState interface PGPDSL { - fun CertSynopsis(certificate: PGPPublicKeyRing): Node { + fun Node(certificate: PGPPublicKeyRing): Node { return Node(Fingerprint(certificate), ) } - fun CertSynopsis(validatedCert: KeyRingInfo): Node { + fun Node(validatedCert: KeyRingInfo): Node { return Node( Fingerprint(validatedCert.fingerprint), validatedCert.primaryKeyExpirationDate,