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
|
// Tests that don't run stable and need to be fixed
|
||||||
// -------------------------------------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------------------------------------
|
||||||
// suite.addTestSuite( MavenIT0108SnapshotUpdateTest.class ); -- MNG-3137
|
// suite.addTestSuite( MavenIT0108SnapshotUpdateTest.class ); -- MNG-3137
|
||||||
|
suite.addTestSuite( MavenITmng7474SessionScopeTest.class );
|
||||||
suite.addTestSuite( MavenITmng7529VersionRangeRepositorySelection.class );
|
suite.addTestSuite( MavenITmng7529VersionRangeRepositorySelection.class );
|
||||||
suite.addTestSuite( MavenITmng7443ConsistencyOfOptionalProjectsAndProfilesTest.class );
|
suite.addTestSuite( MavenITmng7443ConsistencyOfOptionalProjectsAndProfilesTest.class );
|
||||||
suite.addTestSuite( MavenITmng7353CliGoalInvocationTest.class );
|
suite.addTestSuite( MavenITmng7353CliGoalInvocationTest.class );
|
||||||
|
|
|
@ -40,7 +40,12 @@ public class MavenITmng7474SessionScopeTest
|
||||||
{
|
{
|
||||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-7474-session-scope" );
|
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.executeGoal( "validate" );
|
||||||
verifier.verifyErrorFreeLog();
|
verifier.verifyErrorFreeLog();
|
||||||
verifier.resetStreams();
|
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">
|
<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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<parent>
|
<groupId>org.apache.maven.its.mng7474</groupId>
|
||||||
<groupId>org.apache.maven.its.mng7474</groupId>
|
|
||||||
<artifactId>parent</artifactId>
|
|
||||||
<version>1.0-SNAPSHOT</version>
|
|
||||||
</parent>
|
|
||||||
|
|
||||||
<artifactId>plugin</artifactId>
|
<artifactId>plugin</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<packaging>maven-plugin</packaging>
|
<packaging>maven-plugin</packaging>
|
||||||
|
@ -14,7 +9,7 @@
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>1.7</maven.compiler.source>
|
<maven.compiler.source>1.7</maven.compiler.source>
|
||||||
<maven.compiler.target>1.7</maven.compiler.target>
|
<maven.compiler.target>1.7</maven.compiler.target>
|
||||||
<maven-version>3.1.1</maven-version>
|
<maven-version>3.2.5</maven-version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -23,6 +18,12 @@
|
||||||
<artifactId>javax.inject</artifactId>
|
<artifactId>javax.inject</artifactId>
|
||||||
<version>1</version>
|
<version>1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.maven</groupId>
|
||||||
|
<artifactId>maven-core</artifactId>
|
||||||
|
<version>${maven-version}</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.plugin-tools</groupId>
|
<groupId>org.apache.maven.plugin-tools</groupId>
|
||||||
<artifactId>maven-plugin-annotations</artifactId>
|
<artifactId>maven-plugin-annotations</artifactId>
|
||||||
|
|
|
@ -19,12 +19,13 @@ package org.apache.maven.its.mng7474;
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import javax.enterprise.context.SessionScoped;
|
|
||||||
import javax.inject.Named;
|
import javax.inject.Named;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.concurrent.CopyOnWriteArrayList;
|
import java.util.concurrent.CopyOnWriteArrayList;
|
||||||
|
|
||||||
|
import org.apache.maven.SessionScoped;
|
||||||
|
|
||||||
@SessionScoped
|
@SessionScoped
|
||||||
@Named
|
@Named
|
||||||
public class TestComponent
|
public class TestComponent
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>plugin</module>
|
|
||||||
<module>project-a</module>
|
<module>project-a</module>
|
||||||
<module>project-b</module>
|
<module>project-b</module>
|
||||||
</modules>
|
</modules>
|
Loading…
Reference in New Issue