[jboss-cvs] JBossAS SVN: r76583 - trunk/testsuite/src/main/org/jboss/test/xml.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Aug 1 12:16:16 EDT 2008


Author: adrian at jboss.org
Date: 2008-08-01 12:16:16 -0400 (Fri, 01 Aug 2008)
New Revision: 76583

Removed:
   trunk/testsuite/src/main/org/jboss/test/xml/ExtendedByImportUnitTestCase.java
   trunk/testsuite/src/main/org/jboss/test/xml/importing/
Log:
[JBAS-5827] - Remove ExtendedByImportUnitTestCase

Deleted: trunk/testsuite/src/main/org/jboss/test/xml/ExtendedByImportUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/xml/ExtendedByImportUnitTestCase.java	2008-08-01 15:22:09 UTC (rev 76582)
+++ trunk/testsuite/src/main/org/jboss/test/xml/ExtendedByImportUnitTestCase.java	2008-08-01 16:16:16 UTC (rev 76583)
@@ -1,88 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, 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.xml;
-
-import junit.framework.Test;
-
-import org.jboss.beans.metadata.plugins.StringValueMetaData;
-import org.jboss.beans.metadata.spi.PropertyMetaData;
-import org.jboss.beans.metadata.spi.ValueMetaData;
-import org.jboss.test.xml.importing.Extended;
-import org.jboss.test.xml.importing.ExtendedSchemaInitializer;
-import org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver;
-import org.jboss.xb.binding.sunday.unmarshalling.SchemaBindingResolver;
-import org.jboss.xb.binding.sunday.unmarshalling.SingletonSchemaResolverFactory;
-
-/**
- * ExtendedByImportUnitTestCase.
- * 
- * @author <a href="adrian at jboss.com">Adrian Brock</a>
- * @version $Revision$
- */
-public class ExtendedByImportUnitTestCase extends AbstractJBossXBTest
-{
-   public static SchemaBindingResolver initResolver() throws Exception
-   {
-      DefaultSchemaResolver resolver = (DefaultSchemaResolver) SingletonSchemaResolverFactory.getInstance().getSchemaBindingResolver();
-      Class clazz = ExtendedByImportUnitTestCase.class;
-      resolver.addSchemaInitializer(ExtendedSchemaInitializer.EXTENDED_NS, ExtendedSchemaInitializer.class.getName());
-      String location = getSchemaLocation(clazz, "ExtendedByImportUnitTestCase.xsd");
-      resolver.addSchemaLocation(ExtendedSchemaInitializer.EXTENDED_NS, location);
-      return resolver;
-   }
-
-   public void testExtended() throws Exception
-   {
-      Extended extended = (Extended) unmarshal(rootName + ".xml", Extended.class);
-      PropertyMetaData property = extended.getProperty("testProperty");
-      assertNotNull(property);
-      ValueMetaData vmd = property.getValue();
-      assertNotNull(vmd);
-      assertTrue(vmd instanceof StringValueMetaData);
-      assertEquals("testString", vmd.getUnderlyingValue());
-   }
-
-   protected void configureLogging()
-   {
-      enableTrace("org.jboss.test.xml");
-   }
-
-   /**
-    * Setup the test
-    * 
-    * @return the test
-    */
-   public static Test suite()
-   {
-      return suite(ExtendedByImportUnitTestCase.class);
-   }
-
-   /**
-    * Create a new SingletonSchemaBindingResolverUnitTestCase.
-    * 
-    * @param name the test name
-    */
-   public ExtendedByImportUnitTestCase(String name)
-   {
-      super(name);
-   }
-}




More information about the jboss-cvs-commits mailing list