[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

refactor test failures

From: McClain Looney <m_at_loonsoft.com>
Date: 2004-04-23 22:24:29 CEST

Can anyone provide me with some insight as to the following test failures
(testPackageRename fails similarly)?

It seems that the refreshLocal() call in OperationManager.endOperation
confuses the job manager for some reason.

i believe the actual implementation code is correct, since rename works when
driven manually.

interestingly, the test still passes if the operationManager is removed from
the equasion.

java.lang.IllegalArgumentException: Attempted to beginRule:
F/home/mml/junit-workbench-workspace/testProject/src/pack1, does not match
outer scope rule: F/testProject/src/pack1
        at org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java:56)
        at
org.eclipse.core.internal.jobs.ImplicitJobs$ThreadJob.illegalPush(ImplicitJobs.java:86)
        at
org.eclipse.core.internal.jobs.ImplicitJobs$ThreadJob.push(ImplicitJobs.java:167)
        at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:241)
        at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:149)
        at
org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:88)
        at
org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1521)
        at
org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1158)
        at
org.tigris.subversion.subclipse.core.client.OperationManager.endOperation(OperationManager.java:84)
        at
org.tigris.subversion.subclipse.core.resources.SVNMoveDeleteHook.moveFile(SVNMoveDeleteHook.java:165)
        at
org.eclipse.team.internal.core.MoveDeleteManager.moveFile(MoveDeleteManager.java:87)
        at
org.eclipse.core.internal.resources.Resource.unprotectedMove(Resource.java:1452)
        at org.eclipse.core.internal.resources.Resource.move(Resource.java:1123)
        at org.eclipse.core.internal.resources.Resource.move(Resource.java:1083)
        at
org.tigris.subversion.subclipse.test.core.RefactorTest.testClassRename(RefactorTest.java:48)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:410)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:294)
        at
org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:30)
        at
org.eclipse.pde.internal.junit.runtime.UITestApplication$1.run(UITestApplication.java:91)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:106)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1930)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1562)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1536)
        at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:257)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:90)
        at
org.eclipse.pde.internal.junit.runtime.UITestApplication.run(UITestApplication.java:34)
        at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:277)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:239)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:117)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:267)
        at org.eclipse.core.launcher.Main.run(Main.java:692)
        at org.eclipse.core.launcher.Main.main(Main.java:676)

-- 
McClain Looney
LoonSoft LLC
m@loonsoft.com
Received on Sat Apr 24 06:24:29 2004

This is an archived mail posted to the Subclipse Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.