private final Long SUB_PAGE_1_ID = 666666L;
private final Long SUB_PAGE_2_ID = 121212L;
@Before
public void setup(){
page=new PageImpl();
id=19191991L;
parentId = 12345L;
testName="testName";
testOwner=new JpaUser(id);
parentPage = new PageImpl(parentId);
subPages = new ArrayList<Page>();
Page subPage1 = new PageImpl();
subPage1.setId(SUB_PAGE_1_ID);
subPage1.setOwner(testOwner);
Page subPage2 = new PageImpl();
subPage2.setId(SUB_PAGE_2_ID);
subPage2.setOwner(testOwner);
List<PageUser> pageUsers1 = new ArrayList<PageUser>();
PageUser pageUser1 = new PageUserImpl();
pageUser1.setUser(testOwner);
pageUser1.setPage(subPage1);
pageUser1.setRenderSequence(2L);
pageUsers1.add(pageUser1);
subPage1.setMembers(pageUsers1);
List<PageUser> pageUsers2 = new ArrayList<PageUser>();
PageUser pageUser2 = new PageUserImpl();
pageUser2.setUser(new JpaUser());
pageUser2.setPage(subPage2);
pageUser2.setRenderSequence(19L);
pageUsers2.add(pageUser2);
PageUser pageUser3 = new PageUserImpl();
pageUser3.setUser(testOwner);
pageUser3.setPage(subPage2);
pageUser3.setRenderSequence(1L);
pageUsers2.add(pageUser3);
subPage2.setMembers(pageUsers2);
subPages.add(subPage1);
subPages.add(subPage2);
pageLayout=new PageLayoutImpl();
renderSequence=1223L;