public void init() { ContextInfo contextInfo = new ContextInfo(); contextInfo.setPrincipalId("Test-Initializer"); CourseInfo course1 = this._createCourse("ENGL101", "ENGL", "101", "English 101", "3", contextInfo); }
@Before public void setUp() throws Exception { callContext = new ContextInfo(); callContext.setPrincipalId(principalId); new CourseR1TestDataLoader(this.courseService).loadData(); new LuiServiceDataLoader(this.luiService).loadData(); // due to KSENROLL-4185, data must be loaded into the mock Atp and mock Acal services AcalTestDataLoader acalLoader = new AcalTestDataLoader(this.atpService); acalLoader.loadTerm( "testAtpId1", "test1", "2000-01-01 00:00:00.0", "2100-12-31 00:00:00.0", AtpServiceConstants.ATP_FALL_TYPE_KEY, AtpServiceConstants.ATP_OFFICIAL_STATE_KEY, "description 1"); new MockAcalTestDataLoader(this.acalService).loadData(); new MockLrcTestDataLoader(this.lrcService).loadData(); createStateTestData(); }
private ContextInfo getContext(String userId) { ContextInfo context = new ContextInfo(); context.setPrincipalId(userId); return context; }