Code example for ECGenParameterSpec

0
     * 
     * Assertion: creates new object of <code>ECGenParameterSpec</code> class 
     * using valid <code>name</code>  
     */ 
    public final void testECGenParameterSpec01() { 
        new ECGenParameterSpec("someName");
    } 
 
    /** 
     * Test #2 for <code>ECGenParameterSpec</code> constructor<br> 
     * 
     * Assertion: throws NullPointerException 
     * if <code>name</code> is <code>null</code>   
     */ 
    public final void testECGenParameterSpec02() { 
        try { 
            new ECGenParameterSpec(null);
            fail("NPE expected");
        } catch (NullPointerException ok) {}
    } 
Experience pair programming with AI  Get Codota for Java