mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test for Task (IDEA-CR-67803)
GitOrigin-RevId: 0bd9ff558ce894679693fa52d30e6619cb3a3789
This commit is contained in:
committed by
intellij-monorepo-bot
parent
281cb6bd55
commit
25727968bd
+10
@@ -1041,4 +1041,14 @@ public class ProgressIndicatorTest extends LightPlatformTestCase {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void testTaskWithResultMustBeAbleToComputeException() throws Exception {
|
||||
Exception result = ProgressManager.getInstance().run(new Task.WithResult<Exception, Exception>(null, "", true) {
|
||||
@Override
|
||||
protected Exception compute(@NotNull ProgressIndicator indicator) {
|
||||
return new Exception("result");
|
||||
}
|
||||
});
|
||||
assertEquals("result", result.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user