Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 519424 - [test] CompletionTest2 fails when run in isolation
Summary: [test] CompletionTest2 fails when run in isolation
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.7   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: BETA J9   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 508375 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-07-08 07:36 EDT by Stephan Herrmann CLA
Modified: 2020-01-23 15:07 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2017-07-08 07:36:40 EDT
Running just org.eclipse.jdt.core.tests.model.CompletionTests2 yields two failures where unexpected proposals are found, which at a closer look are correct substring matches.

When running via RunCompletionModelTests (or AllJavaModelTests), a previous test suite will have called AbstractJavaModelCompletionTests.setUpSuite() where we find this:

	options.put(JavaCore.CODEASSIST_SUBSTRING_MATCH, JavaCore.DISABLED);

CompletionTests2, however, extends ModifyingResourceTests which bypasses the above.

Fix is to change the superclass to AbstractJavaModelCompletionTests.
Comment 1 Eclipse Genie CLA 2017-07-08 07:37:37 EDT
New Gerrit change created: https://git.eclipse.org/r/100956
Comment 3 Stephan Herrmann CLA 2017-07-08 10:05:19 EDT
(In reply to Eclipse Genie from comment #2)
> Gerrit change https://git.eclipse.org/r/100956 was merged to [BETA_JAVA9].
> Commit:
> http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=50427fcbd3c365a21cf497d1c3f56f95569b8ff6
> 

Resolved in BETA_JAVA9
Comment 4 Stephan Herrmann CLA 2020-01-23 15:07:12 EST
*** Bug 508375 has been marked as a duplicate of this bug. ***