1 package org.onap.ccsdk.apps.ms.sliboot;
3 import org.apache.shiro.realm.Realm;
4 import org.apache.shiro.realm.text.PropertiesRealm;
5 import org.apache.shiro.spring.web.config.ShiroFilterChainDefinition;
6 import org.junit.Before;
11 import static org.junit.Assert.*;
13 public class AppTest {
18 public void setUp() throws Exception {
19 app = new SlibootApp();
20 System.setProperty("serviceLogicProperties", "src/test/resources/svclogic.properties");
25 Realm realm = app.realm();
26 assertTrue(realm instanceof PropertiesRealm);
32 public void shiroFilterChainDefinition() {
33 ShiroFilterChainDefinition chainDefinition = app.shiroFilterChainDefinition();
34 Map<String, String> chainMap = chainDefinition.getFilterChainMap();
35 assertEquals("anon", chainMap.get("/**"));