continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wsm...@apache.org
Subject svn commit: r919437 - in /continuum/sandbox/examples/env-test: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/continuum/ src/main/java/org/apache/continuum/examples/ src/test/ src/test/java/ src/t...
Date Fri, 05 Mar 2010 15:02:04 GMT
Author: wsmoak
Date: Fri Mar  5 15:02:04 2010
New Revision: 919437

URL: http://svn.apache.org/viewvc?rev=919437&view=rev
Log:
Add example to test whether environment variables are set in a build environment.

Added:
    continuum/sandbox/examples/env-test/
    continuum/sandbox/examples/env-test/pom.xml
    continuum/sandbox/examples/env-test/src/
    continuum/sandbox/examples/env-test/src/main/
    continuum/sandbox/examples/env-test/src/main/java/
    continuum/sandbox/examples/env-test/src/main/java/org/
    continuum/sandbox/examples/env-test/src/main/java/org/apache/
    continuum/sandbox/examples/env-test/src/main/java/org/apache/continuum/
    continuum/sandbox/examples/env-test/src/main/java/org/apache/continuum/examples/
    continuum/sandbox/examples/env-test/src/main/java/org/apache/continuum/examples/App.java
    continuum/sandbox/examples/env-test/src/test/
    continuum/sandbox/examples/env-test/src/test/java/
    continuum/sandbox/examples/env-test/src/test/java/org/
    continuum/sandbox/examples/env-test/src/test/java/org/apache/
    continuum/sandbox/examples/env-test/src/test/java/org/apache/continuum/
    continuum/sandbox/examples/env-test/src/test/java/org/apache/continuum/examples/
    continuum/sandbox/examples/env-test/src/test/java/org/apache/continuum/examples/AppTest.java

Added: continuum/sandbox/examples/env-test/pom.xml
URL: http://svn.apache.org/viewvc/continuum/sandbox/examples/env-test/pom.xml?rev=919437&view=auto
==============================================================================
--- continuum/sandbox/examples/env-test/pom.xml (added)
+++ continuum/sandbox/examples/env-test/pom.xml Fri Mar  5 15:02:04 2010
@@ -0,0 +1,38 @@
+<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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.continuum.examples</groupId>
+  <artifactId>env-test</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0-SNAPSHOT</version>
+  <name>env-test</name>
+  <description>Example project to print out environment with exec:exec to test build
environment</description>
+  <url>http://maven.apache.org</url>
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>exec-maven-plugin</artifactId>
+        <version>1.1</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>exec</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <executable>env</executable>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Added: continuum/sandbox/examples/env-test/src/main/java/org/apache/continuum/examples/App.java
URL: http://svn.apache.org/viewvc/continuum/sandbox/examples/env-test/src/main/java/org/apache/continuum/examples/App.java?rev=919437&view=auto
==============================================================================
--- continuum/sandbox/examples/env-test/src/main/java/org/apache/continuum/examples/App.java
(added)
+++ continuum/sandbox/examples/env-test/src/main/java/org/apache/continuum/examples/App.java
Fri Mar  5 15:02:04 2010
@@ -0,0 +1,13 @@
+package org.apache.continuum.examples;
+
+/**
+ * Hello world!
+ *
+ */
+public class App 
+{
+    public static void main( String[] args )
+    {
+        System.out.println( "Hello World!" );
+    }
+}

Added: continuum/sandbox/examples/env-test/src/test/java/org/apache/continuum/examples/AppTest.java
URL: http://svn.apache.org/viewvc/continuum/sandbox/examples/env-test/src/test/java/org/apache/continuum/examples/AppTest.java?rev=919437&view=auto
==============================================================================
--- continuum/sandbox/examples/env-test/src/test/java/org/apache/continuum/examples/AppTest.java
(added)
+++ continuum/sandbox/examples/env-test/src/test/java/org/apache/continuum/examples/AppTest.java
Fri Mar  5 15:02:04 2010
@@ -0,0 +1,38 @@
+package org.apache.continuum.examples;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest 
+    extends TestCase
+{
+    /**
+     * Create the test case
+     *
+     * @param testName name of the test case
+     */
+    public AppTest( String testName )
+    {
+        super( testName );
+    }
+
+    /**
+     * @return the suite of tests being tested
+     */
+    public static Test suite()
+    {
+        return new TestSuite( AppTest.class );
+    }
+
+    /**
+     * Rigourous Test :-)
+     */
+    public void testApp()
+    {
+        assertTrue( true );
+    }
+}



Mime
View raw message