[jboss-cvs] JBossAS SVN: r111525 - in projects/jboss-reflect/trunk/src/test/java/org/jboss/test/beaninfo: test and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Jun 6 12:27:06 EDT 2011
Author: alesj
Date: 2011-06-06 12:27:06 -0400 (Mon, 06 Jun 2011)
New Revision: 111525
Added:
projects/jboss-reflect/trunk/src/test/java/org/jboss/test/beaninfo/support/ConstantInterface.java
Modified:
projects/jboss-reflect/trunk/src/test/java/org/jboss/test/beaninfo/test/BeanInfoUnitTestCase.java
Log:
Port JBREFLECT-48 test.
Copied: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/beaninfo/support/ConstantInterface.java (from rev 111387, projects/jboss-reflect/trunk/src/test/java/org/jboss/test/beaninfo/support/BeanInfoExtendsFoo8.java)
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/beaninfo/support/ConstantInterface.java (rev 0)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/beaninfo/support/ConstantInterface.java 2011-06-06 16:27:06 UTC (rev 111525)
@@ -0,0 +1,32 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2007, 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.beaninfo.support;
+
+/**
+ * ConstantInterface.
+ *
+ * @author <a href="ales.justin at jboss.org">Ales Justin</a>
+ */
+public interface ConstantInterface
+{
+ static final String CONST = "X";
+}
Modified: projects/jboss-reflect/trunk/src/test/java/org/jboss/test/beaninfo/test/BeanInfoUnitTestCase.java
===================================================================
--- projects/jboss-reflect/trunk/src/test/java/org/jboss/test/beaninfo/test/BeanInfoUnitTestCase.java 2011-06-06 16:23:24 UTC (rev 111524)
+++ projects/jboss-reflect/trunk/src/test/java/org/jboss/test/beaninfo/test/BeanInfoUnitTestCase.java 2011-06-06 16:27:06 UTC (rev 111525)
@@ -27,61 +27,17 @@
import java.util.Set;
import junit.framework.Test;
-
import org.jboss.beans.info.spi.BeanAccessMode;
import org.jboss.beans.info.spi.BeanInfo;
import org.jboss.beans.info.spi.PropertyInfo;
import org.jboss.reflect.spi.AnnotationValue;
-import org.jboss.test.beaninfo.support.BeanInfoAnnotatedGetterAndSetter;
-import org.jboss.test.beaninfo.support.BeanInfoAnnotatedGetterAndSetterSimpleMerge;
-import org.jboss.test.beaninfo.support.BeanInfoAnnotatedGetterAndSetterWithInterface;
-import org.jboss.test.beaninfo.support.BeanInfoAnnotatedGetterOnly;
-import org.jboss.test.beaninfo.support.BeanInfoAnnotatedSetterOnly;
-import org.jboss.test.beaninfo.support.BeanInfoAnnotation;
-import org.jboss.test.beaninfo.support.BeanInfoAnnotation1;
-import org.jboss.test.beaninfo.support.BeanInfoAnnotation2;
-import org.jboss.test.beaninfo.support.BeanInfoBooleanProperties;
-import org.jboss.test.beaninfo.support.BeanInfoConstructors;
-import org.jboss.test.beaninfo.support.BeanInfoCovariantTypeVariableClassHierarchy1;
-import org.jboss.test.beaninfo.support.BeanInfoDefaultConstructor;
-import org.jboss.test.beaninfo.support.BeanInfoDoubleCovariantImpl;
-import org.jboss.test.beaninfo.support.BeanInfoEmpty;
-import org.jboss.test.beaninfo.support.BeanInfoExtendsFoo;
-import org.jboss.test.beaninfo.support.BeanInfoExtendsFoo2;
-import org.jboss.test.beaninfo.support.BeanInfoExtendsFoo3;
-import org.jboss.test.beaninfo.support.BeanInfoExtendsFoo4;
-import org.jboss.test.beaninfo.support.BeanInfoExtendsFoo5;
-import org.jboss.test.beaninfo.support.BeanInfoExtendsFoo6;
-import org.jboss.test.beaninfo.support.BeanInfoExtendsFoo7;
-import org.jboss.test.beaninfo.support.BeanInfoExtendsFoo8;
-import org.jboss.test.beaninfo.support.BeanInfoFields;
-import org.jboss.test.beaninfo.support.BeanInfoGenericGetterAndSetter;
-import org.jboss.test.beaninfo.support.BeanInfoGenericGetterOnly;
-import org.jboss.test.beaninfo.support.BeanInfoGenericInconsistentTypes;
-import org.jboss.test.beaninfo.support.BeanInfoGenericInterfaceImpl;
-import org.jboss.test.beaninfo.support.BeanInfoGenericSetterOnly;
-import org.jboss.test.beaninfo.support.BeanInfoGetterAndField;
-import org.jboss.test.beaninfo.support.BeanInfoGetterAndField2;
-import org.jboss.test.beaninfo.support.BeanInfoGetterAndSetter;
-import org.jboss.test.beaninfo.support.BeanInfoGetterAndSetter2;
-import org.jboss.test.beaninfo.support.BeanInfoGetterOnly;
-import org.jboss.test.beaninfo.support.BeanInfoInconsistentTypes;
-import org.jboss.test.beaninfo.support.BeanInfoInterface;
-import org.jboss.test.beaninfo.support.BeanInfoMethods;
-import org.jboss.test.beaninfo.support.BeanInfoParameterConstructor;
-import org.jboss.test.beaninfo.support.BeanInfoProperties;
-import org.jboss.test.beaninfo.support.BeanInfoSetterAndField;
-import org.jboss.test.beaninfo.support.BeanInfoSetterAndField2;
-import org.jboss.test.beaninfo.support.BeanInfoSetterOnly;
-import org.jboss.test.beaninfo.support.BeanInfoUpperPropertyName;
-import org.jboss.test.beaninfo.support.SubBeanInfoGetterAndField;
-import org.jboss.test.beaninfo.support.SubBeanInfoGetterAndSetter;
-import org.jboss.test.beaninfo.support.SubBeanInfoSetterAndField;
+import org.jboss.test.beaninfo.support.*;
/**
* BeanInfo Test Case.
*
* @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @author <a href="ales.justin at jboss.org">Ales Justin</a>
* @version $Revision: 45663 $
*/
public class BeanInfoUnitTestCase extends AbstractBeanInfoTest
@@ -180,6 +136,10 @@
testBean(BeanInfoExtendsFoo8.class, BeanAccessMode.STANDARD, new String[]{});
testBean(BeanInfoExtendsFoo8.class, BeanAccessMode.FIELDS, new String[]{});
testBean(BeanInfoExtendsFoo8.class, BeanAccessMode.ALL, new String[]{"bar", "foo"});
+
+ testBean(ConstantInterface.class, BeanAccessMode.STANDARD, new String[]{});
+ testBean(ConstantInterface.class, BeanAccessMode.FIELDS, new String[]{"CONST"});
+ testBean(ConstantInterface.class, BeanAccessMode.ALL, new String[]{"CONST"});
}
public void testBeanBooleanProperties() throws Throwable
More information about the jboss-cvs-commits
mailing list