blob: 259aecd495eddec2a886f244df6778eec4531fbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package org.onap.portalapp;
import org.junit.Assert;
import org.junit.Test;
import org.onap.portalapp.core.MockApplicationContextTestSuite;
import org.springframework.test.web.servlet.ResultActions;
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
public class SanityTest extends MockApplicationContextTestSuite {
@Test
public void testGetAvailableRoles() throws Exception {
ResultActions ra =getMockMvc().perform(MockMvcRequestBuilders.get("/api/roles"));
//Assert.assertEquals(UrlAccessRestrictedException.class,ra.andReturn().getResolvedException().getClass());
Assert.assertEquals("application/json",ra.andReturn().getResponse().getContentType());
}
}
|