1:14 2006-11-15
p98 开始编写第一个示例.但始终搞不定第一个示例呀.
13:22 2006-11-15
0:48 2006-11-16
91
在Junit
第一个测试用例时
Session这个东东提示有错. 后来发现需要把Hibernate2.1的包引
0:12 2006-11-17
2:55 2006-11-17
做单元测试时出现
junit.framework.AssertionFailedError
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertNotNull(Assert.java:220)
at junit.framework.Assert.assertNotNull(Assert.java:213)
at junit.framework.TestCase.runTest(TestCase.java:138)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
这个东东又出错在那儿呢.
明天看一看junit
15:31 2006-11-17
分析发现可能并没有指这一测试的方法
junit.framework.AssertionFailedError
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertNotNull(Assert.java:220)
at junit.framework.Assert.assertNotNull(Assert.java:213)
at junit.framework.TestCase.runTest(TestCase.java:138)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
又回来了.
15:32 2006-11-17
public HibernateTest(String name) {
//super(name);
}
这个把super(name)注释点了,出错在这!!!!!!!!!!!!!!!都要哭了.
终于绿条通过单元测试.
- 大小: 154.7 KB
分享到:
相关推荐
夏昕.深入浅出Hibernate.part1.rar 夏昕.深入浅出Hibernate.part1.rar
夏昕.深入浅出Hibernate
夏昕.深入浅出Hibernate.PDF
夏昕.深入浅出Hibernate
夏昕.深入浅出hibernate
夏昕.深入浅出Hibernate,非常好的一本介绍Hibernate的书籍,简单易懂
《深入浅出Hibernate》是夏昕撰写的一本关于Hibernate框架的经典教程,对于想要掌握Hibernate技术的开发者来说,这本书无疑是一份宝贵的资源。Hibernate是一个开源的对象关系映射(ORM)框架,它极大地简化了Java...
夏昕.深入浅出hibernate.part04.rar
夏昕.深入浅出Hibernate.part2.rar
夏昕.深入浅出Hibernate 清晰PDF
夏昕.深入浅出Hibernate 第三部分
夏昕.深入浅出Hibernate 第二部分
夏昕.深入浅出Hibernate.PDF part_3
夏昕.深入浅出Hibernate.PDF part_1
夏昕.深入浅出Hibernate