1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package org.kuali.mobility.shared.controllers;
16
17 import org.junit.Test;
18 import org.springframework.ui.ExtendedModelMap;
19
20 import java.util.Properties;
21
22 import static org.junit.Assert.assertTrue;
23
24
25
26
27 public class KMEJavascriptControllerTest {
28
29 @Test
30 public void testGetServerDetails() {
31 Properties kmeProperties = new Properties();
32 KMEJavascriptController controller = new KMEJavascriptController();
33 controller.setKmeProperties(kmeProperties);
34 String viewName = controller.getServerDetails(new ExtendedModelMap());
35 assertTrue("Failed to find proper view name.","js/KMEServerDetails".equals(viewName));
36 }
37 }