diff options
author | DJ Houghton | 2011-01-18 21:23:30 +0000 |
---|---|---|
committer | DJ Houghton | 2011-01-18 21:23:30 +0000 |
commit | 11a802fbf2144705265909a2cca69e2a46378dd8 (patch) | |
tree | f9f143223f29c486a52ee6719de50c493c8d66c2 | |
parent | d4c69aeb00b975f4b3fdc9a6d9384b32cfbea574 (diff) | |
download | rt.equinox.p2-11a802fbf2144705265909a2cca69e2a46378dd8.tar.gz rt.equinox.p2-11a802fbf2144705265909a2cca69e2a46378dd8.tar.xz rt.equinox.p2-11a802fbf2144705265909a2cca69e2a46378dd8.zip |
Added new helper method for assertions.
-rw-r--r-- | bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/AbstractProvisioningTest.java | 6 |
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; |