[jboss-cvs] JBossAS SVN: r64388 - in projects/microcontainer/trunk/kernel/src: main/org/jboss/kernel/plugins/annotations and 2 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Jul 31 16:31:06 EDT 2007
Author: alesj
Date: 2007-07-31 16:31:06 -0400 (Tue, 31 Jul 2007)
New Revision: 64388
Added:
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromCustomCollectionSimpleBean.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromCustomSignatureCollectionSimpleBean.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromObjectsCollectionSimpleBean.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromPreinstCollectionSimpleBean.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromStringsCollectionSimpleBean.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromStringsCollectionUnmodifiableObject.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/InterfaceCollectionSimpleBean.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/MyObject1.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/MyObject2.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/NotACollectionSimpleBean.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/OnObjectCollectionSimpleBean.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/TypeOverrideCollectionSimpleBean.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/test/CollectionAnnotationTestCase.java
Modified:
projects/microcontainer/trunk/kernel/src/main/org/jboss/beans/metadata/plugins/annotations/JavaBeanValue.java
projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations/BasicBeanAnnotationAdapter.java
projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations/ValueUtil.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromFactorySimpleBean.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromFactoryWithIntParamSimpleBean.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromFactoryWithParamSimpleBean.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/test/AbstractKernelConfigTest.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/test/ConfigTestSuite.java
Log:
Fixed compiling. :-(
Collection annotations tests.
Modified: projects/microcontainer/trunk/kernel/src/main/org/jboss/beans/metadata/plugins/annotations/JavaBeanValue.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/main/org/jboss/beans/metadata/plugins/annotations/JavaBeanValue.java 2007-07-31 19:54:57 UTC (rev 64387)
+++ projects/microcontainer/trunk/kernel/src/main/org/jboss/beans/metadata/plugins/annotations/JavaBeanValue.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -33,5 +33,5 @@
@Target({ElementType.METHOD, ElementType.PARAMETER})
public @interface JavaBeanValue
{
- String clazz() default "";
+ String value() default "";
}
Modified: projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations/BasicBeanAnnotationAdapter.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations/BasicBeanAnnotationAdapter.java 2007-07-31 19:54:57 UTC (rev 64387)
+++ projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations/BasicBeanAnnotationAdapter.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -68,7 +68,7 @@
ValueFactoryAnnotationPlugin.INSTANCE,
ThisValueAnnotationPlugin.INSTANCE,
NullValueAnnotationPlugin.INSTANCE,
- // FIXME JavaBeanValueAnnotationPlugin.INSTANCE,
+ JavaBeanValueAnnotationPlugin.INSTANCE,
CollectionValueAnnotationPlugin.INSTANCE,
ListValueAnnotationPlugin.INSTANCE,
SetValueAnnotationPlugin.INSTANCE,
@@ -100,7 +100,7 @@
addAnnotationPlugin(ValueFactoryAnnotationPlugin.INSTANCE);
addAnnotationPlugin(ThisValueAnnotationPlugin.INSTANCE);
addAnnotationPlugin(NullValueAnnotationPlugin.INSTANCE);
- // FIXME addAnnotationPlugin(JavaBeanValueAnnotationPlugin.INSTANCE);
+ addAnnotationPlugin(JavaBeanValueAnnotationPlugin.INSTANCE);
addAnnotationPlugin(CollectionValueAnnotationPlugin.INSTANCE);
addAnnotationPlugin(ListValueAnnotationPlugin.INSTANCE);
addAnnotationPlugin(SetValueAnnotationPlugin.INSTANCE);
Modified: projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations/ValueUtil.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations/ValueUtil.java 2007-07-31 19:54:57 UTC (rev 64387)
+++ projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations/ValueUtil.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -23,11 +23,11 @@
import org.jboss.beans.metadata.plugins.annotations.Inject;
import org.jboss.beans.metadata.plugins.annotations.NullValue;
+import org.jboss.beans.metadata.plugins.annotations.Parameter;
import org.jboss.beans.metadata.plugins.annotations.StringValue;
import org.jboss.beans.metadata.plugins.annotations.ThisValue;
import org.jboss.beans.metadata.plugins.annotations.Value;
import org.jboss.beans.metadata.plugins.annotations.ValueFactory;
-import org.jboss.beans.metadata.plugins.annotations.Parameter;
import org.jboss.beans.metadata.plugins.annotations.JavaBeanValue;
import org.jboss.beans.metadata.spi.ValueMetaData;
@@ -85,14 +85,12 @@
vmd = NullValueAnnotationPlugin.INSTANCE.createValueMetaData(nullValue);
}
- /* FIXME
JavaBeanValue javabean = value.javabean();
- if (isAttributePresent(javabean.clazz()))
+ if (isAttributePresent(javabean.value()))
{
checkValueMetaData(vmd);
vmd = JavaBeanValueAnnotationPlugin.INSTANCE.createValueMetaData(javabean);
}
- */
if (vmd == null)
throw new IllegalArgumentException("No value set on @Value annotation!");
@@ -131,14 +129,12 @@
vmd = NullValueAnnotationPlugin.INSTANCE.createValueMetaData(nullValue);
}
- /* FIXME
JavaBeanValue javabean = parameter.javabean();
- if (isAttributePresent(javabean.clazz()))
+ if (isAttributePresent(javabean.value()))
{
checkValueMetaData(vmd);
vmd = JavaBeanValueAnnotationPlugin.INSTANCE.createValueMetaData(javabean);
}
- */
if (vmd == null)
throw new IllegalArgumentException("No value set on @Value annotation!");
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromCustomCollectionSimpleBean.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromCustomCollectionSimpleBean.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromCustomCollectionSimpleBean.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -0,0 +1,51 @@
+/*
+* 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.kernel.config.support;
+
+import java.util.Collection;
+
+import org.jboss.beans.metadata.plugins.annotations.CollectionValue;
+import org.jboss.beans.metadata.plugins.annotations.StringValue;
+import org.jboss.beans.metadata.plugins.annotations.Value;
+
+/**
+ * A simple bean
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class FromCustomCollectionSimpleBean extends SimpleBean
+{
+ @CollectionValue(
+ value = {
+ @Value(string = @StringValue("string1")),
+ @Value(string = @StringValue("string2")),
+ @Value(string = @StringValue("string2")),
+ @Value(string = @StringValue("string1"))
+ },
+ elementClass = "java.lang.String",
+ clazz = "org.jboss.test.kernel.config.support.CustomCollection"
+ )
+ public void setCollection(Collection collection)
+ {
+ super.setCollection(collection);
+ }
+}
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromCustomSignatureCollectionSimpleBean.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromCustomSignatureCollectionSimpleBean.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromCustomSignatureCollectionSimpleBean.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -0,0 +1,48 @@
+/*
+* 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.kernel.config.support;
+
+import org.jboss.beans.metadata.plugins.annotations.CollectionValue;
+import org.jboss.beans.metadata.plugins.annotations.Value;
+import org.jboss.beans.metadata.plugins.annotations.StringValue;
+
+/**
+ * A simple bean
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class FromCustomSignatureCollectionSimpleBean extends SimpleBean
+{
+ @CollectionValue(
+ value = {
+ @Value(string = @StringValue("string1")),
+ @Value(string = @StringValue("string2")),
+ @Value(string = @StringValue("string2")),
+ @Value(string = @StringValue("string1"))
+ },
+ elementClass = "java.lang.String"
+ )
+ public void setCustomCollection(CustomCollection collection)
+ {
+ super.setCustomCollection(collection);
+ }
+}
Modified: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromFactorySimpleBean.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromFactorySimpleBean.java 2007-07-31 19:54:57 UTC (rev 64387)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromFactorySimpleBean.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -37,7 +37,7 @@
* @author <a href="ales.justin at jboss.com">Ales Justin</a>
*/
@Factory(
- factory = @Value(javabean = @JavaBeanValue(clazz = "org.jboss.test.kernel.config.support.SimpleBeanFactory")),
+ factory = @Value(javabean = @JavaBeanValue("org.jboss.test.kernel.config.support.SimpleBeanFactory")),
factoryMethod = "createSimpleBean"
)
public class FromFactorySimpleBean extends SimpleBean
Modified: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromFactoryWithIntParamSimpleBean.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromFactoryWithIntParamSimpleBean.java 2007-07-31 19:54:57 UTC (rev 64387)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromFactoryWithIntParamSimpleBean.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -38,7 +38,7 @@
* @author <a href="ales.justin at jboss.com">Ales Justin</a>
*/
@Factory(
- factory = @Value(javabean = @JavaBeanValue(clazz = "org.jboss.test.kernel.config.support.SimpleBeanFactory")),
+ factory = @Value(javabean = @JavaBeanValue("org.jboss.test.kernel.config.support.SimpleBeanFactory")),
factoryMethod = "createSimpleBean",
parameters = {@Value(type = "java.lang.Integer", string = @StringValue("4"))}
)
Modified: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromFactoryWithParamSimpleBean.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromFactoryWithParamSimpleBean.java 2007-07-31 19:54:57 UTC (rev 64387)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromFactoryWithParamSimpleBean.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -38,7 +38,7 @@
* @author <a href="ales.justin at jboss.com">Ales Justin</a>
*/
@Factory(
- factory = @Value(javabean = @JavaBeanValue(clazz = "org.jboss.test.kernel.config.support.SimpleBeanFactory")),
+ factory = @Value(javabean = @JavaBeanValue("org.jboss.test.kernel.config.support.SimpleBeanFactory")),
factoryMethod = "createSimpleBean",
parameters = {@Value(string = @StringValue("Factory Value"))}
)
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromObjectsCollectionSimpleBean.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromObjectsCollectionSimpleBean.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromObjectsCollectionSimpleBean.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -0,0 +1,50 @@
+/*
+* 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.kernel.config.support;
+
+import java.util.Collection;
+
+import org.jboss.beans.metadata.plugins.annotations.CollectionValue;
+import org.jboss.beans.metadata.plugins.annotations.JavaBeanValue;
+import org.jboss.beans.metadata.plugins.annotations.Value;
+
+/**
+ * A simple bean
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class FromObjectsCollectionSimpleBean extends SimpleBean
+{
+ @CollectionValue(
+ value = {
+ @Value(javabean = @JavaBeanValue("org.jboss.test.kernel.config.support.MyObject1")),
+ @Value(javabean = @JavaBeanValue("org.jboss.test.kernel.config.support.MyObject2")),
+ @Value(javabean = @JavaBeanValue("org.jboss.test.kernel.config.support.MyObject2")),
+ @Value(javabean = @JavaBeanValue("org.jboss.test.kernel.config.support.MyObject1"))
+ },
+ elementClass = "java.lang.Object"
+ )
+ public void setCollection(Collection collection)
+ {
+ super.setCollection(collection);
+ }
+}
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromPreinstCollectionSimpleBean.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromPreinstCollectionSimpleBean.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromPreinstCollectionSimpleBean.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -0,0 +1,61 @@
+/*
+* 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.kernel.config.support;
+
+import java.util.Collection;
+
+import org.jboss.beans.metadata.plugins.annotations.CollectionValue;
+import org.jboss.beans.metadata.plugins.annotations.StringValue;
+import org.jboss.beans.metadata.plugins.annotations.Value;
+
+/**
+ * A simple bean
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class FromPreinstCollectionSimpleBean extends SimpleBean
+{
+ @CollectionValue(
+ value = {
+ @Value(string = @StringValue("string1")),
+ @Value(string = @StringValue("string2")),
+ @Value(string = @StringValue("string2")),
+ @Value(string = @StringValue("string1"))
+ },
+ elementClass = "java.lang.String"
+ )
+ public void setPreInstantiatedCollection(CustomCollection preInstantiatedCollection)
+ {
+ super.setPreInstantiatedCollection(preInstantiatedCollection);
+ }
+
+ @CollectionValue(
+ value = {
+ @Value(string = @StringValue("element"))
+ },
+ elementClass = "java.lang.String"
+ )
+ public void setSetterCollection(Collection setterCollection)
+ {
+ super.setSetterCollection(setterCollection);
+ }
+}
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromStringsCollectionSimpleBean.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromStringsCollectionSimpleBean.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromStringsCollectionSimpleBean.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -0,0 +1,50 @@
+/*
+* 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.kernel.config.support;
+
+import java.util.Collection;
+
+import org.jboss.beans.metadata.plugins.annotations.CollectionValue;
+import org.jboss.beans.metadata.plugins.annotations.StringValue;
+import org.jboss.beans.metadata.plugins.annotations.Value;
+
+/**
+ * A simple bean
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class FromStringsCollectionSimpleBean extends SimpleBean
+{
+ @CollectionValue(
+ value = {
+ @Value(string = @StringValue("string1")),
+ @Value(string = @StringValue("string2")),
+ @Value(string = @StringValue("string2")),
+ @Value(string = @StringValue("string1"))
+ },
+ elementClass = "java.lang.String"
+ )
+ public void setCollection(Collection collection)
+ {
+ super.setCollection(collection);
+ }
+}
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromStringsCollectionUnmodifiableObject.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromStringsCollectionUnmodifiableObject.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/FromStringsCollectionUnmodifiableObject.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -0,0 +1,51 @@
+/*
+* 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.kernel.config.support;
+
+import java.util.Collection;
+
+import org.jboss.beans.metadata.plugins.annotations.CollectionValue;
+import org.jboss.beans.metadata.plugins.annotations.StringValue;
+import org.jboss.beans.metadata.plugins.annotations.Value;
+
+/**
+ * A simple bean
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class FromStringsCollectionUnmodifiableObject extends UnmodifiableGetterBean
+{
+ @CollectionValue(
+ value = {
+ @Value(string = @StringValue("string1")),
+ @Value(string = @StringValue("string2")),
+ @Value(string = @StringValue("string2")),
+ @Value(string = @StringValue("string1"))
+ },
+ elementClass = "java.lang.String",
+ clazz = "java.util.ArrayList"
+ )
+ public void setCollection(Collection collection)
+ {
+ super.setCollection(collection);
+ }
+}
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/InterfaceCollectionSimpleBean.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/InterfaceCollectionSimpleBean.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/InterfaceCollectionSimpleBean.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -0,0 +1,51 @@
+/*
+* 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.kernel.config.support;
+
+import java.util.Collection;
+
+import org.jboss.beans.metadata.plugins.annotations.CollectionValue;
+import org.jboss.beans.metadata.plugins.annotations.StringValue;
+import org.jboss.beans.metadata.plugins.annotations.Value;
+
+/**
+ * A simple bean
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class InterfaceCollectionSimpleBean extends SimpleBean
+{
+ @CollectionValue(
+ value = {
+ @Value(string = @StringValue("string1")),
+ @Value(string = @StringValue("string2")),
+ @Value(string = @StringValue("string2")),
+ @Value(string = @StringValue("string1"))
+ },
+ elementClass = "java.lang.String",
+ clazz = "java.util.Collection"
+ )
+ public void setCollection(Collection collection)
+ {
+ super.setCollection(collection);
+ }
+}
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/MyObject1.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/MyObject1.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/MyObject1.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -0,0 +1,35 @@
+/*
+* 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.kernel.config.support;
+
+/**
+ * A simple bean
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class MyObject1 extends MyObject
+{
+ public MyObject1()
+ {
+ super("object1");
+ }
+}
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/MyObject2.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/MyObject2.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/MyObject2.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -0,0 +1,35 @@
+/*
+* 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.kernel.config.support;
+
+/**
+ * A simple bean
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class MyObject2 extends MyObject
+{
+ public MyObject2()
+ {
+ super("object2");
+ }
+}
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/NotACollectionSimpleBean.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/NotACollectionSimpleBean.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/NotACollectionSimpleBean.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -0,0 +1,49 @@
+/*
+* 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.kernel.config.support;
+
+import org.jboss.beans.metadata.plugins.annotations.CollectionValue;
+import org.jboss.beans.metadata.plugins.annotations.Value;
+import org.jboss.beans.metadata.plugins.annotations.StringValue;
+
+/**
+ * A simple bean
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class NotACollectionSimpleBean extends SimpleBean
+{
+ @CollectionValue(
+ value = {
+ @Value(string = @StringValue("string1")),
+ @Value(string = @StringValue("string2")),
+ @Value(string = @StringValue("string2")),
+ @Value(string = @StringValue("string1")),
+ @Value(string = @StringValue(value = "1", type = "java.lang.Integer"))
+ },
+ elementClass = "java.lang.String"
+ )
+ public void setAString(String string)
+ {
+ super.setAString(string);
+ }
+}
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/OnObjectCollectionSimpleBean.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/OnObjectCollectionSimpleBean.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/OnObjectCollectionSimpleBean.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -0,0 +1,50 @@
+/*
+* 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.kernel.config.support;
+
+import org.jboss.beans.metadata.plugins.annotations.CollectionValue;
+import org.jboss.beans.metadata.plugins.annotations.StringValue;
+import org.jboss.beans.metadata.plugins.annotations.Value;
+
+/**
+ * A simple bean
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class OnObjectCollectionSimpleBean extends SimpleBean
+{
+ @CollectionValue(
+ value = {
+ @Value(string = @StringValue("string1")),
+ @Value(string = @StringValue("string2")),
+ @Value(string = @StringValue("string2")),
+ @Value(string = @StringValue("string1")),
+ @Value(string = @StringValue(value = "1", type = "java.lang.Integer"))
+ },
+ elementClass = "java.lang.String",
+ clazz = "org.jboss.test.kernel.config.support.CustomCollection"
+ )
+ public void setAnObject(Object object)
+ {
+ super.setAnObject(object);
+ }
+}
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/TypeOverrideCollectionSimpleBean.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/TypeOverrideCollectionSimpleBean.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/support/TypeOverrideCollectionSimpleBean.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -0,0 +1,52 @@
+/*
+* 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.kernel.config.support;
+
+import java.util.Collection;
+
+import org.jboss.beans.metadata.plugins.annotations.CollectionValue;
+import org.jboss.beans.metadata.plugins.annotations.StringValue;
+import org.jboss.beans.metadata.plugins.annotations.Value;
+
+/**
+ * A simple bean
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class TypeOverrideCollectionSimpleBean extends SimpleBean
+{
+ @CollectionValue(
+ value = {
+ @Value(string = @StringValue("string1")),
+ @Value(string = @StringValue("string2")),
+ @Value(string = @StringValue("string2")),
+ @Value(string = @StringValue("string1")),
+ @Value(string = @StringValue(value = "1", type = "java.lang.Integer"))
+ },
+ elementClass = "java.lang.String",
+ clazz = "org.jboss.test.kernel.config.support.CustomCollection"
+ )
+ public void setCollection(Collection collection)
+ {
+ super.setCollection(collection);
+ }
+}
Modified: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/test/AbstractKernelConfigTest.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/test/AbstractKernelConfigTest.java 2007-07-31 19:54:57 UTC (rev 64387)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/test/AbstractKernelConfigTest.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -25,8 +25,10 @@
import java.util.Set;
import org.jboss.beans.info.spi.BeanInfo;
+import org.jboss.beans.metadata.spi.BeanMetaData;
import org.jboss.beans.metadata.spi.PropertyMetaData;
-import org.jboss.beans.metadata.spi.BeanMetaData;
+import org.jboss.dependency.spi.ControllerMode;
+import org.jboss.dependency.spi.ControllerState;
import org.jboss.joinpoint.spi.Joinpoint;
import org.jboss.joinpoint.spi.TargettedJoinpoint;
import org.jboss.kernel.Kernel;
@@ -35,7 +37,6 @@
import org.jboss.kernel.spi.dependency.KernelControllerContext;
import org.jboss.test.kernel.AbstractKernelTest;
import org.jboss.test.kernel.config.support.XMLUtil;
-import org.jboss.dependency.spi.ControllerMode;
/**
* An abstract kernel config test.
@@ -97,10 +98,22 @@
return instantiate(bootstrap().getController(), metaData);
}
+ protected Object instantiate(BeanMetaData metaData, ControllerState expectedState) throws Throwable
+ {
+ return instantiate(bootstrap().getController(), metaData, expectedState);
+ }
+
protected Object instantiate(KernelController controller, BeanMetaData metaData) throws Throwable
{
+ return instantiate(controller, metaData, null);
+ }
+
+ protected Object instantiate(KernelController controller, BeanMetaData metaData, ControllerState expectedState) throws Throwable
+ {
metaData.setMode(ControllerMode.AUTOMATIC);
KernelControllerContext kernelControllerContext = controller.install(metaData);
+ if (expectedState != null)
+ assertEquals(expectedState, kernelControllerContext.getState());
return kernelControllerContext.getTarget();
}
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/test/CollectionAnnotationTestCase.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/test/CollectionAnnotationTestCase.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/test/CollectionAnnotationTestCase.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -0,0 +1,127 @@
+/*
+* 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.kernel.config.test;
+
+import junit.framework.Test;
+import org.jboss.beans.metadata.plugins.builder.BeanMetaDataBuilderFactory;
+import org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder;
+import org.jboss.test.kernel.config.support.FromObjectsCollectionSimpleBean;
+import org.jboss.test.kernel.config.support.SimpleBean;
+import org.jboss.test.kernel.config.support.UnmodifiableGetterBean;
+import org.jboss.test.kernel.config.support.FromStringsCollectionSimpleBean;
+import org.jboss.test.kernel.config.support.FromCustomCollectionSimpleBean;
+import org.jboss.test.kernel.config.support.FromCustomSignatureCollectionSimpleBean;
+import org.jboss.test.kernel.config.support.FromPreinstCollectionSimpleBean;
+import org.jboss.test.kernel.config.support.FromStringsCollectionUnmodifiableObject;
+import org.jboss.test.kernel.config.support.TypeOverrideCollectionSimpleBean;
+import org.jboss.test.kernel.config.support.OnObjectCollectionSimpleBean;
+import org.jboss.test.kernel.config.support.NotACollectionSimpleBean;
+import org.jboss.test.kernel.config.support.InterfaceCollectionSimpleBean;
+import org.jboss.dependency.spi.ControllerState;
+
+/**
+ * Collection Test Case.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class CollectionAnnotationTestCase extends CollectionTestCase
+{
+ public static Test suite()
+ {
+ return suite(CollectionAnnotationTestCase.class);
+ }
+
+ public CollectionAnnotationTestCase(String name)
+ {
+ super(name);
+ }
+
+ public SimpleBean simpleCollectionFromObjects() throws Throwable
+ {
+ BeanMetaDataBuilder builder = BeanMetaDataBuilderFactory.createBuilder("SimpleBean", FromObjectsCollectionSimpleBean.class.getName());
+ return (SimpleBean) instantiate(builder.getBeanMetaData());
+ }
+
+ protected SimpleBean simpleCollectionFromStrings() throws Throwable
+ {
+ BeanMetaDataBuilder builder = BeanMetaDataBuilderFactory.createBuilder("SimpleBean", FromStringsCollectionSimpleBean.class.getName());
+ return (SimpleBean) instantiate(builder.getBeanMetaData());
+ }
+
+ protected SimpleBean customCollectionExplicit() throws Throwable
+ {
+ BeanMetaDataBuilder builder = BeanMetaDataBuilderFactory.createBuilder("SimpleBean", FromCustomCollectionSimpleBean.class.getName());
+ return (SimpleBean) instantiate(builder.getBeanMetaData());
+ }
+
+ protected SimpleBean customCollectionFromSignature() throws Throwable
+ {
+ BeanMetaDataBuilder builder = BeanMetaDataBuilderFactory.createBuilder("SimpleBean", FromCustomSignatureCollectionSimpleBean.class.getName());
+ return (SimpleBean) instantiate(builder.getBeanMetaData());
+ }
+
+ protected SimpleBean customCollectionPreInstantiated() throws Throwable
+ {
+ BeanMetaDataBuilder builder = BeanMetaDataBuilderFactory.createBuilder("SimpleBean", FromPreinstCollectionSimpleBean.class.getName());
+ return (SimpleBean) instantiate(builder.getBeanMetaData());
+ }
+
+ protected UnmodifiableGetterBean unmodifiableCollectionPreInstantiated() throws Throwable
+ {
+ BeanMetaDataBuilder builder = BeanMetaDataBuilderFactory.createBuilder("SimpleBean", FromStringsCollectionUnmodifiableObject.class.getName());
+ return (UnmodifiableGetterBean) instantiate(builder.getBeanMetaData());
+ }
+
+ protected SimpleBean collectionWithValueTypeOverride() throws Throwable
+ {
+ BeanMetaDataBuilder builder = BeanMetaDataBuilderFactory.createBuilder("SimpleBean", TypeOverrideCollectionSimpleBean.class.getName());
+ return (SimpleBean) instantiate(builder.getBeanMetaData());
+ }
+
+ protected SimpleBean collectionInjectOnObject() throws Throwable
+ {
+ BeanMetaDataBuilder builder = BeanMetaDataBuilderFactory.createBuilder("SimpleBean", OnObjectCollectionSimpleBean.class.getName());
+ return (SimpleBean) instantiate(builder.getBeanMetaData());
+ }
+
+ public void testCollectionNotACollection() throws Throwable
+ {
+ collectionNotACollection();
+ }
+
+ protected SimpleBean collectionNotACollection() throws Throwable
+ {
+ BeanMetaDataBuilder builder = BeanMetaDataBuilderFactory.createBuilder("SimpleBean", NotACollectionSimpleBean.class.getName());
+ return (SimpleBean) instantiate(builder.getBeanMetaData(), ControllerState.ERROR);
+ }
+
+ public void testCollectionIsInterface() throws Throwable
+ {
+ collectionIsInterface();
+ }
+
+ protected SimpleBean collectionIsInterface() throws Throwable
+ {
+ BeanMetaDataBuilder builder = BeanMetaDataBuilderFactory.createBuilder("SimpleBean", InterfaceCollectionSimpleBean.class.getName());
+ return (SimpleBean) instantiate(builder.getBeanMetaData(), ControllerState.ERROR);
+ }
+}
Modified: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/test/ConfigTestSuite.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/test/ConfigTestSuite.java 2007-07-31 19:54:57 UTC (rev 64387)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/config/test/ConfigTestSuite.java 2007-07-31 20:31:06 UTC (rev 64388)
@@ -56,6 +56,7 @@
suite.addTest(ConfigureFromStringAnnotationTestCase.suite());
suite.addTest(CollectionTestCase.suite());
suite.addTest(CollectionXMLTestCase.suite());
+ suite.addTest(CollectionAnnotationTestCase.suite());
suite.addTest(SetTestCase.suite());
suite.addTest(SetXMLTestCase.suite());
suite.addTest(ListTestCase.suite());
More information about the jboss-cvs-commits
mailing list