-->
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: Tests don't compile when running 'build junitreport'
PostPosted: Tue Jun 08, 2004 12:29 pm 
Newbie

Joined: Tue Jun 08, 2004 12:25 pm
Posts: 1
According to the readme.txt file, to run the tests run "build junitreport". When I do so, many of the tests don't compile because of missing import statements. For example, the FumTest.java file does not import java.io.IOException. I am using version 2.1.4 but have noticed the problem also with 2.1.3. Has anyone else noticed this? Am I missing something??? Thanks.


Top
 Profile  
 
 Post subject: junitreport javac fail
PostPosted: Fri Jun 18, 2004 4:51 am 
Newbie

Joined: Fri Jun 18, 2004 4:45 am
Posts: 2
Mee too! I am using ant-1.6.1 and Hibernate-2.1. i tried to do ant junitreport but failed. Any ideas anyone?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 10, 2004 3:22 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.