Code example for DSAParameterSpec

Methods: getG

0
    private final BigInteger p = new BigInteger("4");
    private final BigInteger q = BigInteger.TEN;
    private final BigInteger g = BigInteger.ZERO;
     
    /** 
     * @tests java.security.interfaces.DSAParams 
     * #getG() 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "getG", 
        args = {} 
    ) 
    public void test_getG() { 
        DSAParams params = new DSAParameterSpec(p, q, g);
        assertEquals("Invalid G", g, params.getG());
    } 
     
    /** 
     * @tests java.security.interfaces.DSAParams