Examples of CuteMouthList


Examples of net.sf.laja.cdd.behaviour.mouth.CuteMouthList

    public CuteMouthList asCuteMouthList() {
        List<CuteMouth> result = new ArrayList<CuteMouth>();
        for (TestMouth entry : list) {
            result.add(entry.asCuteMouth());
        }
        return new CuteMouthList(result, stateListBuilder);
    }
View Full Code Here

Examples of net.sf.laja.cdd.behaviour.mouth.CuteMouthList

        final String red = "Red";
        final String green = "Green";



        CuteMouthList cuteMouthList = MouthFactory.createList(MouthFactory.width(width).height(height).color(red),
                MouthFactory.width(width).height(height).color(green)).asMouthList(SMALL).asCuteMouthList(SMALL, 1);

        CuteMouth greenMouth = cuteMouthList.get(1);

        cuteMouthList.remove(greenMouth);

        System.out.println(cuteMouthList);

        cuteMouthList.doSomething();

        assertEquals(1, cuteMouthList.size());
        assertTrue(cuteMouthList.get(0).hasColor("Red"));
    }
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.