@@ -0,0 +1,1734 @@
+/**%0A* OpenCPS PKI is the open source PKI Integration software%0A* Copyright (C) 2016-present OpenCPS community%0A%0A* This program is free software: you can redistribute it and/or modify%0A* it under the terms of the GNU Affero General Public License as published by%0A* the Free Software Foundation, either version 3 of the License, or%0A* any later version.%0A%0A* This program is distributed in the hope that it will be useful,%0A* but WITHOUT ANY WARRANTY; without even the implied warranty of%0A* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the%0A* GNU Affero General Public License for more details.%0A* You should have received a copy of the GNU Affero General Public License%0A* along with this program. If not, see %3Chttp://www.gnu.org/licenses/%3E%0A*/%0Apackage org.opencps.pki;%0A%0Aimport junit.framework.Test;%0Aimport junit.framework.TestCase;%0Aimport junit.framework.TestSuite;%0A%0Aimport static org.mockito.Mockito.CALLS_REAL_METHODS;%0Aimport static org.mockito.Mockito.mock;%0A%0Aimport com.itextpdf.text.pdf.security.PdfPKCS7;%0A%0A/**%0A * @author Nguyen Van Nguyen %3Cnguyennv@iwayvietnam.com%3E%0A */%0Apublic class PdfSignatureInfoTest extends TestCase %7B%0A%0A    private PdfSignatureInfo signInfo;%0A%0A    /**%0A     * Create the test case%0A     */%0A    public PdfSignatureInfoTest(String testName) %7B%0A        super(testName);%0A    %7D%0A%0A    /**%0A     * @return the suite of tests being tested%0A     */%0A    public static Test suite()%0A    %7B%0A        return new TestSuite(PdfSignatureInfoTest.class);%0A    %7D%0A    %0A    public void testGetPdfPKCS7() %7B%0A        assertTrue(signInfo.getPdfPKCS7() instanceof PdfPKCS7);%0A    %7D%0A    %0A    protected void setUp() %7B%0A        PdfPKCS7 pkcs7 = mock(PdfPKCS7.class, CALLS_REAL_METHODS);%0A        signInfo = new PdfSignatureInfo(pkcs7);%0A    %7D%0A    %0A%7D%0A

Add pdf signature info test case