You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Pierre-Arnaud Marcelot <pa...@marcelot.net> on 2009/12/07 14:41:29 UTC
[Studio] Compilation failures in integration tests
Hi,
I'm having compilation failures in integration tests.
In the *'test-integration-core' module*:
> pajbam@ubuntu:~/Development/Apache/Studio/test-integration-core$ mvn clean
> install
> Warning: JAVA_HOME environment variable is not set.
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: org.apache.directory.studio:test.integration.core
> POM Location:
> /home/pajbam/Development/Apache/Studio/test-integration-core/pom.xml
> Validation Messages:
>
> [0] 'dependencies.dependency.version' is missing for
> org.slf4j:nlog4j:jar
>
>
> Reason: Failed to validate POM for project
> org.apache.directory.studio:test.integration.core at
> /home/pajbam/Development/Apache/Studio/test-integration-core/pom.xml
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Failed to validate POM
> for project org.apache.directory.studio:test.integration.core at
> /home/pajbam/Development/Apache/Studio/test-integration-core/pom.xml
> at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> 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:597)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.project.InvalidProjectModelException: Failed to
> validate POM for project org.apache.directory.studio:test.integration.core
> at /home/pajbam/Development/Apache/Studio/test-integration-core/pom.xml
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1077)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:880)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
> at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
> at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
> at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
> ... 12 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Mon Dec 07 14:38:58 CET 2009
> [INFO] Final Memory: 1M/4M
> [INFO]
> ------------------------------------------------------------------------
>
In the *'test-integration-ui' module*:
> pajbam@ubuntu:~/Development/Apache/Studio/test-integration-ui$ mvn clean
> install
> Warning: JAVA_HOME environment variable is not set.
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Apache Directory Studio UI Integration Tests
> [INFO] task-segment: [clean, install]
> [INFO]
> ------------------------------------------------------------------------
> [...]
> [...]
> [...]
> [INFO] Compiling 43 source files to
> /home/pajbam/Development/Apache/Studio/test-integration-ui/target/classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> /home/pajbam/Development/Apache/Studio/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/ConnectionsViewBot.java:[153,34]
> cannot access org.eclipse.core.runtime.jobs.Job
> class file for org.eclipse.core.runtime.jobs.Job not found
> StudioConnectionJob job = new StudioConnectionJob( new
> OpenConnectionsRunnable( connection ) );
>
> /home/pajbam/Development/Apache/Studio/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/ConnectionsViewBot.java:[155,11]
> cannot find symbol
> symbol : method join()
> location: class
> org.apache.directory.studio.connection.core.jobs.StudioConnectionJob
>
> /home/pajbam/Development/Apache/Studio/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/EntryEditorWidgetBot.java:[61,18]
> cannot find symbol
> symbol : method pressShortcut(org.eclipse.jface.bindings.keys.KeyStroke)
> location: class org.eclipse.swtbot.swt.finder.widgets.SWTBotTree
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 9 seconds
> [INFO] Finished at: Mon Dec 07 14:32:59 CET 2009
> [INFO] Final Memory: 36M/63M
> [INFO]
> ------------------------------------------------------------------------
>
Stefan, do you have a clue what I'm doing wrong?
Thanks,
Pierre-Arnaud
Re: [Studio] Compilation failures in integration tests
Posted by Stefan Seelmann <se...@apache.org>.
> Hi Pierre-Arnaud,
>
> Pierre-Arnaud Marcelot schrieb:
>> Hi,
>>
>> I'm having compilation failures in integration tests.
>>
>> In the *'test-integration-core' module*:
> ...
> I'd suggest to remove test-integration-core. It only contains some few
> connection test, not more. Those test cases are fully covered by the
> connection tests of the test-integratoin-ui module. I think it isn't
> worth to maintain this module.
>
>
>> In the *'test-integration-ui' module*:
>> ...
>> cannot access org.eclipse.core.runtime.jobs.Job
>> class file for org.eclipse.core.runtime.jobs.Job not found
>> StudioConnectionJob job = new StudioConnectionJob( new
>> OpenConnectionsRunnable( connection ) );
>
> I added org.eclipse.core:jobs dependency.
>
>>
>> /home/pajbam/Development/Apache/Studio/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/EntryEditorWidgetBot.java:[61,18]
>>
>> cannot find symbol
>> symbol : method
>> pressShortcut(org.eclipse.jface.bindings.keys.KeyStroke)
>> location: class org.eclipse.swtbot.swt.finder.widgets.SWTBotTree
>
> In my eclipse installation I have e newer version of SWTBot than the
> provided in "resources/test-plugins". The update site has more recent
> versions. I'll try to fetch the newest version and I hope it will build
> then. Stay tuned...
>
Ok, done.
I upgraded to SWTBot build 433, the test-integration-ui module builds
again. Please make sure to install the same plugin versions into your
Eclipse, then you could run the tests from within Eclipse.
Unfortunately I have issues when running the tests from command line.
After some time the UI under test just freezes with 50% CPU usage (on a
2-core CPU).
Kind Regards,
Stefan
Re: [Studio] Compilation failures in integration tests
Posted by Stefan Seelmann <se...@apache.org>.
Hi Pierre-Arnaud,
Pierre-Arnaud Marcelot schrieb:
> Hi,
>
> I'm having compilation failures in integration tests.
>
> In the *'test-integration-core' module*:
...
I'd suggest to remove test-integration-core. It only contains some few
connection test, not more. Those test cases are fully covered by the
connection tests of the test-integratoin-ui module. I think it isn't
worth to maintain this module.
> In the *'test-integration-ui' module*:
> ...
> cannot access org.eclipse.core.runtime.jobs.Job
> class file for org.eclipse.core.runtime.jobs.Job not found
> StudioConnectionJob job = new StudioConnectionJob( new
> OpenConnectionsRunnable( connection ) );
I added org.eclipse.core:jobs dependency.
> /home/pajbam/Development/Apache/Studio/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/EntryEditorWidgetBot.java:[61,18]
> cannot find symbol
> symbol : method
> pressShortcut(org.eclipse.jface.bindings.keys.KeyStroke)
> location: class org.eclipse.swtbot.swt.finder.widgets.SWTBotTree
In my eclipse installation I have e newer version of SWTBot than the
provided in "resources/test-plugins". The update site has more recent
versions. I'll try to fetch the newest version and I hope it will build
then. Stay tuned...
> Stefan, do you have a clue what I'm doing wrong?
Nothing, I just was to lazy to maintain the modules, sorry.
Kind Regards,
Stefan