[jboss-svn-commits] JBoss Common SVN: r2962 - in jbossxb/trunk/src/test: resources/org/jboss/test/xb/builder/object/type/collection/test and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Jan 19 11:28:12 EST 2009
Author: alex.loubyansky at jboss.com
Date: 2009-01-19 11:28:12 -0500 (Mon, 19 Jan 2009)
New Revision: 2962
Added:
jbossxb/trunk/src/test/resources/org/jboss/test/xb/builder/object/type/collection/test/ComponentType_testPass.xml
Modified:
jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/type/collection/test/ComponentTypeUnitTestCase.java
Log:
JBXB-165 (just adding a valid input to make sure the test can pass in principle)
Modified: jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/type/collection/test/ComponentTypeUnitTestCase.java
===================================================================
--- jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/type/collection/test/ComponentTypeUnitTestCase.java 2009-01-19 16:25:36 UTC (rev 2961)
+++ jbossxb/trunk/src/test/java/org/jboss/test/xb/builder/object/type/collection/test/ComponentTypeUnitTestCase.java 2009-01-19 16:28:12 UTC (rev 2962)
@@ -21,9 +21,12 @@
*/
package org.jboss.test.xb.builder.object.type.collection.test;
+import java.util.List;
+
import junit.framework.Test;
import org.jboss.test.xb.builder.AbstractBuilderTest;
import org.jboss.test.xb.builder.object.type.collection.support.RootSomeInterface;
+import org.jboss.test.xb.builder.object.type.collection.support.SomeInterface;
import org.jboss.xb.binding.JBossXBException;
/**
@@ -43,6 +46,14 @@
return suite(ComponentTypeUnitTestCase.class);
}
+ public void testPass() throws Exception
+ {
+ RootSomeInterface root = unmarshalObject(RootSomeInterface.class);
+ List<SomeInterface> list = root.getIface();
+ assertNotNull(list);
+ assertEquals(3, list.size());
+ }
+
@SuppressWarnings({"ThrowableResultOfMethodCallIgnored"})
public void testFailure() throws Throwable
{
Added: jbossxb/trunk/src/test/resources/org/jboss/test/xb/builder/object/type/collection/test/ComponentType_testPass.xml
===================================================================
--- jbossxb/trunk/src/test/resources/org/jboss/test/xb/builder/object/type/collection/test/ComponentType_testPass.xml (rev 0)
+++ jbossxb/trunk/src/test/resources/org/jboss/test/xb/builder/object/type/collection/test/ComponentType_testPass.xml 2009-01-19 16:28:12 UTC (rev 2962)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<root-some-interface>
+ <iface>ONE</iface>
+ <iface>TWO</iface>
+ <iface>THREE</iface>
+</root-some-interface>
More information about the jboss-svn-commits
mailing list