Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2011-01-18 16:23:30 -0500
committerDJ Houghton2011-01-18 16:23:30 -0500
commit11a802fbf2144705265909a2cca69e2a46378dd8 (patch)
treef9f143223f29c486a52ee6719de50c493c8d66c2 /bundles
parentd4c69aeb00b975f4b3fdc9a6d9384b32cfbea574 (diff)
downloadrt.equinox.p2-11a802fbf2144705265909a2cca69e2a46378dd8.tar.gz
rt.equinox.p2-11a802fbf2144705265909a2cca69e2a46378dd8.tar.xz
rt.equinox.p2-11a802fbf2144705265909a2cca69e2a46378dd8.zip
Added new helper method for assertions.
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/AbstractProvisioningTest.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/AbstractProvisioningTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/AbstractProvisioningTest.java
index 74f4c09fb..19fee34da 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/AbstractProvisioningTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/AbstractProvisioningTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2008 IBM Corporation and others. All rights reserved. This
+ * Copyright (c) 2007, 2011 IBM Corporation and others. All rights reserved. This
* program and the accompanying materials are made available under the terms of
* the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
@@ -107,6 +107,10 @@ public abstract class AbstractProvisioningTest extends TestCase {
assertTrue(message, !result.isOK());
}
+ protected static void assertOK(IStatus status) {
+ assertOK("The status should have been OK.", status);
+ }
+
protected static void assertOK(String message, IStatus status) {
if (status.isOK())
return;

Back to the top