thanks,

actually i've already setup a few things:

   - artifactory
   - hudson
   - scm (tesing accurev)
   - maven2
   - issue tracking is currently bugzilla, but might be jira

i'm looking at the default test classes maven creates, are they obsolete?
i saw that maven added junit 3.8.1 instead of 4.x as a dependency and
auto generated this code:

*import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

/**
 * Unit test for simple App.
 */
public class DbUtilTest
    extends TestCase
{
    /**
     * Create the test case
     *
     * @param testName name of the test case
     */
    public DbUtilTest( String testName )
    {
        super( testName );
    }

    /**
     * @return the suite of tests being tested
     */
    public static Test suite()
    {
        return new TestSuite( DbUtilTest.class );
    }

    /**
     * Rigorous Test :-)
     */
    public void testApp()
    {
        assertTrue( true );
    }

}*


should i change the junit in the pom to 4.7?
in some junit examples they use annotations (@Test), which doesn't work with
that code..

i'm a bit confused...



On Tue, Dec 29, 2009 at 3:58 PM, Ognjen Blagojevic <[email protected]>wrote:

> eyal edri wrote:
>
>> 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.
>>
>> where can i read about best practices regarding writing unit tests for my
>> java apps using JUnit with MAVEN?
>>
>> thanks.
>>
>
> Start with:
>
> http://maven.apache.org/guides/getting-started/index.html
> http://code.google.com/p/t2framework/wiki/JUnitQuickTutorial
>
> I you are building an infrastructure, aside from JUnit and Maven knowledge,
> you will (probably) need to install, in order of importance:
>
> 1. Version control system such as Subversion
> 2. Maven ropository, such as Apache Archiva, Artifactory or Nexus
> 3. Mailing list manager, such as Mailman
> 4. Issue tracking system, such as Trac
> 5. Continuos integration system, such as Apache Continuum
>
> Regards,
> Ognjen
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Eyal Edri

Reply via email to