|
From: David C. <dc...@us...> - 2005-10-23 00:03:19
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core.tests/src/org/rubypeople/rdt/internal/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16992/src/org/rubypeople/rdt/internal/core Modified Files: TC_SymbolIndexResourceEventListener.java Log Message: Minor clean up and analysis support. Index: TC_SymbolIndexResourceEventListener.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core.tests/src/org/rubypeople/rdt/internal/core/TC_SymbolIndexResourceEventListener.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TC_SymbolIndexResourceEventListener.java 19 Oct 2005 00:33:05 -0000 1.2 --- TC_SymbolIndexResourceEventListener.java 23 Oct 2005 00:03:11 -0000 1.3 *************** *** 22,27 **** public class TC_SymbolIndexResourceEventListener extends TestCase { - - private ShamMassIndexUpdater massIndexUpdater; private SymbolIndexResourceChangeListener listener; --- 22,25 ---- *************** *** 48,51 **** --- 46,62 ---- massIndexUpdater.assertProjectsUpdated(ListUtil.create(project)); } + + public void testMultipleProjectOpen() throws Exception { + ShamProject project2 = new ShamProject("test2"); + parentDelta.addChildren(createDelta(project)); + parentDelta.addChildren(createDelta(project2)); + + ShamResourceChangeEvent event = + new ShamResourceChangeEvent(IResourceChangeEvent.POST_CHANGE, parentDelta); + + listener.resourceChanged(event); + + massIndexUpdater.assertProjectsUpdated(ListUtil.create(project, project2)); + } public void testWithoutProject() throws Exception { |