void () { addCollapsedFoldRegion(5, 7, "..."); FoldRegion[] regions = myModel.getAllFoldRegions(); assertEquals(1, regions.length); FoldRegion region = regions[0]; assertNotNull(region); assertFalse(myModel.isOffsetCollapsed(4)); assertTrue(myModel.isOffsetCollapsed(5)); assertTrue(myModel.isOffsetCollapsed(6)); assertFalse(myModel.isOffsetCollapsed(7)); assertFalse(myModel.isOffsetCollapsed(8)); assertNull(myModel.getCollapsedRegionAtOffset(4)); assertSame(region, myModel.getCollapsedRegionAtOffset(5)); assertSame(region, myModel.getCollapsedRegionAtOffset(6)); assertNull(myModel.getCollapsedRegionAtOffset(7)); assertNull(myModel.getCollapsedRegionAtOffset(8)); }