use of org.eclipse.lsp4j.RenameCapabilities in project eclipse.jdt.ls by eclipse.
the class ClientPreferencesTest method testIsRenameDynamicRegistrationSupported.
@Test
public void testIsRenameDynamicRegistrationSupported() throws Exception {
assertFalse(prefs.isRenameDynamicRegistrationSupported());
when(text.getRename()).thenReturn(new RenameCapabilities());
assertFalse(prefs.isRenameDynamicRegistrationSupported());
when(text.getRename()).thenReturn(new RenameCapabilities(true));
assertTrue(prefs.isRenameDynamicRegistrationSupported());
}
Aggregations