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