Code example for Constructor

Methods: toString

0
        parms = new Class[1];
        parms[0] = new Object().getClass();
        ctor = new ConstructorTestHelper().getClass().getConstructor(parms);
 
        assertTrue(
                "Returned incorrect string representation: " + ctor.toString(),
                ctor
                        .toString()
                        .equals(
                                "public org.apache.harmony.luni.tests.java.lang.reflect.ConstructorTest$ConstructorTestHelper(java.lang.Object)")); 
    } 
}