mandragorasster / hibernate-generic-dao

Automatically exported from code.google.com/p/hibernate-generic-dao
0 stars 0 forks source link

junit dependency missing in pom #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I checked out the source project and found that
com.trg.test.TestCaseSpringAutoWire.java couldn't find junit TestCase. 
Added junit to the pom and it all compiled properly:

<dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
        <version>4.5</version>
    <scope>test</scope>
</dependency>

Original issue reported on code.google.com by yowza...@gmail.com on 23 Feb 2009 at 8:13

GoogleCodeExporter commented 8 years ago
This is curious. When I tried downloading the source to my machine into a clean 
directory and run "mvn test", and it had no trouble. I wonder what it is that 
makes 
the difference. I'm going to try to understand this more before I make the 
change.

Thanks for pointing this out.

Original comment by dwolvert on 1 Mar 2009 at 5:36

GoogleCodeExporter commented 8 years ago
I imported the project from svn into an eclipse project.  Then I used the 
m2eclipse
plugin and enabled dependency management on the project.  At some point in that
process, it was showing compile error.  To fix it I added the junit dependency 
and it
all worked.  I haven't tried it from command line maven, so maybe it isn't an 
issue
with your code and more of a development environment issue on my end.  Not sure 
why
that would be the case though.

Original comment by yowza...@gmail.com on 11 Mar 2009 at 10:09

GoogleCodeExporter commented 8 years ago
I tried checking out the project fresh. I did not have the problem you 
described. It 
looks like I am also using m2eclipse. The dependency graph shows that I am 
getting 
junit through the spring-mock dependency.

Original comment by dwolvert on 12 Mar 2009 at 5:45

GoogleCodeExporter commented 8 years ago
As far as I know this is not an issue in the latest code. Reopen if the problem 
is noticed again.

Original comment by dwolvert on 22 Nov 2010 at 4:01