IndexDiffData data3 = waitForListenerCalled();
assertThat(data3.getIgnoredNotInIndex(), not(hasItem("Project-1/sub/ignore")));
}
private void prepareCacheEntry() {
IndexDiffCache indexDiffCache = Activator.getDefault()
.getIndexDiffCache();
// This call should trigger an indexDiffChanged event
IndexDiffCacheEntry cacheEntry = indexDiffCache
.getIndexDiffCacheEntry(repository);
listenerCalled = new AtomicBoolean(false);
indexDiffDataResult = new AtomicReference<IndexDiffData>(
null);
cacheEntry.addIndexDiffChangedListener(new IndexDiffChangedListener() {