Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Headless build: The import junit cannot be resolved
Headless build: The import junit cannot be resolved [message #538638] Tue, 08 June 2010 09:54 Go to next message
Stephan  is currently offline Stephan Friend
Messages: 36
Registered: July 2009
Member
I tried to automate our Junit test with Hudson and Buckminster 3.6 (installed from org.eclipse.buckminster.site.eclipse.headless_1.2.0.r11379.z ip). Our target platform is still based on Eclipse 3.5.2. All test fragments contain a dependency on the Junit plugin but the build command fails with:
Error: file /usr/app/test/.hudson/jobs/NightlyTest/workspace/trunk/ch.te st.api.test/src/test/api/TestSecurityUtil.java, line 5: The import junit cannot be resolved
Error: file /usr/app/test/.hudson/jobs/NightlyTest/workspace/trunk/ch.te st.api.test/src/test/api/TestSecurityUtil.java, line 9: TestCase cannot be resolved to a type

listcommands displays:
Available commands including aliases:
...
org.eclipse.buckminster.junit.junit
...

The debug output shows that junit is found:
org.junit4:osgi.bundle/4.5.0: Using resolver Local resolver
org.junit4:osgi.bundle/4.5.0: Trying provider local(materialized)
No materialization found for org.junit4:osgi.bundle/4.5.0
org.junit4:osgi.bundle/4.5.0: Trying provider local(workspace)
No open workspace project found that corresponds to org.junit4:osgi.bundle/4.5.0
org.junit4:osgi.bundle/4.5.0: Trying provider local(target)
org.junit4:osgi.bundle/4.5.0: Found match 4.5.0.v20090824

What else am I missing?

Regards, Stephan
Re: Headless build: The import junit cannot be resolved [message #538846 is a reply to message #538638] Tue, 08 June 2010 18:31 Go to previous message
Achim Demelt is currently offline Achim DemeltFriend
Messages: 160
Registered: July 2009
Senior Member
Stephan,

From the error message I would say that your target platform does not
contain the org.junit bundle. OTOH, the snippet from the materialization log
indicates that org.junit4 is indeed present.

You may get some more information if you open the (headless) workspace with
the Eclipse IDE (3.6) after that failure occurs. The problem view should
list the same compile errors, but you can now check the target platform
settings in the UI.

Achim


Stephan wrote:

> I tried to automate our Junit test with Hudson and Buckminster 3.6
> (installed from
> org.eclipse.buckminster.site.eclipse.headless_1.2.0.r11379.z ip). Our
> target platform is still based on Eclipse 3.5.2. All test fragments
> contain a dependency on the Junit plugin but the build command fails with:
> Error: file /usr/app/test/.hudson/jobs/NightlyTest/workspace/trunk/ch.te
> st.api.test/src/test/api/TestSecurityUtil.java, line 5: The import junit
> cannot be resolved
> Error: file /usr/app/test/.hudson/jobs/NightlyTest/workspace/trunk/ch.te
> st.api.test/src/test/api/TestSecurityUtil.java, line 9: TestCase cannot be
> resolved to a type
>
> listcommands displays:
> Available commands including aliases:
> ..
> org.eclipse.buckminster.junit.junit
> ..
>
> The debug output shows that junit is found:
> org.junit4:osgi.bundle/4.5.0: Using resolver Local resolver
> org.junit4:osgi.bundle/4.5.0: Trying provider local(materialized)
> No materialization found for org.junit4:osgi.bundle/4.5.0
> org.junit4:osgi.bundle/4.5.0: Trying provider local(workspace)
> No open workspace project found that corresponds to
> org.junit4:osgi.bundle/4.5.0 org.junit4:osgi.bundle/4.5.0: Trying provider
> local(target) org.junit4:osgi.bundle/4.5.0: Found match 4.5.0.v20090824
>
> What else am I missing?
>
> Regards, Stephan
Previous Topic:SWT libraries not found
Next Topic:ERROR [0001] : The import junit cannot be resolved
Goto Forum:
  


Current Time: Fri Apr 26 18:43:01 GMT 2024

Powered by FUDForum. Page generated in 0.03150 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top