@@ -56,7 +56,7 @@ describe('SimpleTriggerConfig', () => {
5656
5757 it ( 'should fetch no triggers at the init' , ( ) => {
5858 expect ( component ) . toBeTruthy ( ) ;
59- httpTestingController . expectNone ( `${ CONTEXT_PATH } /simple-triggers/my-simple-trigger` ) ;
59+ httpTestingController . expectNone ( `${ CONTEXT_PATH } /simple-triggers/DEFAULT/ my-simple-trigger` ) ;
6060 } ) ;
6161
6262 function setInputValue ( componentDe : DebugElement , inputSelector : string , value : string ) {
@@ -95,7 +95,7 @@ describe('SimpleTriggerConfig', () => {
9595 component . openTriggerForm ( ) ;
9696 fixture . detectChanges ( ) ;
9797
98- const getJobsReq = httpTestingController . expectOne ( `${ CONTEXT_PATH } /jobs ` ) ;
98+ const getJobsReq = httpTestingController . expectOne ( `${ CONTEXT_PATH } /job-classes ` ) ;
9999 getJobsReq . flush ( [ testJobName ] ) ;
100100
101101 const componentDe : DebugElement = fixture . debugElement ;
@@ -150,7 +150,7 @@ describe('SimpleTriggerConfig', () => {
150150 expect ( submittedTriggerKey ) . toEqual ( new TriggerKey ( testTriggerName , null ) ) ;
151151 flush ( ) ;
152152
153- const postSimpleTriggerReq = httpTestingController . expectOne ( `${ CONTEXT_PATH } /simple-triggers/${ testTriggerName } ` ) ;
153+ const postSimpleTriggerReq = httpTestingController . expectOne ( `${ CONTEXT_PATH } /simple-triggers/DEFAULT/ ${ testTriggerName } ` ) ;
154154 postSimpleTriggerReq . flush ( mockTrigger ) ;
155155
156156 expect ( actualNewTrigger ) . toEqual ( mockTrigger ) ;
@@ -166,7 +166,7 @@ describe('SimpleTriggerConfig', () => {
166166 mockTrigger . jobDetailDTO = < JobDetail > { jobClassName : testJobName , description : null } ;
167167 mockTrigger . mayFireAgain = true ;
168168 mockTrigger . misfireInstruction = MisfireInstruction . MISFIRE_INSTRUCTION_FIRE_NOW ;
169- const getSimpleTriggerReq = httpTestingController . expectOne ( `${ CONTEXT_PATH } /simple-triggers/${ testTriggerName } ` ) ;
169+ const getSimpleTriggerReq = httpTestingController . expectOne ( `${ CONTEXT_PATH } /simple-triggers/DEFAULT/ ${ testTriggerName } ` ) ;
170170 getSimpleTriggerReq . flush ( mockTrigger ) ;
171171
172172 component . simpleTriggerReactiveForm . setValue ( {
@@ -198,7 +198,7 @@ describe('SimpleTriggerConfig', () => {
198198
199199 submitButton . nativeElement . click ( ) ;
200200
201- const putSimpleTriggerReq = httpTestingController . expectOne ( `${ CONTEXT_PATH } /simple-triggers/${ testTriggerName } ` ) ;
201+ const putSimpleTriggerReq = httpTestingController . expectOne ( `${ CONTEXT_PATH } /simple-triggers/DEFAULT/ ${ testTriggerName } ` ) ;
202202 putSimpleTriggerReq . flush ( mockTrigger ) ;
203203
204204 expect ( actualNewTrigger ) . toBeUndefined ( ) ;
@@ -214,7 +214,7 @@ describe('SimpleTriggerConfig', () => {
214214 const mockTrigger = new Trigger ( ) ;
215215 mockTrigger . triggerKeyDTO = mockTriggerKey ;
216216 mockTrigger . jobDetailDTO = < JobDetail > { jobClassName : 'TestJob' , description : null } ;
217- const getSimpleTriggerReq = httpTestingController . expectOne ( `${ CONTEXT_PATH } /simple-triggers/my-simple-trigger` ) ;
217+ const getSimpleTriggerReq = httpTestingController . expectOne ( `${ CONTEXT_PATH } /simple-triggers/DEFAULT/ my-simple-trigger` ) ;
218218 getSimpleTriggerReq . flush ( mockTrigger ) ;
219219
220220 fixture . detectChanges ( ) ;
@@ -246,7 +246,7 @@ describe('SimpleTriggerConfig', () => {
246246 mockTrigger . mayFireAgain = true ;
247247 mockTrigger . misfireInstruction = MisfireInstruction . MISFIRE_INSTRUCTION_FIRE_NOW ;
248248
249- const getSimpleTriggerReq = httpTestingController . expectOne ( `${ CONTEXT_PATH } /simple-triggers/${ testTriggerName } ` ) ;
249+ const getSimpleTriggerReq = httpTestingController . expectOne ( `${ CONTEXT_PATH } /simple-triggers/DEFAULT/ ${ testTriggerName } ` ) ;
250250 getSimpleTriggerReq . flush ( mockTrigger ) ;
251251
252252 expect ( component . simpleTriggerReactiveForm . value . triggerName ) . toEqual ( testTriggerName ) ;
@@ -271,7 +271,7 @@ describe('SimpleTriggerConfig', () => {
271271
272272 it ( 'should display the warning if there are no eligible jobs' , ( ) => {
273273 fixture . detectChanges ( ) ;
274- const getJobsReq = httpTestingController . expectOne ( `${ CONTEXT_PATH } /jobs ` ) ;
274+ const getJobsReq = httpTestingController . expectOne ( `${ CONTEXT_PATH } /job-classes ` ) ;
275275 getJobsReq . flush ( [ ] ) ;
276276 fixture . detectChanges ( ) ;
277277
@@ -285,7 +285,7 @@ describe('SimpleTriggerConfig', () => {
285285
286286 it ( 'should not display the warning if there are eligible jobs' , ( ) => {
287287 fixture . detectChanges ( ) ;
288- const getJobsReq = httpTestingController . expectOne ( `${ CONTEXT_PATH } /jobs ` ) ;
288+ const getJobsReq = httpTestingController . expectOne ( `${ CONTEXT_PATH } /job-classes ` ) ;
289289 getJobsReq . flush ( [ 'sampleJob' ] ) ;
290290 fixture . detectChanges ( ) ;
291291
0 commit comments