The Artima Developer Community
Sponsored Link

SuiteRunner Forum
Exception running AccountJUnitTestSuite

4 replies on 1 page. Most recent reply: Jan 29, 2003 10:42 AM by Scott Mega

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 4 replies on 1 page
Scott Mega

Posts: 3
Nickname: stmega
Registered: Jan, 2003

Exception running AccountJUnitTestSuite Posted: Jan 28, 2003 2:36 PM
Reply to this message Reply
Advertisement
I'm hoping this is just a setup issue, but any ideas would be appreciated.
I started up SuiteRunner with: "java -jar suiterunner-1.0beta2.jar accountJUnit.srj"

My accountJUnit.srj file is below:
org.suiterunner.Suites=-s com.artima.examples.account.ex6test.AccountJUnitTestSuite
org.suiterunner.Runpa th=-p "example C\:\\lib\\junit.jar"
org.suiterunner.Reporters=-g

I end up with "Suite Aborted" - any ideas? See below:

Suite Aborted
Name: JUnitSuite: AccountJUnitTestSuite
Message: Exception encountered when invoking execute on a subsuite.
Date: Tue Jan 28 16:28:31 EST 2003
Source: Thread[Thread-3,6,]
Thread: Thread-3
Throwable:
org.suiterunner.TestFailedException: java.lang.reflect.InvocationTargetException
at org.suiterunner.JUnitSuite.execute(JUnitSuite.java:192)
at org.suiterunner.SuiteRunnerThread.run(SuiteRunnerThread.java:128)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.suiterunner.JUnitSuite.execute(JUnitSuite.java:180)
... 1 more
Caused by: java.lang.NullPointerException
at org.suiterunner.TestListenerInvocationHandler.handleStartTest(TestListenerInvoc ationHandler.java:241)
at org.suiterunner.TestListenerInvocationHandler.invoke(TestListenerInvocationHand ler.java:187)
at $Proxy0.startTest(Unknown Source)
at junit.framework.TestResult.startTest(TestResult.java:158)
at junit.framework.TestResult.run(TestResult.java:103)
at junit.framework.TestCase.run(TestCase.java:121)
at junit.framework.TestSuite.runTest(TestSuite.java:157)
at junit.framework.TestSuite.run(TestSuite.java:152)
at junit.framework.TestSuite.runTest(TestSuite.java:157)
at junit.framework.TestSuite.run(TestSuite.java:152)
... 6 more


Brooke Wilmoth

Posts: 7
Nickname: brooke
Registered: Jan, 2003

Re: Exception running AccountJUnitTestSuite Posted: Jan 28, 2003 2:48 PM
Reply to this message Reply
I noticed that your junit.jar is located at "C\:" and perhaps you meant "C:\" That may help. Did you edit this file through the file>edit recipe option or by hand?

Brooke

Brooke Wilmoth

Posts: 7
Nickname: brooke
Registered: Jan, 2003

Re: Exception running AccountJUnitTestSuite Posted: Jan 28, 2003 2:50 PM
Reply to this message Reply
Oops ... I just noticed the syntax. I thought I spotted a problem but I see you were escaping characters.

Scott Mega

Posts: 3
Nickname: stmega
Registered: Jan, 2003

Re: Exception running AccountJUnitTestSuite Posted: Jan 28, 2003 3:18 PM
Reply to this message Reply
I used the File->EditRecipe option, selected the jar file from my C: drive, it showed up correctly on the Runpath tab, and then I just Saved As 'accountJUnit.srj'.

I did notice on the Runpath tab, it showed up as:
C:\lib\junit.jar
(with no escape characters), but the resulting saved .srj file had escaped the colon (:). I'll keep digging. Thanks.

Scott Mega

Posts: 3
Nickname: stmega
Registered: Jan, 2003

Re: Exception running AccountJUnitTestSuite Posted: Jan 29, 2003 10:42 AM
Reply to this message Reply
Found it - I recently switched to JDK1.4 so I needed a newer version of junit.jar to pick up the assertTrue() method, etc...

Flat View: This topic has 4 replies on 1 page
Topic: Exception running AccountJUnitTestSuite Previous Topic   Next Topic Topic: can suiterunner easily test J2EE components like ejb and servlets?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use