Re: help Running robocode TestWallBehavior

[email protected] Tue, 28 Apr 2020 05:40:33 -0700 (PDT)
Newsgroups gmane.comp.java.robocode
Message-ID <[email protected]>
Hi
Thanks for the reply.

I've tried again and I was still missing an 
net.sf.robocode.core.RobocodeMainBase that I could not find in the 
robocode.jar library...but you can, so I focused on the differences: you 
are running it from terminal, I'm running it through Eclipse! 1 minute 
later I've figured out that I was working only with the robocode.jar 
library instead of importing all the jars in the robocode/lib folder. As 
soon as I've imported everything I've seen the "robocode.core-1.9.3.9.jar", 
the library that contains the net.sf.robocode.core.RobocodeMainBase class.
Now I can create and run tests in Eclipse and check the result inside it 
too.

I'm using successfully hamcrest-2.2.jar with now and I can't see any 
different problem that hamcrest-1.3, I've downloaded both so I can switch 
in case.

closed this, I would like to point out the red warning in the output during 
the run:

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by net.sf.robocode.io.URLJarCollector 
(file:/Users/dtp4/robocode/libs/robocode.core-1.9.3.9.jar) to field 
sun.net.www.protocol.jar.JarFileFactory.fileCache

WARNING: Please consider reporting this to the maintainers of 
net.sf.robocode.io.URLJarCollector

WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations
WARNING: All illegal access operations will be denied in a future release

this comes out every run, despite the run finishes correctly. I bet you 
already know about this, if not here it is. This is maybe matter for the 
other group of discussion.

Best regards
Davide 

Il giorno lunedì 27 aprile 2020 22:50:05 UTC+2, fnl ha scritto:
>
> Thank you for telling me about this issue.
> The scripts for running the tests need to be updated as well as the 
> documentation.
>
> You are right. This jar file is missing: hamcrest-all-1.3.jar. (The plugin 
> needs an update for sure)
> You can download it from here: 
> https://repo1.maven.org/maven2/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar 
> and put it into the robocode\libs folder.
>
> Then you need to add this library to the class path when running the test 
> script:
>
> java -Drobocode.home=.. -cp 
> ../libs/junit-4.11.jar;;../libs/hamcrest-all-1.3.jar;../libs/robocode.jar;../libs/robocode.testing.jar;.; 
> org.junit.runner.JUnitCore sample.TestWallBehavior
>
> This should be enough. I have just tested this with a clean installation 
> of Robocode 1.9.3.9 with the testing plugin.
>
> I should like to hear if you can get it running on your system as well?
>
> Cheers,
> - Flemming
>

-- 
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/robocode/d7099d80-6a6a-4d97-9562-133c3a66017c%40googlegroups.com.