aboutsummaryrefslogtreecommitdiffstats
path: root/ecomp-sdk-app/src/test/java/org/openecomp/portalapp/controller/NetMapTest.java
blob: 4622f66ed04801b3a1fb6487c269ca4ad643e9dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package org.openecomp.portalapp.controller;

import org.junit.Assert;
import org.junit.Test;
import org.openecomp.portalsdk.core.MockApplicationContextTestSuite;
import org.springframework.test.web.servlet.ResultActions;
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;

public class NetMapTest extends MockApplicationContextTestSuite {
	
	@Test
	public void testGetNetMap() throws Exception {
		ResultActions ra =getMockMvc().perform(MockMvcRequestBuilders.get("/net_map"));
		//Assert.assertEquals(UrlAccessRestrictedException.class,ra.andReturn().getResolvedException().getClass());
		Assert.assertEquals("net_map_int",ra.andReturn().getModelAndView().getModel().get("frame_int"));
	}
	

}