From d7ff9d5e217873609d79efe279f2634e3a3dd8b4 Mon Sep 17 00:00:00 2001 From: Yuuta Liang Date: Wed, 25 Oct 2023 03:30:45 +0800 Subject: Refactor: move all logics into CertificationAuthority Signed-off-by: Yuuta Liang --- src/test/model/pki/cert/TbsCertificateTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/test/model/pki/cert/TbsCertificateTest.java') diff --git a/src/test/model/pki/cert/TbsCertificateTest.java b/src/test/model/pki/cert/TbsCertificateTest.java index ee2a9c7..e778350 100644 --- a/src/test/model/pki/cert/TbsCertificateTest.java +++ b/src/test/model/pki/cert/TbsCertificateTest.java @@ -21,7 +21,8 @@ public class TbsCertificateTest { void testConstructor() { assertEquals(TbsCertificate.VERSION_V3, TestConstants.CERT_GENERATED.getVersion().getLong()); assertEquals(100, TestConstants.CERT_GENERATED.getSerialNumber().getLong()); - assertArrayEquals(ObjectIdentifier.OID_RSA_ENCRYPTION, TestConstants.CERT_GENERATED.getSignature().getType().getInts()); + assertArrayEquals(ObjectIdentifier.OID_RSA_ENCRYPTION, + TestConstants.CERT_GENERATED.getSignature().getType().getInts()); assertEquals("CN=Test CA,C=CA", TestConstants.CERT_GENERATED.getIssuer().toString()); assertEquals(TestConstants.NOW, TestConstants.CERT_GENERATED.getValidity().getNotBefore().getTimestamp()); assertEquals(TestConstants.NOW.plusYears(1), -- cgit v1.2.3