Return-Path: X-Original-To: apmail-felix-commits-archive@www.apache.org Delivered-To: apmail-felix-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3201910B9B for ; Fri, 29 Nov 2013 11:05:50 +0000 (UTC) Received: (qmail 92739 invoked by uid 500); 29 Nov 2013 11:05:49 -0000 Delivered-To: apmail-felix-commits-archive@felix.apache.org Received: (qmail 92471 invoked by uid 500); 29 Nov 2013 11:05:43 -0000 Mailing-List: contact commits-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list commits@felix.apache.org Received: (qmail 92463 invoked by uid 99); 29 Nov 2013 11:05:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Nov 2013 11:05:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Nov 2013 11:05:39 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id E25482388999; Fri, 29 Nov 2013 11:05:18 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1546537 - /felix/trunk/dependencymanager/test/src/test/java/org/apache/felix/dm/test/integration/common/TestBase.java Date: Fri, 29 Nov 2013 11:05:18 -0000 To: commits@felix.apache.org From: pderop@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20131129110518.E25482388999@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: pderop Date: Fri Nov 29 11:05:18 2013 New Revision: 1546537 URL: http://svn.apache.org/r1546537 Log: FELIX-4334: Added getBundle method, which is needed by "ModifiedBundleDependencyTest" test. Modified: felix/trunk/dependencymanager/test/src/test/java/org/apache/felix/dm/test/integration/common/TestBase.java Modified: felix/trunk/dependencymanager/test/src/test/java/org/apache/felix/dm/test/integration/common/TestBase.java URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/test/src/test/java/org/apache/felix/dm/test/integration/common/TestBase.java?rev=1546537&r1=1546536&r2=1546537&view=diff ============================================================================== --- felix/trunk/dependencymanager/test/src/test/java/org/apache/felix/dm/test/integration/common/TestBase.java (original) +++ felix/trunk/dependencymanager/test/src/test/java/org/apache/felix/dm/test/integration/common/TestBase.java Fri Nov 29 11:05:18 2013 @@ -198,8 +198,6 @@ public abstract class TestBase implement * * @param symbolicName * the symbolic name of the bundle to be stopped. - * @param context - * the context used to lookup all installed bundles. */ protected void stopBundle(String symbolicName) { // Stop the test.annotation bundle @@ -220,6 +218,21 @@ public abstract class TestBase implement } /** + * Helper method used to get a given bundle. + * + * @param symbolicName + * the symbolic name of the bundle to get. + */ + protected Bundle getBundle(String symbolicName) { + for (Bundle b : context.getBundles()) { + if (b.getSymbolicName().equals(symbolicName)) { + return b; + } + } + throw new IllegalStateException("bundle " + symbolicName + " not found"); + } + + /** * Stops our test bundle. */ protected void stopTestBundle() {