Package booton.sample.beans

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


        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

TOP

Related Classes of booton.sample.beans.Collections

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.