Bug 65399 changing a "Run a Single Test" configuration into "Run All Tests in..." does not run all tests [JUnit]
First I ran a single test (by selecting the test method and then choosing Run/JUnit Test from its context menu actions). Then I decided to run all tests in the package instead. So inside the Launching Configurations dialog I chose the option Run All Tests in selected project, package or folder and selected the package which contained the test class I had previously selected. Surprisingly it did not run all tests in the package I chose in the previous dialog, rather it ran only the same test from which I created that initial launching configuration. This is a bug which users are very likely to encounter: initially they will want to run a single test and then change their mind and try to run all tests within the corresponding package. 3.0 RC1 Build id: 200405290105
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/launcher/JUnitMainTab.java
private void initializeTestContainer(IJavaElement javaElement, ILaunchConfigurationWorkingCopy config) {
		config.setAttribute(JUnitBaseLaunchConfiguration.LAUNCH_CONTAINER_ATTR, javaElement.getHandleIdentifier());
		initializeName(config, javaElement.getElementName());
	}
	private void initializeName(ILaunchConfigurationWorkingCopy config, String name) {
		if (name == null) {
			name= ""; 
		}
		if (name.length() > 0) {
			int index = name.lastIndexOf('.');
			if (index > 0) {
				name = name.substring(index + 1);
			}
			name= getLaunchConfigurationDialog().generateName(name);
			config.rename(name);
		}
	}
	/**
	 * Set the main type & name attributes on the working copy based on the IJavaElement
	 */
	protected void initializeTestType(IJavaElement javaElement, ILaunchConfigurationWorkingCopy config) {
		String name= ""; 
		try {
			 
			
			if ((javaElement instanceof ICompilationUnit) || 
				(javaElement instanceof ISourceReference) ||
				(javaElement instanceof IClassFile)) {
		
				IType[] types = TestSearchEngine.findTests(new Object[] {javaElement});