mirror of https://github.com/apache/maven.git
o Decoupled it0032 from production plugins
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@731995 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a788090414
commit
73bfccc412
|
@ -35,15 +35,12 @@ public class MavenIT0032Test
|
|||
throws Exception
|
||||
{
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0032" );
|
||||
|
||||
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
|
||||
verifier.executeGoal( "package" );
|
||||
verifier.assertFilePresent( "target/classes/org/apache/maven/it0032/Person.class" );
|
||||
verifier.assertFilePresent( "target/test-classes/org/apache/maven/it0032/PersonTest.class" );
|
||||
verifier.assertFilePresent( "target/maven-it-it0032-1.0.jar" );
|
||||
verifier.assertFilePresent( "target/maven-it-it0032-1.0.jar!/it0032.properties" );
|
||||
verifier.setAutoclean( false );
|
||||
verifier.executeGoal( "initialize" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,20 +1,34 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<name>Maven Integration Test :: it0032</name>
|
||||
|
||||
<groupId>org.apache.maven.its.it0032</groupId>
|
||||
<artifactId>maven-it-it0032</artifactId>
|
||||
<description>Tests that a specified Maven version requirement that is lower doesn't cause any problems</description>
|
||||
<packaging>jar</packaging>
|
||||
<artifactId>test</artifactId>
|
||||
<version>1.0</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>3.8.1</version>
|
||||
<type>jar</type>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Maven Integration Test :: it0032</name>
|
||||
<description>Tests that a specified Maven version requirement that is lower doesn't cause any problems</description>
|
||||
|
||||
<prerequisites>
|
||||
<maven>2.0-alpha-3</maven>
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0032;
|
||||
|
||||
public class Person
|
||||
{
|
||||
private String name;
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
name = jason
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0032;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class PersonTest
|
||||
extends TestCase
|
||||
{
|
||||
public void testPerson()
|
||||
{
|
||||
Person person = new Person();
|
||||
|
||||
person.setName( "foo" );
|
||||
|
||||
assertEquals( "foo", person.getName() );
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue