Bug 127441 junit view: showing errors only takes a long time
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/TestViewer.java
TestCaseElement firstFailure= getNextChildFailure(fTestRunSession.getTestRoot(), true);
		if (firstFailure != null)
			fTreeViewer.setSelection(new StructuredSelection(firstFailure), true);
	}
	
	public void selectFailure(boolean showNext) {
		ITreeSelection selection= (ITreeSelection) fTreeViewer.getSelection();
		TestElement selected= (TestElement) selection.getFirstElement();
		TestElement next;
		
		if (selected == null) {
			next= getNextChildFailure(fTestRunSession.getTestRoot(), showNext);
		} else if (selected instanceof TestSuiteElement) {
			next= getNextChildFailure((TestSuiteElement) selected, showNext);
			if (next == null)
				next= getNextFailureSibling(selected, showNext);
		} else {
			next= getNextFailureSibling(selected, showNext);
		}
		
		if (next != null)
			fTreeViewer.setSelection(new StructuredSelection(next), true);
	}
	
	private TestCaseElement getNextFailureSibling(TestElement current, boolean showNext) {
		TestSuiteElement parent= current.getParent();
		if (parent == null)
			return null;
		
		List siblings= Arrays.asList(parent.getChildren());