mirror of https://github.com/apache/maven.git
[MNG-7474] Add and fix IT (#192)
This commit is contained in:
parent
fac10d2c91
commit
7d52000842
|
@ -106,6 +106,7 @@ public class IntegrationTestSuite
|
|||
// Tests that don't run stable and need to be fixed
|
||||
// -------------------------------------------------------------------------------------------------------------
|
||||
// suite.addTestSuite( MavenIT0108SnapshotUpdateTest.class ); -- MNG-3137
|
||||
suite.addTestSuite( MavenITmng7474SessionScopeTest.class );
|
||||
suite.addTestSuite( MavenITmng7529VersionRangeRepositorySelection.class );
|
||||
suite.addTestSuite( MavenITmng7443ConsistencyOfOptionalProjectsAndProfilesTest.class );
|
||||
suite.addTestSuite( MavenITmng7353CliGoalInvocationTest.class );
|
||||
|
|
|
@ -40,7 +40,12 @@ public class MavenITmng7474SessionScopeTest
|
|||
{
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-7474-session-scope" );
|
||||
|
||||
Verifier verifier = newVerifier( testDir.getAbsolutePath() );
|
||||
Verifier verifier = newVerifier( new File( testDir, "plugin" ).getAbsolutePath() );
|
||||
verifier.executeGoal( "install" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
||||
verifier = newVerifier( new File( testDir, "project" ).getAbsolutePath() );
|
||||
verifier.executeGoal( "validate" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.apache.maven.its.mng7474</groupId>
|
||||
<artifactId>parent</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<groupId>org.apache.maven.its.mng7474</groupId>
|
||||
<artifactId>plugin</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<packaging>maven-plugin</packaging>
|
||||
|
@ -14,7 +9,7 @@
|
|||
<properties>
|
||||
<maven.compiler.source>1.7</maven.compiler.source>
|
||||
<maven.compiler.target>1.7</maven.compiler.target>
|
||||
<maven-version>3.1.1</maven-version>
|
||||
<maven-version>3.2.5</maven-version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
@ -23,6 +18,12 @@
|
|||
<artifactId>javax.inject</artifactId>
|
||||
<version>1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core</artifactId>
|
||||
<version>${maven-version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugin-tools</groupId>
|
||||
<artifactId>maven-plugin-annotations</artifactId>
|
||||
|
|
|
@ -19,12 +19,13 @@ package org.apache.maven.its.mng7474;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import javax.enterprise.context.SessionScoped;
|
||||
import javax.inject.Named;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
|
||||
import org.apache.maven.SessionScoped;
|
||||
|
||||
@SessionScoped
|
||||
@Named
|
||||
public class TestComponent
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
<packaging>pom</packaging>
|
||||
|
||||
<modules>
|
||||
<module>plugin</module>
|
||||
<module>project-a</module>
|
||||
<module>project-b</module>
|
||||
</modules>
|
Loading…
Reference in New Issue