Package org.jboss.metatype.api.types

Examples of org.jboss.metatype.api.types.TableMetaType


    *
    * @throws Exception for any problem
    */
   public void testPut() throws Exception
   {
      TableMetaType tableType = initTableType();

      TableValueSupport data = new TableValueSupport(tableType);

      CompositeValue compData = initCompositeValue(data);
      MetaValue[] index = initValues();
View Full Code Here


    *
    * @throws Exception for any problem
    */
   public void testRemove() throws Exception
   {
      TableMetaType tableType = initTableType();

      TableValueSupport data = new TableValueSupport(tableType);

      CompositeValue compData = initCompositeValue(data);
      MetaValue[] index = initValues();
View Full Code Here

    *
    * @throws Exception for any problem
    */
   public void testPutAll() throws Exception
   {
      TableMetaType tableType = initTableType();

      TableValueSupport data = new TableValueSupport(tableType);

      data.putAll((CompositeValue[]) null);
      assertTrue("Put all null is ok", data.isEmpty());
View Full Code Here

    *
    * @throws Exception for any problem
    */
   public void testClear() throws Exception
   {
      TableMetaType tableType = initTableType();

      TableValueSupport data = new TableValueSupport(tableType);

      data.putAll((CompositeValue[]) null);
      assertTrue("Put all null is ok", data.isEmpty());
View Full Code Here

    *
    * @throws Exception for any problem
    */
   public void testSize() throws Exception
   {
      TableMetaType tableType = initTableType();

      TableValueSupport data = new TableValueSupport(tableType);

      assertEquals("Initial size is zero", 0, data.size());

View Full Code Here

    *
    * @throws Exception for any problem
    */
   public void testIsEmpty() throws Exception
   {
      TableMetaType tableType = initTableType();

      TableValueSupport data = new TableValueSupport(tableType);

      assertTrue("Initially empty", data.isEmpty());

View Full Code Here

    *
    * @throws Exception for any problem
    */
   public void testKeySet() throws Exception
   {
      TableMetaType tableType = initTableType();

      TableValueSupport data = new TableValueSupport(tableType);

      CompositeValue compData = initCompositeValue(data);
      CompositeValue compData2 = initCompositeValue2(data);
View Full Code Here

    *
    * @throws Exception for any problem
    */
   public void testValues() throws Exception
   {
      TableMetaType tableType = initTableType();

      TableValueSupport data = new TableValueSupport(tableType);

      CompositeValue compData = initCompositeValue(data);
      CompositeValue compData2 = initCompositeValue2(data);
View Full Code Here

    *
    * @throws Exception for any problem
    */
   public void testClone() throws Exception
   {
      TableMetaType tableType = initTableType();

      TableValueSupport data = new TableValueSupport(tableType);

      CompositeValue compData = initCompositeValue(data);
      CompositeValue compData2 = initCompositeValue2(data);
View Full Code Here

    *
    * @throws Exception for any problem
    */
   public void testEquals() throws Exception
   {
      TableMetaType tableType = initTableType();

      TableValueSupport data = new TableValueSupport(tableType);

      assertNotSame("Null should not be equal", data, null);
      assertNotSame("Only TableValues should be equal", data, new Object());

      assertEquals("An instance should equal itself", data, data);

      TableValueSupport data2 = new TableValueSupport(tableType);

      assertEquals("Two different instances with the same table type are equal", data, data2);
      assertEquals("Two different instances with the same table type are equal", data2, data);

      TableMetaType tableType2 = initTableType2();
      data2 = new TableValueSupport(tableType2);

      assertNotSame("Instances with different table type are not equal", data, data2);
      assertNotSame("Instances with different table type are not equal", data2, data);

View Full Code Here

TOP

Related Classes of org.jboss.metatype.api.types.TableMetaType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.