Package org.jboss.seam.test.integration

Examples of org.jboss.seam.test.integration.Person


  
   @Test
   public void testMapDataModel() throws IOException, ClassNotFoundException
   {
      Map<String, Person> map = new HashMap<String, Person>();
      map.put("0", new Person("Gavin"));
      map.put("1", new Person("Tom"));
     
      javax.faces.model.DataModel mapDataModel = new MapDataModel();
     
      assert mapDataModel.getRowCount() == -1;
      assert mapDataModel.getRowData() == null;
View Full Code Here


   @Test
   public void testMapDataModelSerialization() throws Exception
   {
     
      Map<String, Person> map = new HashMap<String, Person>();
      map.put("0", new Person("Gavin"));
      map.put("1", new Person("Tom"));
     
      javax.faces.model.DataModel mapDataModel = new MapDataModel(map);   
      mapDataModel.setRowIndex(1);

      Object object = null;
View Full Code Here

   }
  
   @Test
   public void testSetDataModel() throws IOException, ClassNotFoundException
   {
      Person gavin = new Person("Gavin");
      Person tom = new Person("Tom");
     
      Set<Person> set = new HashSet<Person>();
      set.add(gavin);
      set.add(tom);
     
View Full Code Here

  
   @Test
   public void testSetDataModelSerialization() throws Exception
   {
     
      Person gavin = new Person("Gavin");
      Person tom = new Person("Tom");
     
      Set<Person> set = new HashSet<Person>();
      set.add(gavin);
      set.add(tom);
     
View Full Code Here

TOP

Related Classes of org.jboss.seam.test.integration.Person

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.