summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-common/src/test/java/org/openecomp/portalapp/controller/NetMapTest.java
blob: 0f06ea7f5b5ab9e023a402da454bec392e19a9e0 (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.portalapp.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"));
	}
	

}