Package com.google.gwt.user.client.rpc

Examples of com.google.gwt.user.client.rpc.InheritanceTestSetFactory$Shape


     * @see Iterable#forEach
     * @see Shape#setColor(Color)
     */
    @Test
    public void changeColorOfAllShapes() {
        List<Shape> myShapes = Arrays.asList(new Shape(BLUE), new Shape(BLACK), new Shape(YELLOW));

        // method under test
        Shapes.colorAll(myShapes, RED);

        assertThat(myShapes, hasSize(3));
View Full Code Here


     * @see StringBuilder#append(String)
     * @see Iterable#forEach
     */
    @Test
    public void buildStringRepresentingAllShapes() {
        List<Shape> allMyShapes = Arrays.asList(new Shape(RED), new Shape(BLACK), new Shape(YELLOW));
        StringBuilder builder = new StringBuilder();

        // method under test
        Shapes.makeStringOfAllColors(allMyShapes, builder);

View Full Code Here

     * @see Color#name()
     * @see StringBuilder#append(String)
     */
    @Test
    public void changeColorOfAllShapes_AND_buildStringShowingAllTheOldColors() {
        List<Shape> myShapes = Arrays.asList(new Shape(BLUE), new Shape(BLACK), new Shape(YELLOW));
        StringBuilder builder = new StringBuilder();

        Shapes.changeColorAndMakeStringOfOldColors(myShapes, RED, builder);

        assertThat(myShapes, hasSize(3));
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.rpc.InheritanceTestSetFactory$Shape

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.