Package org.apache.isis.core.testsupport.testdomain

Examples of org.apache.isis.core.testsupport.testdomain.Role


        final Person person = new Person();
        person.setName("Fred Smith");
        person.setDate(new Date(110, 2, 8, 13, 32));
        final Movie movie = new Movie();
        movie.setDirector(person);
        movie.addToRoles(new Role());
        movie.addToRoles(new Role());
        service.save(movie);

        final Set<Object> savedObjects = service.allSavedObjects();
        Assert.assertEquals(4, savedObjects.size());
    }
View Full Code Here


        final Person person = new Person();
        person.setName("Fred Smith");
        person.setDate(new Date(110, 2, 8, 13, 32));
        final Movie movie = new Movie();
        movie.setDirector(person);
        movie.addToRoles(new Role());
        movie.addToRoles(new Role());
        service.save(movie);

        final Set<Object> savedObjects = service.allSavedObjects();
        Assert.assertEquals(4, savedObjects.size());
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.testsupport.testdomain.Role

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.