JUnit

TestCase?

import junit.framework.TestCase;
public class Hoge extends TestCase {

assert

protected void setUp() {
}
protected void tearDown() {
}

assertEquals

assertTrue

assertFalse

assertNull

assertNotNull?

assertSame

assertNotSame?

fail

package test;
import junit.framework.Test;
import junit.framework.TestSuite;
public class AllTests {
  public static Test suite() {
	TestSuite suite = new TestSuite("Test for test");
	//$JUnit-BEGIN$
	suite.addTestSuite(Hoge.class);
	//$JUnit-END$
	return suite;
  }
}

Cobertura

http://cobertura.sourceforge.net http://www-06.ibm.com/jp/developerworks/java/050527/j_j-cobertura.html



トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS