Code example for ECGenParameterSpec

0
     * 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) {}
    } 
 
    /** 
     * Test for <code>getName()</code> method<br> 
     * 
     * Assertion: returns the <code>name</code>   
     */ 
    public final void testGetName() { 
        String name = "someName";
        ECGenParameterSpec ps = new ECGenParameterSpec(name);
        assertEquals(name, ps.getName());
    }