//
// Tests
//
////////////////////////////////////////////////////////////////////////////
public void test_parse_this() throws Exception {
SectionStackInfo stack =
parseJavaInfo(compiledSource(new String[]{
"public class Test extends SectionStack {",
" public Test() {",
" //sectionsPlace",
" }",
"}"}, "this"));
stack.getTopBoundsSupport().setSize(270, 240);
stack.refresh();
assertThat(stack.getWidgets()).isEmpty();
// check Sections
List<SectionStackSectionInfo> sections = stack.getSections();
assertThat(sections.size()).isEqualTo(2);
SectionStackSectionInfo section_1 = sections.get(0);
assertThat(section_1.getCanvases().size()).isEqualTo(1);
SectionStackSectionInfo section_2 = sections.get(1);
assertThat(section_2.getCanvases().size()).isEqualTo(3);