This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 250630

Summary: Missing @throws in generated Javadoc
Product: java Reporter: cezariusz <cezariusz>
Component: JUnitAssignee: Theofanis Oikonomou <theofanis>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description cezariusz 2015-02-23 12:49:51 UTC
Tools -> Create/Update Tests

Generated code:

    /**
     * Test of createConnection method, of class DBConnection.
     */
    @Test
    public void testCreateConnection_0args() throws Exception {
        System.out.println("createConnection");
        Connection expResult = null;
        Connection result = DBConnection.createConnection();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

Editor shows warning: Missing @throws tag for java.lang.Exception