Skip to Content.
Sympa Menu

notify-dpml - r1664 - in trunk/tutorials/components/import: . test test/etc test/etc/data test/src test/src/test test/src/test/org test/src/test/org/acme test/src/test/org/acme/testing

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: r1664 - in trunk/tutorials/components/import: . test test/etc test/etc/data test/src test/src/test test/src/test/org test/src/test/org/acme test/src/test/org/acme/testing
  • Date: Tue, 25 Jul 2006 11:48:28 +0200

Author: mcconnell
Date: 2006-07-25 11:48:27 +0200 (Tue, 25 Jul 2006)
New Revision: 1664

Added:
trunk/tutorials/components/import/test/
trunk/tutorials/components/import/test/etc/
trunk/tutorials/components/import/test/etc/data/
trunk/tutorials/components/import/test/etc/data/logging.properties
trunk/tutorials/components/import/test/src/
trunk/tutorials/components/import/test/src/test/
trunk/tutorials/components/import/test/src/test/org/
trunk/tutorials/components/import/test/src/test/org/acme/
trunk/tutorials/components/import/test/src/test/org/acme/testing/

trunk/tutorials/components/import/test/src/test/org/acme/testing/DemoTestCase.java
Log:
add pure unpolluted test of a component import

Added: trunk/tutorials/components/import/test/etc/data/logging.properties
===================================================================
--- trunk/tutorials/components/import/test/etc/data/logging.properties
2006-07-25 09:47:45 UTC (rev 1663)
+++ trunk/tutorials/components/import/test/etc/data/logging.properties
2006-07-25 09:48:27 UTC (rev 1664)
@@ -0,0 +1,7 @@
+.level=FINEST
+sun.rmi.level=INFO
+#dpml.metro.level=FINEST
+#dpml.transit.level=FINEST
+#dpml.lang.level=FINEST
+#demo.level=FINE
+

Added:
trunk/tutorials/components/import/test/src/test/org/acme/testing/DemoTestCase.java
===================================================================
---
trunk/tutorials/components/import/test/src/test/org/acme/testing/DemoTestCase.java
2006-07-25 09:47:45 UTC (rev 1663)
+++
trunk/tutorials/components/import/test/src/test/org/acme/testing/DemoTestCase.java
2006-07-25 09:48:27 UTC (rev 1664)
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2006 Stephen J. McConnell.
+ *
+ * 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.acme.testing;
+
+import java.io.File;
+import java.net.URI;
+
+import junit.framework.TestCase;
+
+import net.dpml.lang.Part;
+
+/**
+ * Deployment of the demo component.
+ *
+ * @author <a href="@PUBLISHER-URL@">@PUBLISHER-NAME@</a>
+ * @version @PROJECT-VERSION@
+ */
+public class DemoTestCase extends TestCase
+{
+ /**
+ * Test component deployment.
+ * @exception Exception if an error occurs
+ */
+ public void testComponent() throws Exception
+ {
+ URI uri = getPartURI();
+ Part part = Part.load( uri );
+ part.getContent();
+ }
+
+ private URI getPartURI() throws Exception
+ {
+ return new URI( "@PART@" );
+ }
+}




  • r1664 - in trunk/tutorials/components/import: . test test/etc test/etc/data test/src test/src/test test/src/test/org test/src/test/org/acme test/src/test/org/acme/testing, mcconnell at BerliOS, 07/25/2006

Archive powered by MHonArc 2.6.24.

Top of Page