Skip to Content.
Sympa Menu

notify-dpml - r1160 - in trunk/lab: library test/etc/test test/src/test/dpmlx/schema/test

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: r1160 - in trunk/lab: library test/etc/test test/src/test/dpmlx/schema/test
  • Date: Wed, 1 Mar 2006 16:03:43 +0100

Author: mcconnell
Date: 2006-03-01 16:03:36 +0100 (Wed, 01 Mar 2006)
New Revision: 1160

Added:
trunk/lab/test/etc/test/library.xml
trunk/lab/test/src/test/dpmlx/schema/test/LibraryTestCase.java
Modified:
trunk/lab/library/
Log:
add definition of the library schema


Property changes on: trunk/lab/library
___________________________________________________________________
Name: svn:ignore
+ target


Added: trunk/lab/test/etc/test/library.xml
===================================================================
--- trunk/lab/test/etc/test/library.xml 2006-03-01 15:02:51 UTC (rev 1159)
+++ trunk/lab/test/etc/test/library.xml 2006-03-01 15:03:36 UTC (rev 1160)
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<library xmlns="@LIBRARY-XSD-URI@"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+ xsi:schemaLocation="
+ @LIBRARY-XSD-URI@ @LIBRARY-XSD-URI@
+ " >
+
+
+</library>

Added: trunk/lab/test/src/test/dpmlx/schema/test/LibraryTestCase.java
===================================================================
--- trunk/lab/test/src/test/dpmlx/schema/test/LibraryTestCase.java
2006-03-01 15:02:51 UTC (rev 1159)
+++ trunk/lab/test/src/test/dpmlx/schema/test/LibraryTestCase.java
2006-03-01 15:03:36 UTC (rev 1160)
@@ -0,0 +1,46 @@
+
+package dpmlx.schema.test;
+
+import java.io.File;
+import java.net.URI;
+import java.net.URL;
+
+import dpmlx.schema.StandardBuilder;
+
+import junit.framework.TestCase;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+
+/**
+ * Test the demo class..
+ */
+public class LibraryTestCase extends TestCase
+{
+ static
+ {
+ System.setProperty( "java.protocol.handler.pkgs", "net.dpml.transit"
);
+ }
+
+ StandardBuilder m_builder;
+
+ /**
+ * Test the demo class.
+ */
+ public void setUp() throws Exception
+ {
+ m_builder = new StandardBuilder();
+ }
+
+ /**
+ * Test the demo class.
+ */
+ public void testLibrary() throws Exception
+ {
+ String base = System.getProperty( "project.test.dir" );
+ File test = new File( base );
+ File file = new File( test, "library.xml" );
+ m_builder.parse( file.toURI().toASCIIString() );
+ }
+
+}




  • r1160 - in trunk/lab: library test/etc/test test/src/test/dpmlx/schema/test, mcconnell at BerliOS, 03/01/2006

Archive powered by MHonArc 2.6.24.

Top of Page