Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalgorzata Janczarska2013-02-28 10:21:56 -0500
committerMalgorzata Janczarska2013-02-28 10:22:32 -0500
commit41435564a99c604566f10591e675ce10072b8133 (patch)
tree49ab1d65a024ffe3b10803f8159a9d4c06438f87
parent422a25a5f2b3c3c5189690e2318c8b12b239bc3d (diff)
downloadeclipse.platform.team-41435564a99c604566f10591e675ce10072b8133.tar.gz
eclipse.platform.team-41435564a99c604566f10591e675ce10072b8133.tar.xz
eclipse.platform.team-41435564a99c604566f10591e675ce10072b8133.zip
-rw-r--r--tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/CreatePatchTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/CreatePatchTest.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/CreatePatchTest.java
index 74bd0c518..959f386d4 100644
--- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/CreatePatchTest.java
+++ b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/CreatePatchTest.java
@@ -269,13 +269,13 @@ public class CreatePatchTest extends EclipseTest {
private IWorkbenchPart getActivePart() {
IWorkbenchWindow window = PlatformUI.getWorkbench()
.getActiveWorkbenchWindow();
- if (window == null) {
- return null;
- }
+ assertNotNull(window);
IWorkbenchPage page = window.getActivePage();
if (page == null) {
- return null;
+ window.setActivePage(window.getPages()[0]);
+ page = window.getActivePage();
}
+ assertNotNull(page);
return page.getActivePart();
}

Back to the top