On Tue, Nov 23, 2010 at 08:43, Andreas Truszkowski <[email protected]> wrote:
> how can I turn off the following message within my unit tests: > > ApplicationConfig could not determine application name, using > unknownApplication-46e94b49-996c-455a-ae40-ccde1f34f8a4 You can provide your own application name using the system property -Draven.launcher.app.name=testingsomething Note that this means the unit test will use ~/.testingsomething as the home directory for settings instead of say /tmp/unknownApplication-46e94b49-996c-455a-ae40-ccde1f34f8a4 - which means it won't have clean settings between unit tests. Depending on what you are testing this might however not be relevant. When we are testing say the API for discovering Available Services, we want to start with a fresh home directory to avoid it loading saved service preferences from previous tests - but if you are testing how to invoke Beanshell scripts this is not important. You can also override the Taverna home directory by setting the system property -Draven.launcher.app.home=/tmp/somethingElse - if you do so using a static @BeforeClass method in the unit tests early on, you should be able to set this programmetically using File.createTempFile() to make it crossplatform and allow you to recursively delete in an @AfterClass method - but note that this will depend on which other unit tests are run first. Alternatively you can make a folder conf/ and put a raven-launcher.properties similar to the one in the Taverna distribution, but for this to be picked up you will need to set the system property -Dtaverna.startup=. and make sure the current directory is in the one that has conf/. -- Stian Soiland-Reyes, myGrid team School of Computer Science The University of Manchester ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ taverna-hackers mailing list [email protected] Web site: http://www.taverna.org.uk Mailing lists: http://www.taverna.org.uk/about/contact-us/ Developers Guide: http://www.taverna.org.uk/developers/
