Package org.jboss.metatype.api.values

Examples of org.jboss.metatype.api.values.TableValueSupport.clear()


      CompositeValue compData2 = initCompositeValue2(data);
      CompositeValue compData3 = initCompositeValue4(data);

      data.putAll(new CompositeValue[] { compData, compData2, compData3 });

      data.clear();
      assertTrue("Clear should clear the data", data.isEmpty());
   }

   /**
    * Test the size for a table value
View Full Code Here


      assertEquals("Expected three elements", 3, data.size());

      data.remove(initValues4());
      assertEquals("Expected two elements", 2, data.size());

      data.clear();
      assertEquals("Expected no elements", 0, data.size());
   }

   /**
    * Test the isEmpty for a table value
View Full Code Here

      CompositeValue compData = initCompositeValue(data);

      data.putAll(new CompositeValue[] { compData });
      assertFalse("Not empty after a put", data.isEmpty());

      data.clear();
      assertTrue("Expected no elements", data.isEmpty());
   }

   /**
    * Test the keySet for a table value
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.