mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
used assertion to check fold region
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user