Package org.springframework.data.neo4j.annotation.relatedto

Examples of org.springframework.data.neo4j.annotation.relatedto.Mondrian.includes()


        Square redSquare = squares.save(new Square(RED));
        Rectangle yellowRectangle = rectangles.save(new Rectangle(YELLOW));
        Rectangle blueRectangle = rectangles.save(new Rectangle(BLUE));

        Mondrian mondrian = new Mondrian("Composition with Yellow, Blue and Red");
        mondrian.includes(redSquare);
        mondrian.includes(yellowRectangle, blueRectangle);
        mondrians.save(mondrian);

        assertThat(getRelationshipNames(template, mondrian), is(equalTo(asSet("includes"))));
        mondrian = mondrians.findOne(mondrian.getId());
View Full Code Here


        Rectangle yellowRectangle = rectangles.save(new Rectangle(YELLOW));
        Rectangle blueRectangle = rectangles.save(new Rectangle(BLUE));

        Mondrian mondrian = new Mondrian("Composition with Yellow, Blue and Red");
        mondrian.includes(redSquare);
        mondrian.includes(yellowRectangle, blueRectangle);
        mondrians.save(mondrian);

        assertThat(getRelationshipNames(template, mondrian), is(equalTo(asSet("includes"))));
        mondrian = mondrians.findOne(mondrian.getId());
        assertThat(mondrian.getQuadrilaterals(), is(equalTo((Iterable) asSet(redSquare, yellowRectangle, blueRectangle))));
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.