Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » How to add third-party jars to TPTP/JUnit test?
How to add third-party jars to TPTP/JUnit test? [message #110061] Sat, 25 August 2007 16:46 Go to next message
Eclipse UserFriend
Originally posted by: no.ddress.now

New to TPTP - using Europa/Eclipse3.3/JDK1.5

How do I specify the inclusion of additional/required jars for a method
under test? The method makes a Hibernate call, but in relevant part
only returns a java.lang.NoClassDefFoundError. JUnit tests that do not
reference external jars run as expected. The Hibernate jars are present
in the Project using User Libraries.

Where/how do I add third-party jars to the JUnit classpath.

Thanks...
Re: How to add third-party jars to TPTP/JUnit test? [message #110248 is a reply to message #110061] Mon, 27 August 2007 11:49 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 970
Registered: July 2009
Senior Member
Hi Gerald,
You can check the product documentation,
http://help.eclipse.org/help32/topic/org.eclipse.hyades.test .doc.user/ref/rdeploymentGroundRules.htm.

Paul
"Gerald Rosenberg" <no@ddress.now> wrote in message
news:MPG.2139fcdead3d7799896a5@news.eclipse.org...
> New to TPTP - using Europa/Eclipse3.3/JDK1.5
>
> How do I specify the inclusion of additional/required jars for a method
> under test? The method makes a Hibernate call, but in relevant part
> only returns a java.lang.NoClassDefFoundError. JUnit tests that do not
> reference external jars run as expected. The Hibernate jars are present
> in the Project using User Libraries.
>
> Where/how do I add third-party jars to the JUnit classpath.
>
> Thanks...
Re: How to add third-party jars to TPTP/JUnit test? [message #110373 is a reply to message #110248] Mon, 27 August 2007 16:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: no.ddress.now

Thanks for the response. However, I don't have an application, a
deployment scenario or location of any system/container to deploy into
(the capabilities of TPTP are truly impressively complex). Thus, I did
not think application deployment was relevant.

What I do have is just a trivially small method that (should) verify the
format of a datum as returned from a database. Could not find a
tutorial that addresses this nor figure out how to modify the local
deployment to include the database driver jars. I did look at adding an
artifact and deployment location, but since I have no external run-time
environment, did not see how to complete the configuration.

Obviously, I am missing something. A bit more of a hint on the correct
approach would be much appreciated.

In article <faudo9$6v4$1@build.eclipse.org>, paules@ca.ibm.com says...
> Hi Gerald,
> You can check the product documentation,
> http://help.eclipse.org/help32/topic/org.eclipse.hyades.test .doc.user/ref/rdeploymentGroundRules.htm.
>
> Paul
> "Gerald Rosenberg" <no@ddress.now> wrote in message
> news:MPG.2139fcdead3d7799896a5@news.eclipse.org...
> > New to TPTP - using Europa/Eclipse3.3/JDK1.5
> >
> > How do I specify the inclusion of additional/required jars for a method
> > under test? The method makes a Hibernate call, but in relevant part
> > only returns a java.lang.NoClassDefFoundError. JUnit tests that do not
> > reference external jars run as expected. The Hibernate jars are present
> > in the Project using User Libraries.
> >
> > Where/how do I add third-party jars to the JUnit classpath.
> >
> > Thanks...
Re: How to add third-party jars to TPTP/JUnit test? [message #110740 is a reply to message #110373] Thu, 30 August 2007 11:29 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 970
Registered: July 2009
Senior Member
Hi Gerald,
As noted in
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. hyades.test.doc.user/ref/rdeploymentGroundRules.htm,
any dependencies on the project classpath are automatically deployed to the
target host. You can add your JAR(s) to the Java or plug-in project
dependencies.

Paul
"Gerald Rosenberg" <no@ddress.now> wrote in message
news:MPG.213c9a1c883d6f029896a6@news.eclipse.org...
> Thanks for the response. However, I don't have an application, a
> deployment scenario or location of any system/container to deploy into
> (the capabilities of TPTP are truly impressively complex). Thus, I did
> not think application deployment was relevant.
>
> What I do have is just a trivially small method that (should) verify the
> format of a datum as returned from a database. Could not find a
> tutorial that addresses this nor figure out how to modify the local
> deployment to include the database driver jars. I did look at adding an
> artifact and deployment location, but since I have no external run-time
> environment, did not see how to complete the configuration.
>
> Obviously, I am missing something. A bit more of a hint on the correct
> approach would be much appreciated.
>
> In article <faudo9$6v4$1@build.eclipse.org>, paules@ca.ibm.com says...
>> Hi Gerald,
>> You can check the product documentation,
>> http://help.eclipse.org/help32/topic/org.eclipse.hyades.test .doc.user/ref/rdeploymentGroundRules.htm.
>>
>> Paul
>> "Gerald Rosenberg" <no@ddress.now> wrote in message
>> news:MPG.2139fcdead3d7799896a5@news.eclipse.org...
>> > New to TPTP - using Europa/Eclipse3.3/JDK1.5
>> >
>> > How do I specify the inclusion of additional/required jars for a method
>> > under test? The method makes a Hibernate call, but in relevant part
>> > only returns a java.lang.NoClassDefFoundError. JUnit tests that do not
>> > reference external jars run as expected. The Hibernate jars are present
>> > in the Project using User Libraries.
>> >
>> > Where/how do I add third-party jars to the JUnit classpath.
>> >
>> > Thanks...
Previous Topic:No more handles [gtk_init_check() failed] when using the IAC on linux
Next Topic:[AGR] java.lang.NullPointerException, AbstractTestExecutionService
Goto Forum:
  


Current Time: Sun Dec 21 13:44:15 GMT 2014

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

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