代码如下:package jp.co.nec_lease.imart.model.creditanxiety.data.test;
import junit.framework.*;
import jp.co.nec_lease.imart.model.creditanxiety.data.*;
import java.sql.*;
import jp.co.intra_mart.framework.base.data.*;
import jp.co.nec_lease.imart.model.creditanxiety.object.*;public class TestCreditAnxietyLogDBDAO_fetchWithDetail extends TestCase {
private CreditAnxietyLogDBDAO creditAnxietyLogDBDAO = null;
protected void setUp() throws Exception {
super.setUp();
/**@todo verify the constructors*/
creditAnxietyLogDBDAO = new CreditAnxietyLogDBDAO(); //这句出错
}
protected void tearDown() throws Exception {
creditAnxietyLogDBDAO = null;
super.tearDown();
} public void testFetchWithDetail() throws SQLException, DAOException, DataPropertyException, DataConnectException {
String SearchCreditAnxietyInformation = null;
CreditAnxietyLog[] expectedReturn = null;
CreditAnxietyLog[] actualReturn = creditAnxietyLogDBDAO.fetchWithDetail(SearchCreditAnxietyInformation);
assertEquals(0,0);
/**@todo fill in the test code*/
}}
import junit.framework.*;
import jp.co.nec_lease.imart.model.creditanxiety.data.*;
import java.sql.*;
import jp.co.intra_mart.framework.base.data.*;
import jp.co.nec_lease.imart.model.creditanxiety.object.*;public class TestCreditAnxietyLogDBDAO_fetchWithDetail extends TestCase {
private CreditAnxietyLogDBDAO creditAnxietyLogDBDAO = null;
protected void setUp() throws Exception {
super.setUp();
/**@todo verify the constructors*/
creditAnxietyLogDBDAO = new CreditAnxietyLogDBDAO(); //这句出错
}
protected void tearDown() throws Exception {
creditAnxietyLogDBDAO = null;
super.tearDown();
} public void testFetchWithDetail() throws SQLException, DAOException, DataPropertyException, DataConnectException {
String SearchCreditAnxietyInformation = null;
CreditAnxietyLog[] expectedReturn = null;
CreditAnxietyLog[] actualReturn = creditAnxietyLogDBDAO.fetchWithDetail(SearchCreditAnxietyInformation);
assertEquals(0,0);
/**@todo fill in the test code*/
}}
CreditAnxietyLogDBDAO 类里有空的构造函数吗?
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/VerifyError.htmlThrown when the "verifier" detects that a class file, though well formed, contains some sort of internal inconsistency or security problem.看来你的CreditAnxietyLogDBDAO类文件有点问题。或者看看是不是JDK版本与你的包含CreditAnxietyLogDBDAO的库不兼容。
CreditAnxietyLogDBDAO 类里有空的构造函数吗?
”
重新在你的运行平台上编译一下所有文件,
保证调用路径上是你想要调用的类,
有时候出现同名类也会报这样的错!