mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Bug 133881 - Make refreshing after building optional
Work in progress.
This commit is contained in:
parent
6a9144e8e0
commit
1c43fad405
1 changed files with 25 additions and 0 deletions
|
@ -357,6 +357,31 @@ public class RefreshScopeTests extends TestCase {
|
|||
List<RefreshExclusion> exclusions = manager.getExclusions(fProject);
|
||||
assertEquals(0, exclusions.size());
|
||||
|
||||
// now try persisting the data and loading it
|
||||
try {
|
||||
manager.persistSettings();
|
||||
} catch (CoreException e) {
|
||||
fail();
|
||||
}
|
||||
|
||||
manager.clearAllData();
|
||||
|
||||
try {
|
||||
manager.loadSettings();
|
||||
} catch (CoreException e) {
|
||||
fail();
|
||||
}
|
||||
|
||||
// test the defaults again
|
||||
// by default, a project should refresh its root
|
||||
resourcesToRefresh = manager.getResourcesToRefresh(fProject);
|
||||
assertEquals(1, resourcesToRefresh.size());
|
||||
resourceArray = resourcesToRefresh.toArray(new IResource[0]);
|
||||
assertEquals(fProject, resourceArray[0]);
|
||||
// there should be no exclusions
|
||||
exclusions = manager.getExclusions(fProject);
|
||||
assertEquals(0, exclusions.size());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue