ColumnView { public List<Column> getColumns() { return this.columns; }  Resource getCurrentResource(); List<Column> getColumns();  }
@Test void testRoot_showRoot() { List<Column> columns = getColumns( "rootPath", "/content/site1/en", "path", "/content/site1/en", "showRoot", true); assertEquals(2, columns.size()); assertColumn(columns.get(0), "parentof:/content/site1/en", "/content/site1/en"); assertColumn(columns.get(1), "/content/site1/en", "/content/site1/en/page1", "/content/site1/en/page2"); }
@Test void testRoot_loadAncestors() { List<Column> columns = getColumns( "rootPath", "/content/site1/en", "path", "/content/site1/en", "loadAncestors", true); assertEquals(1, columns.size()); assertColumn(columns.get(0), "/content/site1/en", "/content/site1/en/page1", "/content/site1/en/page2"); }
@Test void testRoot_showRoot_loadAncestors() { List<Column> columns = getColumns( "rootPath", "/content/site1/en", "path", "/content/site1/en", "showRoot", true, "loadAncestors", true); assertEquals(2, columns.size()); assertColumn(columns.get(0), "parentof:/content/site1/en", "/content/site1/en"); assertColumn(columns.get(1), "/content/site1/en", "/content/site1/en/page1", "/content/site1/en/page2"); }
@Test void testRoot_SizeLimit() { List<Column> columns = getColumns( "rootPath", "/content/site1/en", "path", "/content/site1/en", "size", 1); assertEquals(1, columns.size()); assertColumn(columns.get(0), "/content/site1/en", true, "/content/site1/en/page1"); }
@Test void testPage11() { List<Column> columns = getColumns( "rootPath", "/content/site1/en", "path", "/content/site1/en/page1/page11"); assertEquals(1, columns.size()); assertColumn(columns.get(0), "/content/site1/en/page1/page11", "/content/site1/en/page1/page11/page111", "/content/site1/en/page1/page11/page112"); }
@Test void testPage11_showRoot() { List<Column> columns = getColumns( "rootPath", "/content/site1/en", "path", "/content/site1/en/page1/page11", "showRoot", true); assertEquals(1, columns.size()); assertColumn(columns.get(0), "/content/site1/en/page1/page11", "/content/site1/en/page1/page11/page111", "/content/site1/en/page1/page11/page112"); }
@Test void testPage11_loadAncestors() { List<Column> columns = getColumns( "rootPath", "/content/site1/en", "path", "/content/site1/en/page1/page11", "loadAncestors", true); assertEquals(3, columns.size()); assertLazyColumn(columns.get(0), "/content/site1/en", "/content/site1/en/page1"); assertLazyColumn(columns.get(1), "/content/site1/en/page1", "/content/site1/en/page1/page11"); assertColumn(columns.get(2), "/content/site1/en/page1/page11", "/content/site1/en/page1/page11/page111", "/content/site1/en/page1/page11/page112"); }
@Test void testPage11_showRoot_loadAncestors() { List<Column> columns = getColumns( "rootPath", "/content/site1/en", "path", "/content/site1/en/page1/page11", "showRoot", true, "loadAncestors", true); assertEquals(4, columns.size()); assertColumn(columns.get(0), "parentof:/content/site1/en", "/content/site1/en"); assertLazyColumn(columns.get(1), "/content/site1/en", "/content/site1/en/page1"); assertLazyColumn(columns.get(2), "/content/site1/en/page1", "/content/site1/en/page1/page11"); assertColumn(columns.get(3), "/content/site1/en/page1/page11", "/content/site1/en/page1/page11/page111", "/content/site1/en/page1/page11/page112"); }
@Test void testSite1() { List<Column> columns = getColumns( "rootPath", "/content/site1/en", "path", "/content/site1"); assertEquals(1, columns.size()); assertColumn(columns.get(0), "/content/site1/en", "/content/site1/en/page1", "/content/site1/en/page2"); }
@Test void testSite1_showRoot() { List<Column> columns = getColumns( "rootPath", "/content/site1/en", "path", "/content/site1", "showRoot", true); assertEquals(2, columns.size()); assertColumn(columns.get(0), "parentof:/content/site1/en", "/content/site1/en"); assertColumn(columns.get(1), "/content/site1/en", "/content/site1/en/page1", "/content/site1/en/page2"); }
@Test void testSite1_loadAncestors() { List<Column> columns = getColumns( "rootPath", "/content/site1/en", "path", "/content/site1", "loadAncestors", true); assertEquals(1, columns.size()); assertColumn(columns.get(0), "/content/site1/en", "/content/site1/en/page1", "/content/site1/en/page2"); }
@Test void testSite1_showRoot_loadAncestors() { List<Column> columns = getColumns( "rootPath", "/content/site1/en", "path", "/content/site1", "showRoot", true, "loadAncestors", true); assertEquals(2, columns.size()); assertColumn(columns.get(0), "parentof:/content/site1/en", "/content/site1/en"); assertColumn(columns.get(1), "/content/site1/en", "/content/site1/en/page1", "/content/site1/en/page2"); }
@Test void testRoot() { List<Column> columns = getColumns( "rootPath", "/content/site1/en", "path", "/content/site1/en"); assertEquals(1, columns.size()); assertColumn(columns.get(0), "/content/site1/en", "/content/site1/en/page1", "/content/site1/en/page2"); }