used assertion to check fold region

This commit is contained in:
Ekaterina Tuzova
2013-12-25 12:24:53 +04:00
parent 892dab2528
commit 933abc6558
@@ -160,7 +160,7 @@ public class KillToWordEndActionTest extends LightPlatformCodeInsightTestCase {
@Override
public void run() {
final FoldRegion foldRegion = model.addFoldRegion(70, 90, "");
if (foldRegion == null) return ;
assertNotNull(foldRegion);
foldRegion.setExpanded(false);
assertFalse(foldRegion.isExpanded());
}
@@ -173,7 +173,7 @@ public class KillToWordEndActionTest extends LightPlatformCodeInsightTestCase {
public void run() {
final FoldRegion[] regions = model.getAllFoldRegions();
for (FoldRegion region : regions) {
if (region == null) return;
assertNotNull(region);
region.setExpanded(true);
}