maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Heinz Marbaise <>
Subject Re: Maven + JUnit, what's the best approach?
Date Tue, 29 Dec 2009 13:53:42 GMT
> I'm new to Java and maven and currently in the process of building the
> entire infrastructure for java development in the company.
> i'm not quite familiar with JUnit, but i know maven makes it easy for you by
> creating default test tree and test classes in each project.
You should follow the folder structure

src/main/java ...

src/test/java ...

Further details here:

> where can i read about best practices regarding writing unit tests for my
> java apps using JUnit with MAVEN?
Just write them as usual JUnit Test Cases....

Than you can simple do mvn test to run the test cases or use 
Eclipse/Netbeans etc. run them from the IDE instead...

Kind regards
Karl Heinz Marbaise
SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz Marbaise        ICQ#: 135949029
Hauptstrasse 177                         USt.IdNr: DE191347579
52146 W├╝rselen                 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message