[jboss-svn-commits] JBoss Common SVN: r3060 - jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/type/jbossxmlmodelgroup/test.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Mar 12 04:33:36 EDT 2009


Author: alex.loubyansky at jboss.com
Date: 2009-03-12 04:33:36 -0400 (Thu, 12 Mar 2009)
New Revision: 3060

Added:
   jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/type/jbossxmlmodelgroup/test/PropertyChoiceUnmarshallingTestCase.java
Log:
refactored JBossXmlModelGroup tests to one test per class to make it easier to include/exclude from execution

Added: jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/type/jbossxmlmodelgroup/test/PropertyChoiceUnmarshallingTestCase.java
===================================================================
--- jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/type/jbossxmlmodelgroup/test/PropertyChoiceUnmarshallingTestCase.java	                        (rev 0)
+++ jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/type/jbossxmlmodelgroup/test/PropertyChoiceUnmarshallingTestCase.java	2009-03-12 08:33:36 UTC (rev 3060)
@@ -0,0 +1,51 @@
+/*
+ * 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.xb.builder.object.type.jbossxmlmodelgroup.test;
+
+import org.jboss.test.xb.builder.AbstractBuilderTest;
+import org.jboss.test.xb.builder.object.type.jbossxmlmodelgroup.support.PropertiesChoice;
+import org.jboss.test.xb.builder.object.type.jbossxmlmodelgroup.support.RootWithPropertiesChoice;
+
+/**
+ * A PropertyChoiceUnmarshallingTestCase.
+ * 
+ * @author <a href="alex at jboss.com">Alexey Loubyansky</a>
+ * @version $Revision: 1.1 $
+ */
+public class PropertyChoiceUnmarshallingTestCase extends AbstractBuilderTest
+{
+
+   public PropertyChoiceUnmarshallingTestCase(String name)
+   {
+      super(name);
+   }
+   
+   public void testUnmarshalling() throws Exception
+   {
+      RootWithPropertiesChoice o = unmarshalObject(RootWithPropertiesChoice.class);
+      PropertiesChoice g = o.getGroup();
+      assertNotNull(g);
+      assertNull(g.getA());
+      assertNull(g.getB());
+      assertEquals("c", g.getC());
+   }
+}




More information about the jboss-svn-commits mailing list