-->
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.  [ 3 posts ] 
Author Message
 Post subject: JUnit tests fail in Hibernate 2.1.2
PostPosted: Thu Feb 05, 2004 8:56 am 
Beginner
Beginner

Joined: Wed Jan 21, 2004 10:15 am
Posts: 24
Location: Munich, Germany
Hello!

When performing the unit tests of Hibernate ("ant junitreport"), I get errors.

I've tried Hibernate 2.1.2 with the following RDBMSs:

    MySQL 4.0.17 (MyISAM table type), Connector/J 3.0.10
    MySQL 4.0.17 (InnoDB table type), Connector/J 3.0.10
    Oracle 8.1.7, classes12


My Java version is 1.4.2_03-b02 (Sun), and I am running SuSE Linux 8.0 on a dual processor machine.

The errors I get are the following:

MySQL 4.0.17 MyISAM: 5 errors.

MySQL 4.0.17 InnoDB: 1 failure and 5 errors.

Oracle 8.1.7: 3 errors.

I suppose that the more detailed information is only interesting to the developers, and so I don't want to go into detail here. I can send the contents of the 'testout' directories to whom it may concern by email. I'd be glad to do that.

Do other users have the same experience?

Greetings,
Christian


Top
 Profile  
 
 Post subject: Junitreport compile fail
PostPosted: Fri Jun 18, 2004 4:59 am 
Newbie

Joined: Fri Jun 18, 2004 4:45 am
Posts: 2
I am using ant 1.6.1 and Hibernate 2.1. I tried to run:

ant junitreport

and I got lots of javac compilation error. any idea?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 10, 2004 3:21 am 
Newbie

Joined: Tue Aug 10, 2004 3:14 am
Posts: 2
Hi there.

Today I installed Hibernate 2.1.4 and Ant 1.6.2 and, like you, encountered the same problem.

Where you issue the command "ant junitreport" the ant task fails to run. The reason for this is that the compliation errors are due to missing import statements in FumTest.java. You need to add the following import statements:

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import net.sf.hibernate.FlushMode;
import org.apache.log4j.Logger;

You must also obtain a handle to the logger object using the following statement:

private Logger log = Logger.getRootLogger();

Once I had made these changes I was able to run the tests.

cheers,

Greg


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.