3 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
\r
5 * This program and the accompanying materials are made available under the
\r
6 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
10 package org.opendaylight.controller.containermanager.internal;
\r
13 import org.junit.Test;
\r
14 import org.opendaylight.controller.sal.utils.GlobalConstants;
\r
16 import java.util.ArrayList;
\r
18 import static org.junit.Assert.assertEquals;
\r
19 import static org.junit.Assert.assertFalse;
\r
22 public class ContainerManagerTest {
\r
25 public void test() {
\r
26 ContainerManager cm = new ContainerManager();
\r
30 ArrayList<String> names = (ArrayList<String>) cm.getContainerNames();
\r
31 assertEquals(1, names.size());
\r
32 assertEquals(GlobalConstants.DEFAULT.toString(), names.get(0));
\r
34 assertFalse(cm.hasNonDefaultContainer());
\r