hi,
i got this error:
Could not invoke the suite() method
while i ran :
D:\DevZone\CoffeeMaker\CoffeeMaker\unittests>java junit.textui.TestRunner edu.ncsu.csc326.coffeemaker.CoffeeMakerTestSuite
on command prompt
.
Here is my class:
Code:/* * Created on May 23, 2006 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ package edu.ncsu.csc326.coffeemaker; import junit.framework.Test; import junit.framework.TestSuite; /** * @author sanjeeku * * TODO To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */ public class CoffeeMakerTestSuite { public static void main(String[] args) { junit.textui.TestRunner.run(CoffeeMakerTestSuite.suite()); } public static Test suite() { TestSuite suite = new TestSuite("Test for edu.ncsu.csc326.coffeemaker"); //$JUnit-BEGIN$ suite.addTestSuite(CoffeeMakerTest.class); //suite.addTestSuite(RecipeTest.class); //$JUnit-END$ return suite; } }
can any one pls help me with this ?
thanks,
sanlearns


Reply With Quote


Bookmarks