23eef9db7fccc3d1f77f51552bf8f028a2823a95
[moon.git] /
1 /*
2  * Copyright (c) 2016 Brocade Communications Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.aaa.shiroact;
10
11 import static org.junit.Assert.*;
12
13 import org.junit.Test;
14 import org.opendaylight.aaa.shiro.ServiceProxy;
15
16 public class ActivatorTest {
17
18     @Test
19     public void testActivatorEnablesServiceProxy() throws Exception {
20         // should toggle the ServiceProxy enable status to true
21         new Activator().init(null, null);;
22         assertTrue(ServiceProxy.getInstance().getEnabled(null));
23     }
24
25 }