[jboss-cvs] JBossAS SVN: r92074 - in projects/metadata/web/trunk/src/test: java/org/jboss/test/metadata/xml and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Aug 6 11:33:30 EDT 2009


Author: alex.loubyansky at jboss.com
Date: 2009-08-06 11:33:30 -0400 (Thu, 06 Aug 2009)
New Revision: 92074

Added:
   projects/metadata/web/trunk/src/test/java/org/jboss/test/metadata/xml/
   projects/metadata/web/trunk/src/test/java/org/jboss/test/metadata/xml/WebXmlValidationUnitTestCase.java
Modified:
   projects/metadata/web/trunk/src/test/resources/org/jboss/test/metadata/web/WebApp6Fragment_testEverything.xml
Log:
added xml validation tests to each metadata subproject

Added: projects/metadata/web/trunk/src/test/java/org/jboss/test/metadata/xml/WebXmlValidationUnitTestCase.java
===================================================================
--- projects/metadata/web/trunk/src/test/java/org/jboss/test/metadata/xml/WebXmlValidationUnitTestCase.java	                        (rev 0)
+++ projects/metadata/web/trunk/src/test/java/org/jboss/test/metadata/xml/WebXmlValidationUnitTestCase.java	2009-08-06 15:33:30 UTC (rev 92074)
@@ -0,0 +1,38 @@
+/*
+  * JBoss, Home of Professional Open Source
+  * Copyright 2005, JBoss Inc., and individual contributors as indicated
+  * by the @authors tag. See the copyright.txt in the distribution for a
+  * full listing of individual contributors.
+  *
+  * This is free software; you can redistribute it and/or modify it
+  * under the terms of the GNU Lesser General Public License as
+  * published by the Free Software Foundation; either version 2.1 of
+  * the License, or (at your option) any later version.
+  *
+  * This software is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+  * Lesser General Public License for more details.
+  *
+  * You should have received a copy of the GNU Lesser General Public
+  * License along with this software; if not, write to the Free
+  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+  */
+package org.jboss.test.metadata.xml;
+
+/**
+ * A XmlValidationUnitTestCase.
+ * 
+ * @author <a href="alex at jboss.com">Alexey Loubyansky</a>
+ * @version $Revision: 1.1 $
+ */
+public class WebXmlValidationUnitTestCase extends XmlValidationUnitTestCase
+{
+   public void setUp() throws Exception
+   {
+      super.setUp();
+      // files that are invalid on purpose should be excluded
+      // exclude("invalidXmlFileName.xml");
+   }
+}

Modified: projects/metadata/web/trunk/src/test/resources/org/jboss/test/metadata/web/WebApp6Fragment_testEverything.xml
===================================================================
--- projects/metadata/web/trunk/src/test/resources/org/jboss/test/metadata/web/WebApp6Fragment_testEverything.xml	2009-08-06 15:32:46 UTC (rev 92073)
+++ projects/metadata/web/trunk/src/test/resources/org/jboss/test/metadata/web/WebApp6Fragment_testEverything.xml	2009-08-06 15:33:30 UTC (rev 92074)
@@ -5,15 +5,15 @@
     version="3.0" id="web-fragment-everything">
 
    <ordering>
+     <after>
+       <name>foo4</name>
+     </after>
      <before>
        <name>foo1</name>
        <name>foo2</name>
+       <name>foo3</name>
        <others/>
-       <name>foo3</name>
      </before>
-     <after>
-       <name>foo4</name>
-     </after>
    </ordering>
 
     <icon>




More information about the jboss-cvs-commits mailing list