~ubuntu-branches/ubuntu/precise/surefire/precise

« back to all changes in this revision

Viewing changes to surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/JUnit44Dep.java

  • Committer: Bazaar Package Importer
  • Author(s): Miguel Landaeta
  • Date: 2011-10-10 20:42:16 UTC
  • mfrom: (2.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20111010204216-cemva69wkagf4fay
Tags: 2.10-1
* Team upload.
* New upstream release.
* Refresh and remove unneccesary patches.
* Add Build-Depends on libsurefire-java and
  libmaven-common-artifact-filters-java.
* Drop outdated Maven artifact surefire-junit.
* Provide new Maven artifacts: surefire-junit3, maven-surefire-common,
  common-junit3, common-junit4, surefire-junit47 and surefire-testng-utils.
* Fix clean target to allow "two in a row" builds.
* Update Vcs-Browser field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
package org.apache.maven.surefire.its;
2
 
 
3
 
 
4
 
import junit.framework.TestCase;
5
 
import org.apache.maven.it.Verifier;
6
 
import org.apache.maven.it.util.ResourceExtractor;
7
 
 
8
 
import java.io.File;
9
 
 
10
 
/**
11
 
 * Test project using JUnit4.4 -dep.  junit-dep includes only junit.* classes, and depends explicitly on hamcrest-core
12
 
 * 
13
 
 * @author <a href="mailto:dfabulich@apache.org">Dan Fabulich</a>
14
 
 * 
15
 
 */
16
 
public class JUnit44Dep
17
 
    extends TestCase
18
 
{
19
 
    public void testJUnit44Dep ()
20
 
        throws Exception
21
 
    {
22
 
        File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/junit44-dep" );
23
 
 
24
 
        Verifier verifier = new Verifier( testDir.getAbsolutePath() );
25
 
        verifier.executeGoal( "test" );
26
 
        verifier.verifyErrorFreeLog();
27
 
        verifier.resetStreams();
28
 
        
29
 
        HelperAssertions.assertTestSuiteResults( 1, 0, 0, 0, testDir );
30
 
    }
31
 
}