Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 162487
Collapse All | Expand All

(-)src-test/org/eclipse/hyades/loaders/common/XMLexecutionEventLoader.java (-2 / +12 lines)
Lines 349-361 Link Here
349
			}
349
			}
350
		}
350
		}
351
		
351
		
352
		// Now add all the repository records of that event
352
		// Now add all the repository records of that event to the root result
353
		if (repositoryRecords != null) {
353
		if (repositoryRecords != null) {
354
			Iterator iter = repositoryRecords.iterator();
354
			TPFExecutionResult exResult = null;
355
			try {
356
			ExecutionContext eContext = (ExecutionContext) context.getCustomData().get(ExecutionContext.root);
357
			exResult = eContext.rootResult.getResult();
358
			}
359
			catch(Throwable t){t.printStackTrace();}
360
			
361
			Iterator iter = repositoryRecords.iterator();			
355
			while (iter.hasNext()) {
362
			while (iter.hasNext()) {
356
				TPFRepositoryRecord record = (TPFRepositoryRecord)iter.next();
363
				TPFRepositoryRecord record = (TPFRepositoryRecord)iter.next();
357
				if (record != null) {
364
				if (record != null) {
358
					event.getDefectRecords().add(record);
365
					event.getDefectRecords().add(record);
366
					// Also add the repository record to root level execution result.
367
					if(exResult != null)
368
						exResult.getRecords().add(record);
359
				}
369
				}
360
			}
370
			}
361
		}
371
		}

Return to bug 162487