+/*
+ * Copyright (c) 2014 Cisco Systems, Inc. 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
+ */
package org.opendaylight.controller.clustering.services_implementation.internal;\r
\r
import static org.junit.Assert.assertEquals;\r
mavenBundle("org.opendaylight.controller", "sal").versionAsInProject(),\r
mavenBundle("org.opendaylight.controller",\r
"sal.implementation").versionAsInProject(),\r
+ mavenBundle("org.opendaylight.controller", "configuration").versionAsInProject(),\r
mavenBundle("org.opendaylight.controller", "containermanager").versionAsInProject(),\r
mavenBundle("org.opendaylight.controller",\r
"containermanager.it.implementation").versionAsInProject(),\r
assertNotNull(bc);\r
boolean debugit = false;\r
Bundle b[] = bc.getBundles();\r
- for (int i = 0; i < b.length; i++) {\r
- int state = b[i].getState();\r
+ for (Bundle element : b) {\r
+ int state = element.getState();\r
if (state != Bundle.ACTIVE && state != Bundle.RESOLVED) {\r
- log.debug("Bundle:" + b[i].getSymbolicName() + " state:"\r
+ log.debug("Bundle:" + element.getSymbolicName() + " state:"\r
+ stateToString(state));\r
debugit = true;\r
}\r