7323a59bdb60bc81fec6237459de2490c3eb8ccc
[controller.git] / opendaylight / containermanager / it.implementation / src / test / java / org / opendaylight / controller / containermanager / internal / ContainerManagerTest.java
1 \r
2 /*\r
3  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
4  *\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
8  */\r
9 \r
10 package org.opendaylight.controller.containermanager.internal;\r
11 \r
12 import static org.junit.Assert.*;\r
13 \r
14 import java.util.ArrayList;\r
15 \r
16 import org.junit.Test;\r
17 import org.opendaylight.controller.sal.utils.GlobalConstants;\r
18 \r
19 public class ContainerManagerTest {\r
20 \r
21         @Test\r
22         public void test() {\r
23                 ContainerManager cm = new ContainerManager();\r
24 \r
25                 cm.init();\r
26 \r
27                 ArrayList<String> names = (ArrayList<String>) cm.getContainerNames();\r
28                 assertEquals(1, names.size());\r
29                 assertEquals(GlobalConstants.DEFAULT.toString(), names.get(0));\r
30 \r
31                 assertFalse(cm.hasNonDefaultContainer());\r
32 \r
33                 cm.destroy();\r
34 \r
35         }\r
36 \r
37 }\r

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.