avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject svn commit: rev 20265 - in avalon/trunk/tools/project/src/test/projects/demo: . src src/main src/main/org src/main/org/apache src/main/org/apache/avalon src/main/org/apache/avalon/demo src/test src/test/org src/test/org/apache src/test/org/apache/avalon src/test/org/apache/avalon/demo src/test/org/apache/avalon/demo/test
Date Sun, 23 May 2004 17:47:32 GMT
Author: mcconnell
Date: Sun May 23 10:47:31 2004
New Revision: 20265

Added:
   avalon/trunk/tools/project/src/test/projects/demo/src/
   avalon/trunk/tools/project/src/test/projects/demo/src/main/
   avalon/trunk/tools/project/src/test/projects/demo/src/main/org/
   avalon/trunk/tools/project/src/test/projects/demo/src/main/org/apache/
   avalon/trunk/tools/project/src/test/projects/demo/src/main/org/apache/avalon/
   avalon/trunk/tools/project/src/test/projects/demo/src/main/org/apache/avalon/demo/
   avalon/trunk/tools/project/src/test/projects/demo/src/main/org/apache/avalon/demo/Demo.java
   avalon/trunk/tools/project/src/test/projects/demo/src/main/org/apache/avalon/demo/StandardDemo.java
   avalon/trunk/tools/project/src/test/projects/demo/src/test/
   avalon/trunk/tools/project/src/test/projects/demo/src/test/org/
   avalon/trunk/tools/project/src/test/projects/demo/src/test/org/apache/
   avalon/trunk/tools/project/src/test/projects/demo/src/test/org/apache/avalon/
   avalon/trunk/tools/project/src/test/projects/demo/src/test/org/apache/avalon/demo/
   avalon/trunk/tools/project/src/test/projects/demo/src/test/org/apache/avalon/demo/test/
   avalon/trunk/tools/project/src/test/projects/demo/src/test/org/apache/avalon/demo/test/DemoTestCase.java
Modified:
   avalon/trunk/tools/project/src/test/projects/demo/build.xml
Log:
add multiple test projects content, tests cases, and cross project dependendency resolution

Modified: avalon/trunk/tools/project/src/test/projects/demo/build.xml
==============================================================================
--- avalon/trunk/tools/project/src/test/projects/demo/build.xml	(original)
+++ avalon/trunk/tools/project/src/test/projects/demo/build.xml	Sun May 23 10:47:31 2004
@@ -4,4 +4,10 @@
 
   <x:project index="../../index.xml" key="demo"/>
 
+  <x:prepare/>
+  <x:javac/>
+  <x:jar/>
+  <x:test/>
+  <x:install/>
+
 </project>

Added: avalon/trunk/tools/project/src/test/projects/demo/src/main/org/apache/avalon/demo/Demo.java
==============================================================================
--- (empty file)
+++ avalon/trunk/tools/project/src/test/projects/demo/src/main/org/apache/avalon/demo/Demo.java
Sun May 23 10:47:31 2004
@@ -0,0 +1,29 @@
+/* 
+ * Copyright 2004 Apache Software Foundation
+ * Licensed  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.
+ */
+
+package org.apache.avalon.demo;
+
+
+/**
+ * Sample Demo interface. 
+ *
+ * @author <a href="mailto:dev@avalon.apache.org">Avalon Development Team</a>
+ * @version $Revision: 1.2 $ $Date: 2004/03/17 10:30:09 $
+ */
+public interface Demo 
+{
+}

Added: avalon/trunk/tools/project/src/test/projects/demo/src/main/org/apache/avalon/demo/StandardDemo.java
==============================================================================
--- (empty file)
+++ avalon/trunk/tools/project/src/test/projects/demo/src/main/org/apache/avalon/demo/StandardDemo.java
Sun May 23 10:47:31 2004
@@ -0,0 +1,39 @@
+/* 
+ * Copyright 2004 Apache Software Foundation
+ * Licensed  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.
+ */
+
+package org.apache.avalon.demo;
+
+import org.apache.avalon.widget.Widget;
+import org.apache.avalon.widget.StandardWidget;
+import org.apache.avalon.gizmo.Gizmo;
+import org.apache.avalon.gizmo.StandardGizmo;
+
+
+/**
+ * Sample demo implementation. 
+ *
+ * @author <a href="mailto:dev@avalon.apache.org">Avalon Development Team</a>
+ * @version $Revision: 1.2 $ $Date: 2004/03/17 10:30:09 $
+ */
+public class StandardDemo implements Demo 
+{
+    public StandardDemo()
+    {
+        Widget widget = new StandardWidget();
+        Gizmo gizmo = new StandardGizmo();
+    }
+}

Added: avalon/trunk/tools/project/src/test/projects/demo/src/test/org/apache/avalon/demo/test/DemoTestCase.java
==============================================================================
--- (empty file)
+++ avalon/trunk/tools/project/src/test/projects/demo/src/test/org/apache/avalon/demo/test/DemoTestCase.java
Sun May 23 10:47:31 2004
@@ -0,0 +1,42 @@
+/* 
+ * Copyright 2004 Apache Software Foundation
+ * Licensed  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.
+ */
+
+package org.apache.avalon.demo.test;
+
+import junit.framework.TestCase;
+import org.apache.avalon.demo.Demo;
+import org.apache.avalon.demo.StandardDemo;
+
+/**
+ * Demo TestCase
+ *
+ * @author <a href="mailto:dev@avalon.apache.org">Avalon Development Team</a>
+ * @version CVS $ Revision: 1.1 $
+ */
+public class DemoTestCase extends TestCase
+{
+    public DemoTestCase( String name )
+    {
+        super( name );
+    }
+
+    public void testDemo() throws Exception
+    {
+        StandardDemo demo = new StandardDemo();
+        assertTrue( "is a demo", ( demo instanceof Demo ) );
+    }
+}

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message