what happened to com.intellij.testFramework


I'd like to revive the CamouflagePlugin, but I need the
LightCodeInsightTestCase, or something similar.
What happened to the test framework?

Alain

8 comments

JetBrains, any comments on this?

Alain

0

Hmm, I didn't try if they actually work, but inside my idea.jar
from build #3144 I can see all com.intellij.testFramework.* classes.

Ok, after checking the availability of those classes in IDEA itself
using an IDEA-JDK I see the problem: The JDK doesn't have idea.jar
added to the classpath. Manually adding idea.jar helped, although I
don't know if that may have a bad impact on plugin deployment...

Sascha

0

using an IDEA-JDK I see the problem: The JDK doesn't have idea.jar
added to the classpath. Manually adding idea.jar helped, although ...



Thanks Sascha , it helped.
Now, it compiles, but I run into a strange problem:
ClassNotFoundException: org.jetbrains.idea.tomcat.TomcatManager
http://www.intellij.net/tracker/idea/viewSCR?publicId=41485

I searched manually all the jar of the distribution, to no avail.

Alain

0

Alain Ravet wrote:

Thanks Sascha , it helped.
Now, it compiles, but I run into a strange problem:
ClassNotFoundException: org.jetbrains.idea.tomcat.TomcatManager
http://www.intellij.net/tracker/idea/viewSCR?publicId=41485

I searched manually all the jar of the distribution, to no avail.


I think you have to include some of the core plugins like the CVS, Tomcat
and WebLogic integration (maybe some others as well) to the classpath for
this to work.

Sascha

0

Sascha

I think you have to include some of the core plugins like the CVS, Tomcat
and WebLogic integration (maybe some others as well) to the classpath for
this to work.

>

It helped, ... a little, but not enough.
After having added the tomcat.jar, the 2 weblogic jars, all the CVS
jars, .. I was still missing some.
So, I added ALL the jars (all the plugins + all the jars in the lib dir,
ant, rt, ..), and I'm still missing something:

java.lang.ClassNotFoundException: com.intellij.idea.TestEditorManagerImpl


And all that for a pure editor plugin :


ERROR:
java.lang.ClassNotFoundException: com.intellij.idea.TestEditorManagerImpl
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at
com.intellij.openapi.components.impl.ComponentManagerImpl.loadComponentsConfiguration(ComponentManagerImpl.java:14)
at
com.intellij.openapi.components.impl.ComponentManagerImpl.loadComponentsConfiguration(ComponentManagerImpl.java:111)
at
com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:255)
at
com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:222)
at
com.intellij.openapi.components.impl.ComponentManagerImpl.loadComponentsConfiguration(ComponentManagerImpl.java:262)
at com.intellij.openapi.project.impl.e.b(e.java:27)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:136)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.newProject(ProjectManagerImpl.java:134)
at
com.intellij.testFramework.LightIdeaTestCase$1.run(LightIdeaTestCase.java:8)
at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:36)
at
com.intellij.testFramework.LightIdeaTestCase.c(LightIdeaTestCase.java:11)
at
com.intellij.testFramework.LightIdeaTestCase.setUp(LightIdeaTestCase.java:26)
at
com.intellij.testFramework.LightIdeaTestCase.d(LightIdeaTestCase.java:36)
at
com.intellij.testFramework.LightIdeaTestCase.access$400(LightIdeaTestCase.java:30)
at
com.intellij.testFramework.LightIdeaTestCase$6.run(LightIdeaTestCase.java:3)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:171)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

java.lang.AssertionError:
at
com.intellij.openapi.diagnostic.DefaultLogger.error(DefaultLogger.java:33)
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:46)
at
com.intellij.openapi.components.impl.ComponentManagerImpl.loadComponentsConfiguration(ComponentManagerImpl.java:127)
at
com.intellij.openapi.components.impl.ComponentManagerImpl.loadComponentsConfiguration(ComponentManagerImpl.java:111)
at
com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:255)
at
com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:222)
at
com.intellij.openapi.components.impl.ComponentManagerImpl.loadComponentsConfiguration(ComponentManagerImpl.java:262)
at com.intellij.openapi.project.impl.e.b(e.java:27)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:136)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.newProject(ProjectManagerImpl.java:134)
at
com.intellij.testFramework.LightIdeaTestCase$1.run(LightIdeaTestCase.java:8)
at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:36)
at
com.intellij.testFramework.LightIdeaTestCase.c(LightIdeaTestCase.java:11)
at
com.intellij.testFramework.LightIdeaTestCase.setUp(LightIdeaTestCase.java:26)
at
com.intellij.testFramework.LightIdeaTestCase.d(LightIdeaTestCase.java:36)
at
com.intellij.testFramework.LightIdeaTestCase.access$400(LightIdeaTestCase.java:30)
at
com.intellij.testFramework.LightIdeaTestCase$6.run(LightIdeaTestCase.java:3)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:171)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

0



Arrghhh... Class Path HELL! I hope the SUN JDK team does something about this. Do some sort of 'IntelliClassLoading' or some sort of magik.

0

JetBrains,

I feel only you can answer this one. Please do.


Alain








Alain Ravet wrote:

Sascha

>
>> I think you have to include some of the core plugins like the CVS,
>> Tomcat
>> and WebLogic integration (maybe some others as well) to the classpath
>> for
>> this to work.
>>
>

It helped, ... a little, but not enough.
After having added the tomcat.jar, the 2 weblogic jars, all the CVS
jars, .. I was still missing some.
So, I added ALL the jars (all the plugins + all the jars in the lib
dir, ant, rt, ..), and I'm still missing something:

>

java.lang.ClassNotFoundException:
com.intellij.idea.TestEditorManagerImpl

>
>

And all that for a pure editor plugin :

>
>

ERROR:
java.lang.ClassNotFoundException: com.intellij.idea.TestEditorManagerImpl
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at
com.intellij.openapi.components.impl.ComponentManagerImpl.loadComponentsConfiguration(ComponentManagerImpl.java:14)

>

at
com.intellij.openapi.components.impl.ComponentManagerImpl.loadComponentsConfiguration(ComponentManagerImpl.java:111)

>

at
com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:255)

>

at
com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:222)

>

at
com.intellij.openapi.components.impl.ComponentManagerImpl.loadComponentsConfiguration(ComponentManagerImpl.java:262)

>

at com.intellij.openapi.project.impl.e.b(e.java:27)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:136)

>

at
com.intellij.openapi.project.impl.ProjectManagerImpl.newProject(ProjectManagerImpl.java:134)

>

at
com.intellij.testFramework.LightIdeaTestCase$1.run(LightIdeaTestCase.java:8)

>

at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:36)

>

at
com.intellij.testFramework.LightIdeaTestCase.c(LightIdeaTestCase.java:11)
at
com.intellij.testFramework.LightIdeaTestCase.setUp(LightIdeaTestCase.java:26)

>

at
com.intellij.testFramework.LightIdeaTestCase.d(LightIdeaTestCase.java:36)
at
com.intellij.testFramework.LightIdeaTestCase.access$400(LightIdeaTestCase.java:30)

>

at
com.intellij.testFramework.LightIdeaTestCase$6.run(LightIdeaTestCase.java:3)

>

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:171)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)

>

at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)

>

at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

>

java.lang.AssertionError:
at
com.intellij.openapi.diagnostic.DefaultLogger.error(DefaultLogger.java:33)

>

at com.intellij.openapi.diagnostic.Logger.error(Logger.java:46)
at
com.intellij.openapi.components.impl.ComponentManagerImpl.loadComponentsConfiguration(ComponentManagerImpl.java:127)

>

at
com.intellij.openapi.components.impl.ComponentManagerImpl.loadComponentsConfiguration(ComponentManagerImpl.java:111)

>

at
com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:255)

>

at
com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:222)

>

at
com.intellij.openapi.components.impl.ComponentManagerImpl.loadComponentsConfiguration(ComponentManagerImpl.java:262)

>

at com.intellij.openapi.project.impl.e.b(e.java:27)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:136)

>

at
com.intellij.openapi.project.impl.ProjectManagerImpl.newProject(ProjectManagerImpl.java:134)

>

at
com.intellij.testFramework.LightIdeaTestCase$1.run(LightIdeaTestCase.java:8)

>

at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:36)

>

at
com.intellij.testFramework.LightIdeaTestCase.c(LightIdeaTestCase.java:11)
at
com.intellij.testFramework.LightIdeaTestCase.setUp(LightIdeaTestCase.java:26)

>

at
com.intellij.testFramework.LightIdeaTestCase.d(LightIdeaTestCase.java:36)
at
com.intellij.testFramework.LightIdeaTestCase.access$400(LightIdeaTestCase.java:30)

>

at
com.intellij.testFramework.LightIdeaTestCase$6.run(LightIdeaTestCase.java:3)

>

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:171)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)

>

at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)

>

at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

>

0

Alain,

It seems impossible to workaround this particular issue. We'll fix it ASAP.
Thanks.

JetBrains,

I feel only you can answer this one. Please do.

Alain

Alain Ravet wrote:

>> Sascha
>>
>>> I think you have to include some of the core plugins like the CVS,
>>> Tomcat
>>> and WebLogic integration (maybe some others as well) to the
>>> classpath
>>> for
>>> this to work.
>> It helped, ... a little, but not enough.
>> After having added the tomcat.jar, the 2 weblogic jars, all the CVS
>> jars, .. I was still missing some.
>> So, I added ALL the jars (all the plugins + all the jars in the lib
>> dir, ant, rt, ..), and I'm still missing something:
>> java.lang.ClassNotFoundException:
>> com.intellij.idea.TestEditorManagerImpl
>>
>> And all that for a pure editor plugin :
>>
>> ERROR:
>>
>> java.lang.ClassNotFoundException:
>> com.intellij.idea.TestEditorManagerImpl
>>
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
>>
>> at java.security.AccessController.doPrivileged(Native Method)
>>
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>>
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>>
>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>>
>> at java.lang.Class.forName0(Native Method)
>>
>> at java.lang.Class.forName(Class.java:219)
>>
>> at
>>
>> com.intellij.openapi.components.impl.ComponentManagerImpl.loadCompone
>> ntsConfiguration(ComponentManagerImpl.java:14)
>>
>> at
>> com.intellij.openapi.components.impl.ComponentManagerImpl.loadCompone
>> ntsConfiguration(ComponentManagerImpl.java:111)
>>
>> at
>> com.intellij.openapi.components.impl.ComponentManagerImpl.a(Component
>> ManagerImpl.java:255)
>>
>> at
>> com.intellij.openapi.components.impl.ComponentManagerImpl.a(Component
>> ManagerImpl.java:222)
>>
>> at
>> com.intellij.openapi.components.impl.ComponentManagerImpl.loadCompone
>> ntsConfiguration(ComponentManagerImpl.java:262)
>>
>> at com.intellij.openapi.project.impl.e.b(e.java:27) at
>> com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManager
>> Impl.java:136)
>>
>> at
>> com.intellij.openapi.project.impl.ProjectManagerImpl.newProject(Proje
>> ctManagerImpl.java:134)
>>
>> at
>> com.intellij.testFramework.LightIdeaTestCase$1.run(LightIdeaTestCase.
>> java:8)
>>
>> at
>> com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(
>> ApplicationImpl.java:36)
>>
>> at
>> com.intellij.testFramework.LightIdeaTestCase.c(LightIdeaTestCase.java
>> :11) at
>> com.intellij.testFramework.LightIdeaTestCase.setUp(LightIdeaTestCase.
>> java:26)
>>
>> at
>> com.intellij.testFramework.LightIdeaTestCase.d(LightIdeaTestCase.java
>> :36) at
>> com.intellij.testFramework.LightIdeaTestCase.access$400(LightIdeaTest
>> Case.java:30)
>>
>> at
>> com.intellij.testFramework.LightIdeaTestCase$6.run(LightIdeaTestCase.
>> java:3)
>>
>> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:171)
>> at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
>> at
>> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
>> read.java:234)
>> at
>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
>> ad.java:184)
>>
>> at
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
>> at
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
>> at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
>>
>> java.lang.AssertionError:
>> at
>> com.intellij.openapi.diagnostic.DefaultLogger.error(DefaultLogger.jav
>> a:33)
>> at com.intellij.openapi.diagnostic.Logger.error(Logger.java:46)
>>
>> at
>>
>> com.intellij.openapi.components.impl.ComponentManagerImpl.loadCompone
>> ntsConfiguration(ComponentManagerImpl.java:127)
>>
>> at
>> com.intellij.openapi.components.impl.ComponentManagerImpl.loadCompone
>> ntsConfiguration(ComponentManagerImpl.java:111)
>>
>> at
>> com.intellij.openapi.components.impl.ComponentManagerImpl.a(Component
>> ManagerImpl.java:255)
>>
>> at
>> com.intellij.openapi.components.impl.ComponentManagerImpl.a(Component
>> ManagerImpl.java:222)
>>
>> at
>> com.intellij.openapi.components.impl.ComponentManagerImpl.loadCompone
>> ntsConfiguration(ComponentManagerImpl.java:262)
>>
>> at com.intellij.openapi.project.impl.e.b(e.java:27) at
>> com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManager
>> Impl.java:136)
>>
>> at
>> com.intellij.openapi.project.impl.ProjectManagerImpl.newProject(Proje
>> ctManagerImpl.java:134)
>>
>> at
>> com.intellij.testFramework.LightIdeaTestCase$1.run(LightIdeaTestCase.
>> java:8)
>>
>> at
>> com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(
>> ApplicationImpl.java:36)
>>
>> at
>> com.intellij.testFramework.LightIdeaTestCase.c(LightIdeaTestCase.java
>> :11) at
>> com.intellij.testFramework.LightIdeaTestCase.setUp(LightIdeaTestCase.
>> java:26)
>>
>> at
>> com.intellij.testFramework.LightIdeaTestCase.d(LightIdeaTestCase.java
>> :36) at
>> com.intellij.testFramework.LightIdeaTestCase.access$400(LightIdeaTest
>> Case.java:30)
>>
>> at
>> com.intellij.testFramework.LightIdeaTestCase$6.run(LightIdeaTestCase.
>> java:3)
>>
>> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:171)
>> at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
>> at
>> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
>> read.java:234)
>> at
>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
>> ad.java:184)
>>
>> at
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
>> at
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
>> at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
>> at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)


0

Please sign in to leave a comment.