1 package org.kuali.student.enrollment.class2.courseoffering.service.impl; 2 3 import org.junit.runner.RunWith; 4 import org.kuali.student.enrollment.class1.lui.service.impl.LuiServiceDataLoader; 5 import org.kuali.student.enrollment.class2.acal.util.MockAcalTestDataLoader; 6 import org.kuali.student.lum.lrc.service.util.MockLrcTestDataLoader; 7 import org.kuali.student.r2.common.dto.ContextInfo; 8 import org.springframework.test.context.ContextConfiguration; 9 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 10 import org.springframework.test.context.transaction.TransactionConfiguration; 11 import org.springframework.transaction.annotation.Transactional; 12 13 @RunWith(SpringJUnit4ClassRunner.class) 14 @ContextConfiguration(locations = {"classpath:co-test-with-fewer-mocks-context.xml"}) 15 @TransactionConfiguration(transactionManager = "JtaTxManager", defaultRollback = true) 16 @Transactional 17 public class TestCourseOfferingServiceImplWithFewerClass1Mocks extends TestCourseOfferingServiceImplWithClass1Mocks { 18 19 public void setUp() { 20 callContext = new ContextInfo(); 21 callContext.setPrincipalId(principalId); 22 try { 23 new CourseR1TestDataLoader(this.courseService).loadData(); 24 new LuiServiceDataLoader(this.luiService).loadData(); 25 new MockAcalTestDataLoader(this.acalService).loadData(); 26 new MockLrcTestDataLoader(this.lrcService).loadData(); 27 28 createStateTestData(); 29 createSchedulingServiceData(); 30 } catch (Exception ex) { 31 throw new RuntimeException(ex); 32 } 33 34 } 35 }