This is a bug that is fixed in JsUnit 2.1 (to be released soon).
--- In jsunit@yahoogroups.com, "smudgy_kiev" <smudgy@m...> wrote:
> Hi all.
>
> I'm new to Unit Testing.
> I download a jsunit from sourceforge.net/jsunit and unzipped it on my
> machine under Fedora Core 2, java -jdk-1.4.2
> My goal were run standalone test.
> I ran standaloneTest.sh and have trouble with class find - that's
> already not problem 4 me.
> -In file standaloneTest.sh I deleted last symbol(Windows-like CR)
> and that's ok.
> Then I edited jsunit.properites
> browserFileNames=/usr/bin/mozilla
> and run script.
> java started application. But did'n find any mozilla :
>
> #stacktrace here
> ./standaloneTest.sh
> 19:17:03.847 EVENT Starting Jetty/4.2.9
> 19:17:04.027 EVENT Started HttpContext[/jsunit]
> 19:17:04.082 EVENT Started SocketListener on 0.0.0.0:8080
> 19:17:04.084 EVENT Started org.mortbay.http.HttpServer@113beb5
> Thu Jul 08 19:17:04 EEST 2004: StandaloneTest: launching .
> /usr/bin/mozilla
> java.io.IOException: java.io.IOException: ".: not found
> at java.lang.UNIXProcess.<init>(UNIXProcess.java:143)
> at java.lang.Runtime.execInternal(Native Method)
> at java.lang.Runtime.exec(Runtime.java:566)
> at java.lang.Runtime.exec(Runtime.java:428)
> at java.lang.Runtime.exec(Runtime.java:364)
> at java.lang.Runtime.exec(Runtime.java:326)
> at
> net.jsunit.StandaloneTest.testStandaloneRun(StandaloneTest.java:84)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav\
a:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> at junit.swingui.TestRunner$16.run(TestRunner.java:623)
> 19:17:04.183 EVENT Stopping Acceptor
> ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080]
> 19:17:04.186 EVENT Stopped SocketListener on 0.0.0.0:8080
> 19:17:04.202 EVENT Stopped HttpContext[/jsunit]
> 19:17:04.204 EVENT Stopped org.mortbay.http.HttpServer@113beb5
>
> #end
>
> You understand, that I have mozilla in /usr/bin/.
>
> Tell me please what I'm doing wrong.
>
> Best regards,Smudgy
>
> mailto:smudgy@m...