maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r465828 - in /maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054: ./ src/ src/main/ src/main/filters/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/maven/ src/main/java/org/a...
Date Thu, 19 Oct 2006 20:45:53 GMT
Author: jvanzyl
Date: Thu Oct 19 13:45:52 2006
New Revision: 465828

URL: http://svn.apache.org/viewvc?view=rev&rev=465828
Log:
o adding IT it0054

Added:
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/pom.xml
  (with props)
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/filters/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/filters/filters.properties
  (with props)
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/java/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/java/org/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/java/org/apache/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/java/org/apache/maven/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/java/org/apache/maven/it0054/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/java/org/apache/maven/it0054/Person.java
  (with props)
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/resources/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/resources/it0054.properties
  (with props)
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/test/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/test/java/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/test/java/org/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/test/java/org/apache/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/test/java/org/apache/maven/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/test/java/org/apache/maven/it0054/
    maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/test/java/org/apache/maven/it0054/PersonTest.java
  (with props)

Added: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/pom.xml
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/pom.xml?view=auto&rev=465828
==============================================================================
--- maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/pom.xml
(added)
+++ maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/pom.xml
Thu Oct 19 13:45:52 2006
@@ -0,0 +1,28 @@
+<model>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.maven</groupId>
+  <artifactId>maven-core-it0054</artifactId>
+  <description>Test resource filtering.</description>
+  <packaging>jar</packaging>
+  <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>
+  <build>
+    <filters>
+      <filter>src/main/filters/filters.properties</filter>
+    </filters>
+    <resources>
+      <resource>
+        <directory>src/main/resources</directory>
+        <filtering>true</filtering>
+      </resource>
+    </resources>
+  </build>
+</model>

Propchange: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/filters/filters.properties
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/filters/filters.properties?view=auto&rev=465828
==============================================================================
--- maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/filters/filters.properties
(added)
+++ maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/filters/filters.properties
Thu Oct 19 13:45:52 2006
@@ -0,0 +1,2 @@
+surname = van zyl
+country = Canada

Propchange: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/filters/filters.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/filters/filters.properties
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/java/org/apache/maven/it0054/Person.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/java/org/apache/maven/it0054/Person.java?view=auto&rev=465828
==============================================================================
--- maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/java/org/apache/maven/it0054/Person.java
(added)
+++ maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/java/org/apache/maven/it0054/Person.java
Thu Oct 19 13:45:52 2006
@@ -0,0 +1,16 @@
+package org.apache.maven.it0054;
+
+public class Person
+{
+    private String name;
+    
+    public void setName( String name )
+    {
+        this.name = name;
+    }
+    
+    public String getName()
+    {
+        return name;
+    }
+}

Propchange: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/java/org/apache/maven/it0054/Person.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/java/org/apache/maven/it0054/Person.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/resources/it0054.properties
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/resources/it0054.properties?view=auto&rev=465828
==============================================================================
--- maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/resources/it0054.properties
(added)
+++ maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/resources/it0054.properties
Thu Oct 19 13:45:52 2006
@@ -0,0 +1,3 @@
+name = jason
+surname = ${surname}
+country = @country@

Propchange: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/resources/it0054.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/main/resources/it0054.properties
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/test/java/org/apache/maven/it0054/PersonTest.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/test/java/org/apache/maven/it0054/PersonTest.java?view=auto&rev=465828
==============================================================================
--- maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/test/java/org/apache/maven/it0054/PersonTest.java
(added)
+++ maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/test/java/org/apache/maven/it0054/PersonTest.java
Thu Oct 19 13:45:52 2006
@@ -0,0 +1,24 @@
+package org.apache.maven.it0054;
+
+import java.util.Properties;
+import junit.framework.TestCase;
+
+public class PersonTest
+    extends TestCase
+{
+    public void testPerson()
+        throws Exception
+    {
+        Person person = new Person();
+        
+        person.setName( "foo" );
+        
+        assertEquals( "foo", person.getName() );
+
+        Properties p = new Properties();
+        p.load( getClass().getResourceAsStream( "/it0054.properties" ) );
+        assertEquals( "check name", "jason", p.getProperty( "name" ) );
+        assertEquals( "check surname", "van zyl", p.getProperty( "surname" ) );
+        assertEquals( "check country", "Canada", p.getProperty( "country" ) );
+    }
+}

Propchange: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/test/java/org/apache/maven/it0054/PersonTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/components/trunk/maven-core-integration-tests/src/test/resources/it0054/src/test/java/org/apache/maven/it0054/PersonTest.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"



Mime
View raw message