1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package org.kuali.mobility.tours.service;
16
17 import static org.junit.Assert.*;
18
19 import org.apache.log4j.Logger;
20 import org.junit.AfterClass;
21 import org.junit.BeforeClass;
22 import org.junit.Test;
23 import org.springframework.context.ApplicationContext;
24 import org.springframework.context.support.FileSystemXmlApplicationContext;
25
26 public class ToursServiceImplTest {
27 private static final Logger LOG = Logger.getLogger(ToursServiceImplTest.class );
28
29 private static ApplicationContext applicationContext;
30
31 public static ApplicationContext getApplicationContext() {
32 return applicationContext;
33 }
34
35 public static void setApplicationContext(ApplicationContext applicationContext) {
36 ToursServiceImplTest.applicationContext = applicationContext;
37 }
38
39 @BeforeClass
40 public static void setUpClass() throws Exception {
41 ToursServiceImplTest.setApplicationContext(new FileSystemXmlApplicationContext(getConfigLocations()));
42 }
43
44 private static String[] getConfigLocations() {
45 return new String[] {"classpath:/ToursSpringBeans.xml"};
46 }
47
48 @AfterClass
49 public static void tearDownClass() throws Exception {
50 }
51
52 @Test
53 public void testFindAllTours() {
54 ToursServiceImpl service = (ToursServiceImpl) getApplicationContext().getBean("toursService");
55
56 }
57
58 @Test
59 public void testCreateTourKml() {
60
61 }
62 }