View Javadoc

1   package org.kuali.ole.deliver.batch;
2   
3   import org.junit.After;
4   import org.junit.Before;
5   import org.junit.Test;
6   import org.junit.runner.RunWith;
7   import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader;
8   import org.kuali.rice.krad.service.BusinessObjectService;
9   import org.kuali.rice.krad.service.KRADServiceLocator;
10  import org.springframework.test.context.ContextConfiguration;
11  import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
12  import org.springframework.test.context.transaction.TransactionConfiguration;
13  
14  /**
15   * Created with IntelliJ IDEA.
16   * User: ?
17   * Date: 11/14/12
18   * Time: 6:42 PM
19   * To change this template use File | Settings | File Templates.
20   */
21  @ContextConfiguration(locations = {"classpath:/SpringBeans.xml"})
22  @RunWith(value = SpringJUnit4ClassRunner.class)
23  @TransactionConfiguration(defaultRollback = true)
24  public class OleOverDueNotice_UT {
25      private OleOverDueNotice oleOverDueNoticeBean;
26      private BusinessObjectService service;
27  
28      @Before
29      public void setUp() throws Exception {
30          service = KRADServiceLocator.getBusinessObjectService();
31          oleOverDueNoticeBean = GlobalResourceLoader.getService("oleOverDueNotice");
32      }
33  
34      @Test
35      public void testExecute() throws Exception {
36           oleOverDueNoticeBean.execute();
37      }
38  
39      @After
40      public void tearDown() throws Exception {
41          service = null;
42          oleOverDueNoticeBean = null;
43      }
44  }