blob: b5205a9a94431e3b4cd639ac61b3cf00399aa710 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package org.onap.fusionapp;
import org.junit.Assert;
import org.junit.Test;
import org.onap.fusion.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());
}
}
|