notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r2612 - in development/main/test: components/acme-plus components/acme-plus/src/main/net/dpml/test/acme/config components/acme-plus/src/main/net/dpml/test/acme/plus unit unit/plus unit/plus/src unit/plus/src/test unit/plus/src/test/net unit/plus/src/test/net/dpml unit/plus/src/test/net/dpml/test unit/plus/src/test/net/dpml/test/acme unit/plus/src/test/net/dpml/test/acme/plus unit/simple
- From: mcconnell AT dpml.net
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r2612 - in development/main/test: components/acme-plus components/acme-plus/src/main/net/dpml/test/acme/config components/acme-plus/src/main/net/dpml/test/acme/plus unit unit/plus unit/plus/src unit/plus/src/test unit/plus/src/test/net unit/plus/src/test/net/dpml unit/plus/src/test/net/dpml/test unit/plus/src/test/net/dpml/test/acme unit/plus/src/test/net/dpml/test/acme/plus unit/simple
- Date: Thu, 19 May 2005 01:50:08 +0000
Author: mcconnell AT dpml.net
Date: Thu May 19 01:50:05 2005
New Revision: 2612
Added:
development/main/test/components/acme-plus/src/main/net/dpml/test/acme/plus/
- copied from r2605,
development/main/test/components/acme-plus/src/main/net/dpml/test/acme/config/
development/main/test/unit/module.properties
development/main/test/unit/plus/ (props changed)
development/main/test/unit/plus/build.xml
development/main/test/unit/plus/src/
development/main/test/unit/plus/src/test/
development/main/test/unit/plus/src/test/net/
development/main/test/unit/plus/src/test/net/dpml/
development/main/test/unit/plus/src/test/net/dpml/test/
development/main/test/unit/plus/src/test/net/dpml/test/acme/
development/main/test/unit/plus/src/test/net/dpml/test/acme/plus/
development/main/test/unit/plus/src/test/net/dpml/test/acme/plus/ConfigurationTestCase.java
Removed:
development/main/test/components/acme-plus/src/main/net/dpml/test/acme/config/
development/main/test/unit/simple/build.properties
Modified:
development/main/test/components/acme-plus/build.xml
development/main/test/components/acme-plus/src/main/net/dpml/test/acme/plus/ConfigurableComponent.java
development/main/test/components/acme-plus/src/main/net/dpml/test/acme/plus/ConfigurableContainer.java
development/main/test/unit/index.xml
Log:
add advanced tests group
Modified: development/main/test/components/acme-plus/build.xml
==============================================================================
--- development/main/test/components/acme-plus/build.xml (original)
+++ development/main/test/components/acme-plus/build.xml Thu May 19
01:50:05 2005
@@ -8,8 +8,8 @@
<target name="build" depends="standard.build">
<types xmlns="plugin:dpml/composition/dpml-composition-builder">
- <type class="net.dpml.test.acme.config.ConfigurableComponent"
threadsafe="true"/>
- <type class="net.dpml.test.acme.config.ConfigurableContainer"
threadsafe="true"/>
+ <type class="net.dpml.test.acme.plus.ConfigurableComponent"
threadsafe="true"/>
+ <type class="net.dpml.test.acme.plus.ConfigurableContainer"
threadsafe="true"/>
<type class="net.dpml.test.acme.state.ManagedComponent"
threadsafe="true"/>
<type class="net.dpml.test.acme.state.ManagingContainer"
threadsafe="true"/>
</types>
Modified:
development/main/test/components/acme-plus/src/main/net/dpml/test/acme/plus/ConfigurableComponent.java
==============================================================================
---
development/main/test/components/acme-plus/src/main/net/dpml/test/acme/config/ConfigurableComponent.java
(original)
+++
development/main/test/components/acme-plus/src/main/net/dpml/test/acme/plus/ConfigurableComponent.java
Thu May 19 01:50:05 2005
@@ -16,7 +16,7 @@
* limitations under the License.
*/
-package net.dpml.test.acme.config;
+package net.dpml.test.acme.plus;
import java.util.logging.Logger;
Modified:
development/main/test/components/acme-plus/src/main/net/dpml/test/acme/plus/ConfigurableContainer.java
==============================================================================
---
development/main/test/components/acme-plus/src/main/net/dpml/test/acme/config/ConfigurableContainer.java
(original)
+++
development/main/test/components/acme-plus/src/main/net/dpml/test/acme/plus/ConfigurableContainer.java
Thu May 19 01:50:05 2005
@@ -16,7 +16,7 @@
* limitations under the License.
*/
-package net.dpml.test.acme.config;
+package net.dpml.test.acme.plus;
import java.util.logging.Logger;
Modified: development/main/test/unit/index.xml
==============================================================================
--- development/main/test/unit/index.xml (original)
+++ development/main/test/unit/index.xml Thu May 19 01:50:05 2005
@@ -22,4 +22,22 @@
</plugins>
</project>
+ <project basedir="plus">
+ <info>
+ <group>dpml/test</group>
+ <name>dpml-test-plus-unit</name>
+ <types>
+ <type>test</type>
+ </types>
+ </info>
+ <dependencies>
+ <include key="dpml-test-acme-plus"/>
+ <include key="dpml-composition-unit"/>
+ <include key="ant-junit"/>
+ </dependencies>
+ <plugins>
+ <include key="dpml-composition-builder" runtime="false"/>
+ </plugins>
+ </project>
+
</index>
Added: development/main/test/unit/module.properties
==============================================================================
--- (empty file)
+++ development/main/test/unit/module.properties Thu May 19 01:50:05
2005
@@ -0,0 +1,2 @@
+
+project.test.fork = true
Added: development/main/test/unit/plus/build.xml
==============================================================================
--- (empty file)
+++ development/main/test/unit/plus/build.xml Thu May 19 01:50:05 2005
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<project name="dpml-test-plus-unit" default="install" basedir="."
+ xmlns:transit="antlib:net.dpml.transit"
+ xmlns:x="plugin:dpml/magic/dpml-magic-core">
+
+ <transit:import uri="artifact:template:dpml/magic/standard"/>
+
+ <target name="build" depends="standard.build">
+ <!--
+ Configuration examples.
+ -->
+ <component dest="target/test/configurable-container.part"
+ xmlns="plugin:dpml/composition/dpml-composition-builder"
+ type="net.dpml.test.acme.plus.ConfigurableContainer"
+ name="container">
+ <configuration>
+ <test>
+ <color>red</color>
+ </test>
+ </configuration>
+ <parts>
+ <component name="test"
type="net.dpml.test.acme.plus.ConfigurableComponent">
+ <configuration>
+ <color>blue</color>
+ </configuration>
+ </component>
+ </parts>
+ </component>
+ </target>
+
+ <target name="package" depends="build"/>
+ <target name="install" depends="test"/>
+
+</project>
Added:
development/main/test/unit/plus/src/test/net/dpml/test/acme/plus/ConfigurationTestCase.java
==============================================================================
--- (empty file)
+++
development/main/test/unit/plus/src/test/net/dpml/test/acme/plus/ConfigurationTestCase.java
Thu May 19 01:50:05 2005
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2004 Stephen J. McConnell.
+ * Copyright 1999-2004 The 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 net.dpml.test.acme.plus;
+
+import java.net.URI;
+import java.util.Hashtable;
+import java.util.Map.Entry;
+
+import junit.framework.TestCase;
+
+import net.dpml.parts.model.Model;
+import net.dpml.parts.control.Controller;
+import net.dpml.parts.control.Manager;
+
+import net.dpml.composition.unit.CompositionHelper;
+
+/**
+ * Test a simple component case.
+ *
+ * @author <a href="mailto:dev-dpml AT lists.ibiblio.org";>The Digital Product
Meta Library</a>
+ * @version $Id: AbstractDescriptorTestCase.java 1556 2005-01-22 12:43:42Z
niclas $
+ */
+public class ConfigurationTestCase extends TestCase
+{
+ /**
+ * Test the construction of the example component and the invocation of
+ * an operation on the example service interface.
+ */
+ public void testConfigurableContainer() throws Exception
+ {
+ CompositionHelper helper = new CompositionHelper();
+ URI uri = helper.toURI( "configurable-container.part" );
+ Model model = helper.getCompositionManager().getModel( uri );
+ ConfigurableContainer container = (ConfigurableContainer)
model.getProvider().resolve( false );
+ model.getProvider().release( container );
+ helper.dispose();
+ }
+}
- svn commit: r2612 - in development/main/test: components/acme-plus components/acme-plus/src/main/net/dpml/test/acme/config components/acme-plus/src/main/net/dpml/test/acme/plus unit unit/plus unit/plus/src unit/plus/src/test unit/plus/src/test/net unit/plus/src/test/net/dpml unit/plus/src/test/net/dpml/test unit/plus/src/test/net/dpml/test/acme unit/plus/src/test/net/dpml/test/acme/plus unit/simple, mcconnell, 05/18/2005
Archive powered by MHonArc 2.6.24.