Code example for Constructor

Methods: getModifiers

    class SubInvocationTargetException extends InvocationTargetException {}
     * @tests java.lang.reflect.InvocationTargetException#InvocationTargetException() 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "InvocationTargetException", 
        args = {} 
    public void test_Constructor() throws Exception { 
        Constructor<InvocationTargetException> ctor = InvocationTargetException.class
        assertNotNull("Parameterless constructor does not exist.", ctor);
        assertTrue("Constructor is not protected", Modifier.isProtected(ctor
        //create an instance of a subtype using this constructor 
        SubInvocationTargetException subException = new SubInvocationTargetException();
Connect your IDE to all the code out there  Get Codota for Java