Code example for CodeSigner

0
public class CodeSignerTest extends TestCase {
 
    /** 
     * Entry point for standalone runs. 
     * @param args command line arguments 
     */ 
    public static void main(String[] args) {
        junit.textui.TestRunner.run(CodeSignerTest.class); 
    } 
 
    private CertPath cpath = TestCertUtils.genCertPath(3, 0);
    private Date now = new Date();
 
    private Timestamp ts = new Timestamp(now, cpath);
 
    /** 
     * must throw NPE if signerCertPath is null 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "NPE case",