• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with JUnit/HttpClient  RSS feed

 
Glenn Murray
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm not sure if this is the right forum: I'm trying to connect to
Tomcat with Apache HttpClient. I've got a strange JUnit/HttpClient
problem. If I run the ff. class with

java -cp .:commons-httpclient-2.0.2.jar:commons-logging.jar:junit_3.8.1.jar junit.textui.TestRunner Test2

it passes, but if I run

java -cp .:commons-httpclient-2.0.2.jar:commons-logging.jar:junit_3.8.1.jar junit.swingui.TestRunner Test2

it fails. Is it not possible to run HttpClient from JUnit's Swing
TestRunner? Part of the mystery is that commons-logging.jar need
not be in the classpath when I compile. Also, the
ExceptionInInitializerError won't get printed.

Thanks,
Glenn


[ July 11, 2005: Message edited by: Glenn Murray ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!