Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » run as junit classpath
run as junit classpath [message #257497] Wed, 19 November 2008 17:51 Go to next message
Eclipse UserFriend
If I drop a more recent version of junit into my project's build
libraries, the project is built against it. If I "run as junit", eclipse
puts the junit.jar from the eclipse installation in front of my project
libraries and the test fails because the method i'm calling
(Assert.assertEquals(long,long)) is not in available in junit 4.3.

How can I get around this?

Would it be more appropriate for Eclipse to put its installation junit jar
after the project library jars?

I'm running eclipse 3.4.1.
Re: run as junit classpath [message #257542 is a reply to message #257497] Thu, 20 November 2008 08:32 Go to previous message
Eclipse UserFriend
> Would it be more appropriate for Eclipse to put its installation junit jar
> after the project library jars?


Open the Order and Export tab in your project's Java Build Path. You can
define your own order in which the jars should appear in the project's
classpath.

- Prakash
--

http://blog.eclipse-tips.com

"Rob Saccoccio" <rob.saccoccio@sas.com> wrote in message
news:03eb4d3819fb55bc75d119d5907070cb$1@www.eclipse.org...
> If I drop a more recent version of junit into my project's build
> libraries, the project is built against it. If I "run as junit", eclipse
> puts the junit.jar from the eclipse installation in front of my project
> libraries and the test fails because the method i'm calling
> (Assert.assertEquals(long,long)) is not in available in junit 4.3.
>
> How can I get around this?
>
> Would it be more appropriate for Eclipse to put its installation junit jar
> after the project library jars?
>
> I'm running eclipse 3.4.1.
>
>
>
Previous Topic:How to customize the content assist?
Next Topic:Change Attached Source
Goto Forum:
  


Current Time: Sat Apr 26 21:26:26 EDT 2025

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

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

Back to the top