Code example for Constructor

Methods: toString

0
assertEquals("Incorrect parameter returned", 0, types.length);
 
        Class[] parms = null;
        try { 
            parms = new Class[1];
            parms[0] = new Object().getClass();
            Constructor<? extends ConstructorTestHelper> ctor = new ConstructorTestHelper().getClass()
                    .getConstructor(parms);
            types = ctor.getParameterTypes();
        } catch (Exception e) {
            fail("Exception during getParameterTypes test:"
                    + e.toString());
        } 
        assertTrue("Incorrect parameter returned", types[0].equals(parms[0]));
    } 
     
    /** 
     * @tests java.lang.reflect.Constructor#getGenericParameterTypes() 
     */ 
    @TestTargetNew(