Code example for Constructor

Methods: getModifiers

0
        assertEquals(
                "Wrong generic string returned", 
                "public tests.api.java.lang.reflect.ConstructorTest$GenericConstructorTestHelper() throws E", 
                ctor.toGenericString());
    } 
 
 /** 
     * @tests java.lang.reflect.Constructor#equals(java.lang.Object) 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "equals", 
        args = {java.lang.Object.class}
    ) 
    public void test_equalsLjava_lang_Object() { 
        Constructor<ConstructorTestHelper> ctor1 = null, ctor2 = null;
        try { 
            ctor1 = ConstructorTestHelper.class.getConstructor(
                    new Class[0]);
            ctor2 = ConstructorTestHelper.class.getConstructor(Object.class);