Examples of Collections


Examples of booton.sample.beans.Collections

        List<String> list = new ArrayList();
        list.add("one");
        list.add("two");
        list.add("three");

        Collections collections = I.make(Collections.class);
        collections.setList(list);

        Collections other = writeThenRead(collections);
        assert other.getList().size() == 3;
        assert other.getList().get(0).equals("one");
        assert other.getList().get(1).equals("two");
        assert other.getList().get(2).equals("three");
    }
View Full Code Here

Examples of booton.sample.beans.Collections

        Map<String, String> map = new HashMap();
        map.put("1", "one");
        map.put("2", "two");
        map.put("3", "three");

        Collections collections = I.make(Collections.class);
        collections.setMap(map);

        Collections other = writeThenRead(collections);
        assert other.getMap().size() == 3;
        assert other.getMap().get("1").equals("one");
        assert other.getMap().get("2").equals("two");
        assert other.getMap().get("3").equals("three");
    }
View Full Code Here

Examples of com.fogas.koll3ctions.core.bean.Collections

    }
    return collections;
  }

  private void readCollections() throws FileNotFoundException, IOException {
    collections = new Collections();
    Collection collection = null;
    boolean inValue = false;
    boolean foundTime = false;
    boolean foundName = true;
    boolean foundItems = false;
View Full Code Here

Examples of org.jboss.test.xml.collections.Collections

      TypeBinding type = schema.getType(rootQName);
      assertNotNull(type);
      schema.addElement(rootQName, type);

      Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
      Collections collections;
      collections = (Collections)unmarshaller.unmarshal(xmlReader, schema);
      assertEquals(Collections.getInstance(), collections);
   }
View Full Code Here

Examples of org.jboss.test.xml.collections.Collections

      TypeBinding type = schema.getType(rootQName);
      assertNotNull(type);
      schema.addElement(rootQName, type);

      Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
      Collections collections;
      collections = (Collections)unmarshaller.unmarshal(xmlReader, schema);
      assertEquals(Collections.getInstance(), collections);
   }
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.