|
From: David C. <dc...@us...> - 2005-11-13 15:47:11
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core.tests/src/org/rubypeople/rdt/internal/core/builder In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5059/src/org/rubypeople/rdt/internal/core/builder Modified Files: TS_InternalCoreBuilder.java Added Files: TC_MassIndexUpdaterJob.java Log Message: Scan project SymbolIndex on startup/project open asynchronously. Index: TS_InternalCoreBuilder.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core.tests/src/org/rubypeople/rdt/internal/core/builder/TS_InternalCoreBuilder.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TS_InternalCoreBuilder.java 12 Nov 2005 19:15:53 -0000 1.2 --- TS_InternalCoreBuilder.java 13 Nov 2005 15:47:03 -0000 1.3 *************** *** 25,28 **** --- 25,29 ---- suite.addTestSuite(TC_CleanRdtCompiler.class); suite.addTestSuite(TC_IncrementalRdtCompiler.class); + suite.addTestSuite(TC_MassIndexUpdaterJob.class); return suite; --- NEW FILE: TC_MassIndexUpdaterJob.java --- /* * Author: David Corbin * * Copyright (c) 2005 RubyPeople. * * This file is part of the Ruby Development Tools (RDT) plugin for eclipse. * RDT is subject to the "Common Public License (CPL) v 1.0". You may not use * RDT except in compliance with the License. For further information see * org.rubypeople.rdt/rdt.license. */ package org.rubypeople.rdt.internal.core.builder; import org.rubypeople.eclipse.shams.resources.ShamProject; import org.rubypeople.rdt.internal.core.ShamMassIndexUpdater; import org.rubypeople.rdt.internal.core.util.ListUtil; import junit.framework.TestCase; public class TC_MassIndexUpdaterJob extends TestCase { public void testJob() throws Exception { ShamMassIndexUpdater massIndexUpdater = new ShamMassIndexUpdater(); ShamProject project = new ShamProject("test1"); MassIndexUpdaterJob job = new MassIndexUpdaterJob(massIndexUpdater, ListUtil.create(project)); job.schedule(); job.join(); massIndexUpdater.assertProjectsUpdated(ListUtil.create(project)); } } |