Bug 33234 Goto source doesn't work when running a single test [JUnit]
RC 1 - JUnit setup - select VectorTest.testCapacity - run->JUnit Test - in JUnit view part go to hierarchy - select testCapacity - activate Goto File from context menu Observe: you get an error dialog saying that the test class can't be found.
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/OpenEditorAction.java
/*
	 * @see IAction#run()
	 */
	public void run() {
		ITextEditor textEditor= null;
		try {
			IJavaElement element= findElement(fTestRunner.getLaunchedProject(), fClassName);
			if (element == null) {
				MessageDialog.openError(fTestRunner.getSite().getShell(), 
					JUnitMessages.getString("OpenEditorAction.error.cannotopen.title"), JUnitMessages.getString("OpenEditorAction.error.cannotopen.message")); 
				return;
			}
			
			textEditor= (ITextEditor)EditorUtility.openInEditor(element, false);			
		} catch (CoreException e) {
			ErrorDialog.openError(fTestRunner.getSite().getShell(), JUnitMessages.getString("OpenEditorAction.error.dialog.title"), JUnitMessages.getString("OpenEditorAction.error.dialog.message"), e.getStatus()); 
			return;
		}
		if (textEditor == null) {
			fTestRunner.postInfo(JUnitMessages.getString("OpenEditorAction.message.cannotopen")); 
			return;
		}
		reveal(textEditor);
	}
	
	protected abstract IJavaElement findElement(IJavaProject project, String className) throws JavaModelException;
	
	protected abstract void reveal(ITextEditor editor);
}