[weld-commits] Weld SVN: r5247 - in archetypes/trunk/jsf/servlet-minimal/src/main/resources: archetype-resources/src/test/java and 1 other directory.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Wed Dec 9 00:40:24 EST 2009


Author: dan.j.allen
Date: 2009-12-09 00:40:22 -0500 (Wed, 09 Dec 2009)
New Revision: 5247

Added:
   archetypes/trunk/jsf/servlet-minimal/src/main/resources/archetype-resources/src/test/java/HelloWorldTest.java
Modified:
   archetypes/trunk/jsf/servlet-minimal/src/main/resources/META-INF/archetype.xml
Log:
add simple test


Modified: archetypes/trunk/jsf/servlet-minimal/src/main/resources/META-INF/archetype.xml
===================================================================
--- archetypes/trunk/jsf/servlet-minimal/src/main/resources/META-INF/archetype.xml	2009-12-09 05:21:24 UTC (rev 5246)
+++ archetypes/trunk/jsf/servlet-minimal/src/main/resources/META-INF/archetype.xml	2009-12-09 05:40:22 UTC (rev 5247)
@@ -12,7 +12,9 @@
    <sources>
       <source>src/main/java/HelloWorld.java</source>
    </sources>
-   <testSources />
+   <testSources>
+      <source>src/test/java/HelloWorldTest.java</source>
+   </testSources>
    <testResources>
       <resource>src/test/resources/jetty-env.xml</resource>
    </testResources>

Added: archetypes/trunk/jsf/servlet-minimal/src/main/resources/archetype-resources/src/test/java/HelloWorldTest.java
===================================================================
--- archetypes/trunk/jsf/servlet-minimal/src/main/resources/archetype-resources/src/test/java/HelloWorldTest.java	                        (rev 0)
+++ archetypes/trunk/jsf/servlet-minimal/src/main/resources/archetype-resources/src/test/java/HelloWorldTest.java	2009-12-09 05:40:22 UTC (rev 5247)
@@ -0,0 +1,12 @@
+package ${package};
+
+import org.testng.annotations.Test;
+
+public class HelloWorldTest
+{
+   @Test
+   public void testGetText() {
+      HelloWorld fixture = new HelloWorld();
+      assert "Hello World!".equals(fixture.getText());
+   }
+}



More information about the weld-commits mailing list