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 65182 - [50cat] java - NewTestSuit.java example - compilation error.
Summary: [50cat] java - NewTestSuit.java example - compilation error.
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 5.x
Hardware: All Windows ME/2000
: P4 blocker (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-27 12:51 UTC by srinivasamoorte
Modified: 2011-11-04 12:08 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description srinivasamoorte 2005-09-27 12:51:07 UTC
Hi, 
This is to ensure the correctness of example given in jtest. The file is 
NewTestSuit.java Once NewTestSuit.java file is created it is resutled in 
compilation error. Pls see the code. The return for suit() method is 
mismatching. 
import junit.framework.*;
/*
 * NewTestSuite.java
 * JUnit based test
 *
 * Created on September 27, 2005, 3:32 PM
 */

/**
 *
 * @author srinmunu
 */
public class NewTestSuite extends TestCase {
    
    public NewTestSuite(String testName) {
        super(testName);
    }

    protected void setUp() throws Exception {
    }

    protected void tearDown() throws Exception {
    }

    /**
     * suite method automatically generated by JUnit module
     */
    public static Test suite() {
        TestSuite suite = new TestSuite("NewTestSuite");
        return suite;
    }
    
}