Initial OpenECOMP policy/engine commit
[policy/engine.git] / ecomp-sdk-app / src / test / java / org / openecomp / portalapp / SanityTest.java
1 package org.openecomp.portalapp;
2
3 import org.junit.Assert;
4 import org.junit.Test;
5 import org.openecomp.portalsdk.core.MockApplicationContextTestSuite;
6 import org.springframework.test.web.servlet.ResultActions;
7 import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
8
9 public class SanityTest extends MockApplicationContextTestSuite {       
10         
11         @Test
12         public void testGetAvailableRoles() throws Exception {
13                 
14                 ResultActions ra =getMockMvc().perform(MockMvcRequestBuilders.get("/api/roles"));
15                 //Assert.assertEquals(UrlAccessRestrictedException.class,ra.andReturn().getResolvedException().getClass());
16                 Assert.assertEquals("application/json",ra.andReturn().getResponse().getContentType());
17         }
18         
19
20 }