-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: How to run testcases of hibernate on eclipse
PostPosted: Sat Nov 26, 2005 11:50 pm 
Newbie

Joined: Sat Nov 26, 2005 10:19 pm
Posts: 4
Hi all,

I'm trying to run testcases (org.hibernate.test package) included in hibernate 3.1rc3 on eclipse 3.1, because I check the behavior of hibernate. By using Ant task (e.g. junitreport, junitsingle) I can build and then run the source codes of those testcases. However, I cannot do those testcases by using eclipse's junit (plugin). Eclipse displays the following message on eclipse's console view.

Can you help me, please.
Thanks in advice,

Muga Nishizawa

--

(Run testArrayJoinFetch() in org.hibernate.test.array.ArrayTest by
using eclipse's junit)

log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
org.hibernate.HibernateException: The dialect was not set. Set the property hibernate.dialect.
at org.hibernate.dialect.Dialect.getDialect(Dialect.java:553)
at org.hibernate.test.TestCase.buildSessionFactory(TestCase.java:60)
at org.hibernate.test.TestCase.setUp(TestCase.java:130)
at junit.framework.TestCase.runBare(TestCase.java:125)
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 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

Hibernate version:
Hibernate 3.1rc3


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 26, 2005 11:54 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
Are hibernate.properties and log4j.properties (under the /etc folder) in the classpath?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 27, 2005 12:16 am 
Newbie

Joined: Sat Nov 26, 2005 10:19 pm
Posts: 4
Hi Dennis,
Thanks for your quick response.

dennisbyrne wrote:
Are hibernate.properties and log4j.properties (under the /etc folder) in the classpath?


I checked that there are hibernate.properties and log4j.properties in "etc" directory. But, I don't know how to check if the classpath includes the "etc" directory or not.

Please tell me the way for checking it.
Thanks,

Muga Nishizawa


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 27, 2005 12:31 am 
Newbie

Joined: Sat Nov 26, 2005 10:19 pm
Posts: 4
I want to invoke junit by using the following method on eclipse 3.1.
http://www.csg.is.titech.ac.jp/~muga/temp/runjunit.JPG

Muga Nishizawa


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 27, 2005 1:56 am 
Newbie

Joined: Sat Nov 26, 2005 10:19 pm
Posts: 4
Sorry Dennis,

Your comment was a precise advice to resolve my problems. I want to present a credit for you.

Muga Nishizawa


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.