aspose file tools*
The moose likes Testing and the fly likes Junit4 with Netbeans6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Junit4 with Netbeans6" Watch "Junit4 with Netbeans6" New topic
Author

Junit4 with Netbeans6

Pat Sri
Greenhorn

Joined: Jun 27, 2006
Posts: 2
I have Test Class and create TestSuite.
Here is my code.

package sampleproject;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;

/**
*
* @author stcc
*/
@RunWith(Suite.class)
@Suite.SuiteClasses( value = {KoloTest.class})
public class NewTestSuite {

// public NewTestSuite() {
// }
//
// @BeforeClass
// public static void setUpClass() throws Exception {
// }
//
// @AfterClass
// public static void tearDownClass() throws Exception {
// }
//
// @Before
// public void setUp() throws Exception {
// }
//
// @After
// public void tearDown() throws Exception {
// }

}

All of my TestClass work but when I use TestSuite Class it doesn't show the result of test. It show just "Junit result root node".
I guess it should show all node of every TestClass.
So what wrong with it?

If you've ever used Junit with Netbeans plase tell me what kind of result came out???
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Junit4 with Netbeans6