Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support import from configuration files #1840

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix tests
Signed-off-by: Sheng Chen <sheche@microsoft.com>
  • Loading branch information
jdneo committed Aug 27, 2021
commit 27151ffccc3c8bb5d7f4f983dc87111bf49279e5
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ private Range getRange(ICompilationUnit cu, IProblem[] problems) throws JavaMode

private Preferences mockPreferences() {
Preferences mockPreferences = Mockito.mock(Preferences.class);
Mockito.when(mockPreferences.getProjectConfigurations()).thenReturn(null);
Mockito.when(preferenceManager.getPreferences()).thenReturn(mockPreferences);
Mockito.when(preferenceManager.getPreferences(Mockito.any())).thenReturn(mockPreferences);
Mockito.when(mockPreferences.getIncompleteClasspathSeverity()).thenReturn(Severity.ignore);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public void setup() throws Exception {
clientPreferences = preferenceManager.getClientPreferences();
when(clientPreferences.isResourceOperationSupported()).thenReturn(false);
Preferences p = mock(Preferences.class);
when(p.getProjectConfigurations()).thenReturn(null);
when(preferenceManager.getPreferences()).thenReturn(p);
when(p.isRenameEnabled()).thenReturn(true);
handler = new RenameHandler(preferenceManager);
Expand Down