• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Junit4 with Netbeans6

 
Pat Sri
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic